5 ms·
My first question is "why not coroutines?!" I love Lua (IMHO, Lua is Javascript, if JS hadn't spent its formative years huffing glue). I get where he's coming
by silentbicycle 16y ago
My first question is "why not coroutines?!"
I love Lua (IMHO, Lua is Javascript, if JS hadn't spent its formative years huffing glue). I get where he's coming from with the "most libraries are blocking" bit, because hey, most libraries ARE blocking -- making a fully event-loop-centric system really is a niche case. If you want to focus on that 100%, cool, use Erlang, damn it. They did it right! Failing that, make a clear point of running "non-async" code externally and message-passing.
But I really don't see the point of deluding JS programmers into writing hand-written-CPS "to be asynchronous". I wish they knew better. See e.g. http://news.ycombinator.com/item?id=2150800 http://news.ycombinator.com/item?id=2150800