Better HN
topnewbestaskshowjobs
Log inSign up

vilequeef

-2 karma · joined Mar 22, 2026 (8mo ago) · 3 submissions

Submissions

comment 8mo ago · link · parent

Oh Mac, unified. Sometimes it takes a downvote

comment 8mo ago · link · parent

It’s not weird that you can’t share state between totally different processes except by passing in args.

And you can make it thread-like if you prefer by creating a “load balancer” setup to begin with to keep them CPU bound.

    require('os').cpus().length
Spawn a process for each CPU, bind data you need, and it can feel like multithreading from your perspective.

More here https://github.com/bennyschmidt/simple-node-multiprocess

comment 8mo ago · link · parent

Why so much RAM?