Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is this something that could be exposed as a generic CLI tool to replace something like wasm-opt from Binaryen?


A subset of this could possibly be applied at the wasm-opt level, but consider that at the LLVM's IR level there is more information to be leveraged (in particular PartialExecuter uses information on what memory ranges are read-only).

In general the whole concept behind Cheerp (C++ to WebAssembly + JavaScript compiler) is doing as much as possible at the LLVM IR level, JavaScript concept included, since it's easier and more powerful to do code transformation there.


Binaryen implemented partial evaluation at the beginning of this year https://github.com/WebAssembly/binaryen/pull/4438




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: