2 ms·
Sure - Tcl has had an event loop since sometime in the 90ies, and you could always do stuff in C. However, Node is written from head to toe to take advantage o
by davidw 15y ago
Sure - Tcl has had an event loop since sometime in the 90ies, and you could always do stuff in C.
However, Node is written from head to toe to take advantage of that style of coding, whereas Tcl never had the assumption that everything had to be async, so many calls block. Same thing with Python and Ruby, except that they're relative latecomers to the embedded
"select loop" game (sure, modern systems have moved on from select, but it still conveys the idea).
Erlang has been around for a while, and does async beautifully, but for every person who knows Erlang there are 10,000 who know Javascript.