Cool new Free software
Posted Dec 19, 2012 15:53 UTC (Wed) by man_ls
In reply to: Cool new Free software
Parent article: Status.net service to phase out, replaced by pump.io
Apparently, declarative languages with threads and RTS and whatever are much harder to exploit fully than node.js, even with its tortuous callback model. I don't know if V8 does magic or what; it would be nice if someone more knowledgeable could enlighten us.
Anyway it is possible to write code that hides some of this complexity, avoiding anonymous functions for most of the work. The functional programming model and the object oriented stuff can be made to play together nicely with some effort.
Since a few years ago I have wondered why the kernel doesn't do something similar with an application's event loop: instead of the app having to call and wait for some time (or, god forgive us, poll all the time), the kernel should drop its privileges and give control to the app's process directly. Similar to Java event handlers, I guess, but without the JVM overhead. Async everywhere!
to post comments)