3 ms·
And plenty of people have said otherwise, and have developed entire languages and formal method frameworks to better reason about these problems. (e.g. TLA+) S
by spion 7y ago
And plenty of people have said otherwise, and have developed entire languages and formal method frameworks to better reason about these problems. (e.g. TLA+)
So anyway... what would you use shared memory parallelism for in typical back-end programming?
- zaarn 7y agoYou use the advanced methods to squeeze out more performance, it is not necessary to actually build solutions. There is plenty of reasons for shared memory in back-ends, workers queues with zero-copy messaging would be one example that a lot of applications can benefit from.
- spion 7y agoZero-copy message queue would be an unnecessary micro-optimization for most backends I've worked on. I don't think its something you would normally do in typical back-end programming, unless your scale is bonkers-level or you're creating infrastructure for others to use (maybe if you're doing analytics for others? except there are other alternatives there...). Its definitely not a niche targeted by node.
- zaarn 7y agoI don't think it's a microptimization, it's not that terribly complicated if you are careful about the code you write and it's definitely fun.