Message from JavaScript discussions

October 2018

β€” Impossible, I have three been researching this for almost 4 years now, and I have looked at all the possibilities on how I can implement the the userland components like that

Message permanent page

β€” 

When you call the function, the cost is that the call stack expands, which actually makes context switching have massively higher overhead. More you allow that call stack to grow, the longer it takes to traverse up and out of the call stack to get to the dispatcher, which is the action required before you can context switch to a different stack

β€” You can namespace it

β€” πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚ +1

β€” But if they look like functions, but don't act like functions (being first class, referential transparency), it induces other confusions

Message permanent page

β€” This is why you need to know low level

β€” By the way, for reference, the public arguments google engineers have been having about how to add these features to JavaScript, a lot of the smarter ones have been saying hey, we can easily do this in the JIT compiler

Message permanent page

β€” Add what? the coroutines?

β€” I totally agree with them, and actually I think you could take a lot of stuff that I’m putting in the Babel plug-in, and do it right in the JIT compiler, without really having to re-write much of V8 internals

Message permanent page

β€” No, I mean that these languages work the way JS works

β€” Concurrency

β€” Which, I guess naturally translates to coroutines in this situation, but you don’t necessarily need coroutines to do that, it’s just one of the easiest ways

Message permanent page