by nobbyclark · 12y ago · 0 comments
And sorry anyone who wants to claim that Java's green threads are somehow a better programming model than async IO ala node.js + promises is pretending to write code. Yes async IO is not easy, certainly nowhere near as simple to manage as process / fork but with consistent coding style your can still end up with a system that behaves predicably and most importantly can be reasoned about.
Meanwhile I bitterly regret the days and weeks of my life lost to debugging threaded code. Never again!