Hacker News new | ask | show | jobs
by chitza 2244 days ago
Most web development toolchains depend on Node.js, which compiles on a single core.
3 comments

Node takes advantage of multiple cores.

The code is all async by default and that is easy to load onto green threads.

This used to be implemented with callback hell, now it's Promises which is actually really cosy (and what Rust is adopting).

Random article I found on it: https://medium.com/better-programming/is-node-js-really-sing...

Sure, but you're also running a browser at the same time probably with a ton of tabs open as separate processes. Our computers do quite a lot these days, in parallel, and more cores help.

Both AMD and Intel are ridiculously fast! You can't really go wrong with either.

which then shard out to multi processes, still benefitting from more cores being available. I know of at least a few build processes that support that model for node.