News for hackers. Stuff that matters.
Re:PartialExecuter: Reducing WebAssembly size by exploring a... by andrewbarba on Tuesday March 15, 2022 @12:19PM (#30687208)
Is this something that could be exposed as a generic CLI tool to replace something like wasm-opt from Binaryen?
Re:PartialExecuter: Reducing WebAssembly size by exploring a... by carlopi on Tuesday March 15, 2022 @12:57PM (#30687720)
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.

Re:PartialExecuter: Reducing WebAssembly size by exploring a... by kateinoigakukun on Wednesday March 16, 2022 @12:51PM (#30701174)
Binaryen implemented partial evaluation at the beginning of this year https://github.com/WebAssembly/binaryen/pull/4438