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)
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).