News for hackers. Stuff that matters.
Re:How JavaScript works: Event loop and the rise of Async pr... by jorgeleo on Saturday October 14, 2017 @10:34AM (#15472325)
“Event loop” pfff. windows 3.1 was doing event loops before it was cool
Re:How JavaScript works: Event loop and the rise of Async pr... by sebcat on Saturday October 14, 2017 @01:35PM (#15473208)
I mean, select(2) (and thus event loops) was in 4.2BSD ~10 years before windows 3.1 was released, and it wouldn't surprise me if there were earlier examples of I/O multiplexing.
Re:How JavaScript works: Event loop and the rise of Async pr... by inopinatus on Saturday October 14, 2017 @10:42PM (#15475593)
The Javascript community is something of an echo chamber, and often thinks it is innovating when actually it has rediscovered spokes, rims, and axles, and is now starting to wonder if they can be combined into some form of rotating load-bearing device.
Re:How JavaScript works: Event loop and the rise of Async pr... by srean on Saturday October 14, 2017 @12:11PM (#15472770)
I think the prize for doing event loops without a big fuss and before it was cool probably should go to tcl. They also did multithreading right, whereas Python botched that up. Tcl model: if you need to, run interpreters in separate threads in the same address space. No need for GIL, no need to pickle uncle pickle every message.
Re:How JavaScript works: Event loop and the rise of Async pr... by glhaynes on Saturday October 14, 2017 @01:45PM (#15473259)
>pickle uncle pickle

Is this … a Rick and Morty thing?

Re:How JavaScript works: Event loop and the rise of Async pr... by srean on Saturday October 14, 2017 @01:51PM (#15473294)
<sheepish grin> Autocorrect kicked and I did not notice. Let me leave it as it is for the comedic effect.
Re:How JavaScript works: Event loop and the rise of Async pr... by nitely on Saturday October 14, 2017 @04:29PM (#15474096)
pickle/unpickle is a way of serializing/deserializing in Python land.
Re:How JavaScript works: Event loop and the rise of Async pr... by throwme211345 on Saturday October 14, 2017 @08:53PM (#15475222)
Amen.
Re:How JavaScript works: Event loop and the rise of Async pr... by Stratoscope on Saturday October 14, 2017 @01:31PM (#15473191)
You mean Windows 1.0 from 1985. Also Macintosh Toolbox from 1984. And maybe some others from that era - event loops were not a novel thing even then.