3 ms·
This question implies a complexity of solutions and tradeoffs that I’m not ready to explain right now. In short: in node - yes, but this also simplifies everyth
by wruza 9y ago
This question implies a complexity of solutions and tradeoffs that I’m not ready to explain right now. In short: in node - yes, but this also simplifies everything by an order of magnitude until you’re too busy in sqlite. Node is not actually complex or well-designed [imo]. Other approaches could smoothen delays to ~zero. Other languages could even get rid of callbacks and promises.
- woah 9y agoThe power of node’s approach is that it works well for everything except for processor intensive code at the cost of some syntactic overhead that has now been mostly resolved by async await. Much less mental burden than threads or coroutines with mutexes etc
- wruza 9y agoI’m very interested in coroutine-based event loops. Can you please share your experience with these? Which framework did you use, programming language, etc. Why didn’t they “click” and what caused burden? Thanks in advance.