4 ms·
Yes, it's an IR. It still has all of the issues a bytecode format has, and none of the size advantages.
by Sanddancer 11y ago
Yes, it's an IR. It still has all of the issues a bytecode format has, and none of the size advantages.
- renlo 11y agoDo you have a source that Webasm's IR won't be as compact as Java bytecode?
- thesz 11y agoCannot find PDF for Slim Binaries paper by Franz, so I cite it from memory. They used syntax trees of program as a distribution format, compressed these trees with LZW variant and executed using simple JIT compiler (basically, tree automata over program trees). The size of Slim Binaries was smaller than JAR files for comparable Java programs. I don't remember exact percentage reduction, it was about 20-40, I believe.
- CyberDildonics 11y agoIt is a binary AST and is explicitly made to be both compact and fast to parse. Not all intermediate representations are bytecode.