Message from JavaScript discussions
December 2018
— I usually stick all requires at the top of the file, guess I forgot this time
Yeah, if you've started your own dispatcher and imported the compiled code into it as a module, then you can tell the dispatcher to pause whenever you want to do something else in regular JS land
— 🤔
— It would still be useful for general interrupts... a use case I have is to make a green threading kernel based on Linux
— In that use case spawn
isn't part of it
— What's this?
— The interrupt or the kernel?
— Both
— The kernel is just that old bastard child hertzfeld kernel, the interrupt is pretty much any signal you want to make the code pause, giving control to something else on-demand
— In a kernel, you need interrupts to do multithreading (in this case fake emulated multithreading on 1 thread) so that's why those 2 things are related
— Ohh
— How do debuggers pause code in runtime?