Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
interlaced
Advanced tools
Readme
Interlaced is a work in progress and a curiostiry about sharedArrayBuffer. It aims to use javascript SharedArrayBuffer to pass concrete javascript Object between main thread and worker-threads/web-workers.
The main idea is to transform a javascript object into a buffer representation to fill the SharedArrayBuffer dataview. When data are transmit on the worker thread, if we know the schema - how the javascript object is structured - we can create again a javascript object from it. Function won't be supported, it will be used to pass plain json like object
For this project I plan to use the awesome buffer-plus project developed by arloliu. It is the library that allows to convert object to buffer and vice-versa.
A double ring buffer will be build on top of it. We send data on a first ring buffer, backed by a sharedArrayBuffer. When data has been processed, another ring buffer - backed by another sharedArrayBuffer- will be filled with result data.
Of course, memory usage will be higher with this approach, but I hope we can gain some considerable speed with it. As of now I do not know at all if it will be more performant than a postMessage approach, but benchmarks will come.
FAQs
A double ring sharedArrayBuffer to submit/receive task and their completions
The npm package interlaced receives a total of 2 weekly downloads. As such, interlaced popularity was classified as not popular.
We found that interlaced demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.