News for hackers. Stuff that matters.
Re:Node.js – v20.8.1 by cypress66 on Sunday October 15, 2023 @04:15PM (#37893015)
> Simple code executed in a thread pool or whatever is so much easier to reason about. reply

Hard disagree. It's much easier to reason about async await because you don't need to worry about preemption. You (generally) don't need mutexes or anything like that.

Re:Node.js – v20.8.1 by winrid on Sunday October 15, 2023 @07:26PM (#37894361)
hard disagree. :)

When do you have to worry about synchronization? You don't. Pull DB connection from pool, etc, done.

Async await has colored functions, promises, and other atrocities.

Even if I have some locking primitives somewhere I'll GLADLY take that over the fucking mess of async stack traces and code executed "next tick" with no trace.