News for hackers. Stuff that matters.
Re:Node-fib: Fast non-blocking fibonacci server by Peaker on Monday October 03, 2011 @09:05PM (#3068911)
Cooperative multitasking will always have the blocking problem, whether implemented manually or by the language. The manual callback chaining is tedious, though.

Preemptive multitasking solves that problem, but if mixed with lots of shared mutable state, it reintroduces much worse problems of non-determinism and unreproducible bugs.

The golden path involves preemptive multitasking with little-to-no shared state. That way you get to have your cake (determinism) and eat it too (no blocking problems/starvation).

Re:Node-fib: Fast non-blocking fibonacci server by syaramak on Tuesday October 04, 2011 @01:07AM (#3069474)
> The golden path involves preemptive multitasking with little-to-no shared state. Erlang (and probably some other languages) seems to have taken this approach.
Re:Node-fib: Fast non-blocking fibonacci server by willvarfar on Tuesday October 04, 2011 @03:31AM (#3069800)
(go too)