News for hackers. Stuff that matters.
Re:Better-sqlite3: A faster Sqlite library for Node.js by gwbas1c on Monday March 19, 2018 @09:32AM (#16618199)
Uhhh, read the description.

node-sqlite3 uses an asynchronous API for CPU-bound functions.

An asynchronous API is only for IO-bound functions. CPU-bound functions should be synchronous.

Re:Better-sqlite3: A faster Sqlite library for Node.js by Klathmon on Monday March 19, 2018 @10:24AM (#16618512)
Well even CPU-bound async functions can have benefits in node.js as they can free up the single javascript thread to do other work while it does the CPU bound work on another thread in the native code.

It's definitely a bastardization of the terms a bit, but at its core it's basically a message-passing multi-process system that hides the implementation behind the well-understood (to most programmers that use node) async i/o

Re:Better-sqlite3: A faster Sqlite library for Node.js by always_good on Monday March 19, 2018 @10:26AM (#16618530)
Well, CPU-bound work should be done off the event loop thread when means out of process in Node which introduces an I/O boundary and thus an async call.