You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
node-ffi holds a lot of promise for eliminating the need for native code for modules, but there is one aspect that makes it less than ideal: everything is synchronous.
The C/C++ way of doing async programming is typically to spin up a background thread, but we don't have threading in JS. We could use something like cluster, but that approach isn't as efficient as threading.
So let's prototype what an node-ffi would look like with async capabilities baked in.