|
|
|
|
|
by xscott
34 days ago
|
|
Everything you said about WASM is false. It uses a variable length encoding for integers (LEB128). It presents as a stack machine (RPN) not SSA. It doesn't expose or impose padding in structs. It seems like you're extrapolating from things you know to something you don't know at all, and you're spreading misinformation. WASM was designed to be compact. |
|
The thing is to get these optimizations, like variable length encoding and tightly packed structs, engineers had to work hard, while a dumb text format gives it for free.
Additionally, they gave up the biggest advantage of binary formats - that they can be mmap-ed directly and read from code.