Message from JavaScript discussions
December 2018
— Nitpick: I don't like require or definition out of order
Nevertheless, I had a question. Does regular JavaScript source (without spawn) have any benefit of running through Hz?
— Ohh in the Statues example right?
— 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