Message from JavaScript discussions

October 2018

— Hertzfeld-kernel and HertzScript are both 100% javascript and have zero responsibility in hardware or real kernel threads

Message permanent page


Without NapaJS, the 2 modules are only capable of single threaded Green threading, stuck on N:1 model but simulating a M:N model inside it

— Exactly

— Ok... better way to explain.... HzScript allows hertzfeld-kernel to multitask, kernel deicdes how to but the ability to context switch is provided by HzScript.... add NapaJS and you get multithreading... but HzScript works in such a way that you can go even further and do multiprocessing as the functions are being multiplexed

Message permanent page

— What is deep dependencies in npm?

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

Message permanent page

— 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