3 ms·
It's possible to have the best of both worlds by using node-fibers (https://github.com/laverdet/node-fibers https://github.com/laverdet/node-fibers) and mixing
by olegp 15y ago
It's possible to have the best of both worlds by using node-fibers (https://github.com/laverdet/node-fibers https://github.com/laverdet/node-fibers) and mixing synchronous and asynchronous styles as appropriate.
I believe that JavaScript could become the dominant language on the server. We just need to have a set of consistent synchronous interfaces across the major server side JavaScript platforms. This would allow for innovation and code reuse higher up the stack.
I'm doing my bit by maintaining Common Node (https://github.com/olegp/common-node https://github.com/olegp/common-node), which is a synchronous CommonJS compatibility layer for Node.js.