Message from JavaScript discussions

December 2018

β€” You would have to put a setTimeout at every expression


But you can't take a thousand-line function with possibly hundreds of function calls and expect this to not lead to undue technical debt

β€” Why do i need that🀀

β€” HZ is not void of technical debt, in fact the point is to shift the technical debt from the developer to the compiler/dispatcher

Message permanent page

β€” To be able to pause / interrupt at any point in the function using the event loop

β€” They are complex because the complexity needed somewhere to go, out of the developer's list of concerns

Message permanent page

β€” I only need to control *big* parts, under CPU it will go as fast as light.. there is no reason to stop/check at each expression, it will slow-down the whole process

Message permanent page

β€” You do not appear to be familiar, at all, with fault tolerant and real time systems design

β€” A single setTimeout containing a while(true) will still freeze everything, it will just happen later

β€” Spawn will not freeze anything

β€” The point is response time

β€” Imagine what NodeJS is, it is 3 parts: V8 connected to a C++ middleware, connected to a libuv thread pool

Message permanent page