A small recommendation for these release pages would be to link to the tag in whatever source host you're using! I just want to see the code.
A small recommendation for these release pages would be to link to the tag in whatever source host you're using! I just want to see the code.
Theoretically you could "precompile" JavaScript by running your code on some known input and caching the VM's state. Then you can "hydrate" your VM with that state. But this would only speed up the VM warmup (which is not that long) and requires significant browser/VM buy-in, so it is probably infeasible.
The only way to produce better performance in JavaScript is to restrict it to a less-dynamic subset (e.g. objects must have static keys) and add at least some static typing so that a compiler can resolve some references ahead of time. That's why asm.js was a thing. But asm.js has been superseded by WASM, which better in most regards.
https://github.com/bellard/quickjs/blob/master/quickjs-opcod...
The point isn't just not having a JIT. You can run v8 without a JIT. The point is good performance without a JIT.
> Only output bytecode in a C file. The default is to output an executable file.
> @item -e
> Output @code{main()} and bytecode in a C file. The default is to output an executable file.
https://github.com/bellard/quickjs/blob/master/doc/quickjs.t...
Looks like the only compilation strategy is directly to ARM Thumb assembly or did I miss something?
"Microsoft MakeCode: from C++ to TypeScript and Blockly (and Back)"
https://www.youtube.com/watch?v=tGhhV2kfJ-w
and the respective C++ FFI,