Chris Fallin presented his project called weval, a WebAssembly partial evaluator, which optimizes programs by transforming constant inputs and improving execution speed. Using weval, a simple interpreter was significantly sped up, highlighting the potential of this tool for optimizing WebAssembly modules. By specializing the interpreter function, constant data can be pre-initialized, leading to faster code generation. The author emphasizes the importance of build-time specialization for maximizing the efficiency of the resulting code. The article concludes with the possibility of applying weval to larger interpreters like SpiderMonkey and CPython, potentially revolutionizing the performance of complex language runtimes in the future.
https://bernsteinbear.com/blog/weval/