3 ms·
OpenResty does something similar. Code can be written synchronously, but all the network io for example happens in a non-blocking manner. The code still looks l
by bungle 11y ago
OpenResty does something similar. Code can be written synchronously, but all the network io for example happens in a non-blocking manner. The code still looks like synchronous, though - without call back hell. This doesn't come without issues as you need to change libraries to use OpenResty (Nginx) network primitives. Overall it is one of the nicest platforms I have worked with. A great webserver (Nginx) that can be programmed with a great language (Lua + LuaJIT).
At Nginx conf the Nginx developers where showing interest to bring Javascript to the platform. They said that they will take similar approach that OpenResty uses (aka no callback hell).
- vbernat 11y agoOpenResty is an evented model too. Coroutines are used to avoid using callbacks.