Re:A New Bytecode Format for JavaScriptCore
by bepvte on Friday June 21, 2019 @04:00PM
(#20245853)
Suprised no one has posted https://blog.cloudflare.com/binary-ast/ . Its not bytecode but its still a great idea
[ Parent
| on HN ]
Re:A New Bytecode Format for JavaScriptCore
by singularity2001 on Friday June 21, 2019 @04:32PM
(#20246087)
Oh wow!! In a way it's even better than bytecode because it allows marking unused functions for lazy loading, giving speedups of 97% (in theoretical settings;)
Must read.
https://github.com/binast/binjs-ref from below is part of this!
Re:A New Bytecode Format for JavaScriptCore
by kevingadd on Friday June 21, 2019 @10:00PM
(#20247580)
WASM's (abandoned, because brotli is good enough) Binary Encoding proposal was essentially a binary AST compression system that worked for both JS trees (esprima) and wasm ASTs.
You get pretty good improvements by converting ASTs into SoA representation, interleaving them, and then compressing them. Fast to decode, too.