Message from JavaScript discussions

December 2018

— 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

— 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

— The reason is exactly to be able to stop at ANY expression

— Libuv is attached because, when NodeJS is busy running JS, it can not respond to requests

— If NodeJS could be interrupted at any time to begin processing a request, libuv is not neccesarily needed (but still recommended)

Message permanent page

— I do not design while (true) to freeze everything