Message from JavaScript discussions

October 2018

— What is deep dependencies in npm?


So with HzScript make different tasks at the same time could be possible? Is HzScript works in parallel?

— By itself no, but it provides the possibility when you add a kernel scheduler and NapaJS

— By itself HzScript provides concurrency

— In other words you have out of order execution of functions across several stacks at once, in one V8

— Concurrency === make one task next to another task?

— NapaJS adds kernel level multithreading, and combined with the concurrency you can then get parallel computing

Message permanent page

— No

— Hmm... think of it like this

— Functions are only partially run, then another function is partially run, and so on

— It can rapidly switch between stacks, and partially run the current function in each, but only 1 at a time can be in active execution

Message permanent page

— When you add multithreading from NapaJS, you then can use that technique on multiple CPU cores instead of only 1

Message permanent page