3 ms·
I feel this async computational burden has been passed on to the developers without any abstraction, making the life of the foundational platform developers eas
by crudbug 10y ago
I feel this async computational burden has been passed on to the developers without any abstraction, making the life of the foundational platform developers easier.
IMO, platform IO libraries should support async behavior natively. Joe Armstrong [0] explains this beautifully.
[0] http://joearms.github.io/2013/04/02/Red-and-Green-Callbacks.html http://joearms.github.io/2013/04/02/Red-and-Green-Callbacks....
- Normal_gaussian 10y ago> I don't know how you would write this in Javascript. I've written quite a lot of jQuery and know how to setup and remove callbacks. But what happens if an event is triggered in the time interval between removing an event handler and adding a new one. I have no idea, and life is too short to find out. If you are manipulating inside a single function call it is atomic, JS is single threaded and doesn't interrupt functions.