Re:Better-sqlite3: A faster Sqlite library for Node.js
by wruza on Monday March 19, 2018 @06:41AM
(#16617401)
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.
[ Parent
| on HN ]
Re:Better-sqlite3: A faster Sqlite library for Node.js
by woah on Monday March 19, 2018 @08:47AM
(#16617924)
The 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
Re:Better-sqlite3: A faster Sqlite library for Node.js
by wruza on Tuesday March 20, 2018 @04:52AM
(#16626907)
I’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.