3 ms·
Most web development toolchains depend on Node.js, which compiles on a single core.
by chitza 6y ago
Most web development toolchains depend on Node.js, which compiles on a single core.
- kohtatsu 6y agoNode 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-single-threaded-7ea59bcc8d64 https://medium.com/better-programming/is-node-js-really-sing...
- oppositelock 6y agoSure, 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.
- jatone 6y agowhich 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.