wast2wasm icon indicating copy to clipboard operation
wast2wasm copied to clipboard

Rewriting wast2wasm in JS

Open photopea opened this issue 8 years ago • 2 comments

This library is huge. I need to use it in my project and I can not afford such size.

I guess it was compiled from some other source (it simulates the whole model of some low-level computer). I believe it could be written in 10 kB of JS code. E.g. there is a parser of JS acorn.js , that has 100 kB. WAST has much simpler syntax than JS.

Would you be interested in rewriting wast2wasm in JS?

photopea avatar Jul 27 '17 23:07 photopea

i don't have the time ATM, but that would be nice

wanderer avatar Jul 29 '17 20:07 wanderer

I think the better solution is to do it at https://github.com/ewasm/wasm-json-toolkit/issues/19 and then perhaps make this package a wrapper over wasm-json-toolkit or just to retire it.

axic avatar Jan 25 '18 11:01 axic