Message from JavaScript discussions

December 2018

— 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)

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

— You can with Hertz

— (Without freezing everything)

— while (true) is just a tool to show what happens

— So you can do stuff like:

spawn writeFile();
console.log("Wrote file");

— But also, it is how a lot of C/C++ is written sometimes, especially in a Linux Tasklet

— Look at my code above ^ it already does loop single function until it returns "okay go next"

— It's not really the point

— If you can implement something which does it automatically for every function running in the entire runtime, I would be genuinely impressed and would likely invite you to help me work on hz

Message permanent page

— But it doesn't prevent a function from having the ability to freeze