3 ms·
libuv (http://docs.libuv.org/en/v1.x/design.html http://docs.libuv.org/en/v1.x/design.html) is pretty much this in action. Event loops are not necessarily easy
by aloknnikhil 7y ago
libuv (http://docs.libuv.org/en/v1.x/design.html http://docs.libuv.org/en/v1.x/design.html) is pretty much this in action. Event loops are not necessarily easy to debug though and message passing between event loops will force the use of concurrency primitives such as mutexes and/or memory barriers (lock-free) anyway. Also, working with event-driven architecture requires a more functional approach since the handlers are all short-lived. Reminds me of Erlang. I think the deck downplays the complexity of building such a system.
- davidw 7y agoThe author of the deck is Dr. John Ousterhout, who wrote Tcl, which had an event loop way back in the day.
- dirtydroog 7y agoOh no! callbacks! Hell, etc /s