Hacker GitHub

← All repos

WebAssembly/binaryen

View on GitHub ↗ ★ 8,673 WebAssembly

Optimizer and compiler/toolchain library for WebAssembly

37 mentions on Hacker News by 27 people: 1 story, 36 comments · first 2015-12-17 · latest 2026-03-14

Mentions per year 37 mentions · busiest year 2016 (9)
20082026
  1. …permutations of the types within a rec group and then only as necessary by adding brand types. [0]: https://github.com/WebAssembly/binaryen/blob/main/src/passes... [1]: https://github.com/WebAssembly/binaryen/blob/main/src/passes...
    comment by tlively · 2026-03-14 · in Nominal Types in WebAssembly
  2. …to do something with it. I understand that's not the intention but this is what it feels like. 1. https://github.com/WebAssembly/binaryen/wiki/binaryen.js-API 2. https://developer.mozilla.org/en-US/docs/WebAssembly/Referen... 3.…
    comment by alabhyajindal · 2025-09-17 · in WASM 3.0 Completed
  3. …are probably very small. Inside functions, there is perhaps a 1-3% code size opportunity at best ( https://github.com/WebAssembly/binaryen?tab=readme-ov-file#b... ), and no performance advantage. Between functions there might be a…
    comment by azakai · 2025-05-09 · in WASM 2.0
  4. You can run the Go compiled wasm binary through wasm-opt ( https://github.com/WebAssembly/binaryen ) and it will decrease the size and give back some of the performance lost by using the standard go compiler over TinyGo. Fair warning it's…
    comment by nullocator · 2025-02-15 · in Extensible WASM Applications with Go
  5. …you cover. For example, here is a pass that reorders WebAssembly globals in the Binaryen optimizer: https://github.com/WebAssembly/binaryen/blob/main/src/passes... We have a simple criteria for the quality of a solution - how big the…
    comment by azakai · 2024-07-13 · in Beating the Compiler
  6. …found helped: - Use wasm-opt from binaryen. That seems to reliably drop wasm size by ~20-30%. ( https://github.com/WebAssembly/binaryen ) - Use brotli compression for serving wasm bundles to the browser, and make sure your web server is…
  7. The Binaryen wasm optimizer (mentioned in the article) is always open for contributions! https://github.com/WebAssembly/binaryen
  8. …static analysis at the toolchain level. Here is a recent PR I wrote that makes progress there: https://github.com/WebAssembly/binaryen/pull/6061 * The vtable overhead issue the article mentions may be a problem. I'm not aware of good…
  9. The end of the related work section cites both wasm-smith and the Binaryen fuzzer ( https://github.com/WebAssembly/binaryen/wiki/Fuzzing ) and says, "They both provide a fuzzer that turns a stream of bytes into a WebAssembly module in…
  10. …has been moved into the Binaryen tools though, so it can be used by other toolchains (like wajic): https://github.com/WebAssembly/binaryen .
  11. …The JavaScript option uses wasm2js - it compiles first to wasm, then compiles that to JS. https://github.com/WebAssembly/binaryen#wasm2js The emcc flag -sWASM=0 disables the wasm final output and emits JS instead.
  12. Binaryen implemented partial evaluation at the beginning of this year https://github.com/WebAssembly/binaryen/pull/4438
  13. …it does because it uses binaryen[0] (as claimed in the link) which is an optimizing compiler. [0] https://github.com/WebAssembly/binaryen
  14. …unless you need to support browsers without WASM support (which don't exist anymore AFAIK). [1] https://github.com/WebAssembly/binaryen
  15. …or won't have support one can use wasm2js from the binaryen project to convert .wasm to JavaScript. https://github.com/WebAssembly/binaryen/blob/master/src/tool...
    comment by sitkack · 2019-12-06 · in W3C recommends WebAssembly
  16. …includes programs that convert wasm code into its textual representation (based on S-expressions). https://github.com/WebAssembly/binaryen
  17. …[3] https://github.com/rustwasm/wasm-bindgen [4] Part of Binaryen: https://github.com/WebAssembly/binaryen
    comment by KenanSulayman · 2018-07-11 · in Reverse-Engineering WebAssembly [pdf]
  18. …case anyone else was wondering, you actually CAN do this and JIT WASM in your browser via Binaryen: https://github.com/WebAssembly/binaryen/blob/master/test/bin...
    comment by thosakwe · 2018-07-05 · in A Real-World WebAssembly Benchmark
  19. …working with WASM are here: https://github.com/WebAssembly/wabt The compiler/converters are here: https://github.com/WebAssembly/binaryen Maybe someone who knows more could help me understand better. It looks the toolchain "stack" is…
    comment by geokon · 2018-04-12 · in Sneak Peek at WebAssembly Studio
  20. …to "LLVM x86 Assembly". I hope they intend to use this tool to improve Firefox x86 Assembly. [0] https://github.com/WebAssembly/binaryen/issues/1070 [1] https://hacks.mozilla.org/2017/03/previewing-the-webassembly...
    comment by stromgo · 2018-03-22 · in Firefox Product Roadmap
  21. …that generates readable C? I'm not aware of one, though it would probably be trivial to write. https://github.com/WebAssembly/binaryen has the helping code for things like parsing. Both https://github.com/kanaka/wac and…
  22. …source code. A minimizer/obsfucator does a great job of making your JavaScript code unreadable. [1] https://github.com/WebAssembly/binaryen
  23. …to target that provides a minimal stdlib. Until then, it's libc and posix by way of emscripten. 0 - https://github.com/WebAssembly/binaryen/pull/919
  24. How about https://github.com/WebAssembly/binaryen ?
  25. …the final standard was settled on, but I wasn't able to find any corresponding announcement. [1]: https://github.com/WebAssembly/binaryen/releases/tag/version...
    comment by johncolanduoni · 2017-02-28 · in What makes WebAssembly fast?
  26. …format at all. The current way to do the equivalent would be to use Binaryen's asm2wasm tool. https://github.com/WebAssembly/binaryen
    comment by binji · 2016-10-31 · in WebAssembly Browser Preview
  27. …yourself. You can use a compiled version of wabt or binaryen, here's an example of binaryen.js, https://github.com/WebAssembly/binaryen/blob/master/test/bin... edit: actually it looks like the test doesn't cover WasmBinaryWriter, which is…
    comment by azakai · 2016-10-31 · in WebAssembly Browser Preview
  28. WABT ( https://github.com/WebAssembly/wabt/ ) and Binaryen ( https://github.com/WebAssembly/binaryen ) as well as the spec itself ( https://github.com/WebAssembly/spec/tree/master/interpreter ) all have interpreters for the WebAssembly…
    comment by dschuff · 2016-10-31 · in WebAssembly Browser Preview
  29. …I'm a WebAssembly contributor] [0]: https://github.com/kripken/emscripten/wiki/WebAssembly [1]: https://github.com/WebAssembly/binaryen [2]: https://github.com/WebAssembly/sexpr-wasm-prototype/
    comment by binji · 2016-07-13 · in WebAssembly Specification Prototype
  30. …http://v8project.blogspot.fi/2016/03/experimental-support-fo... This playground uses Binaryen( https://github.com/WebAssembly/binaryen ) to interpret the WebAssembly code on the fly, so it works in current browsers that do not yet have…
  31. Should just be replacing Emscripten in the toolchain with Binaryen [1]. [1] https://github.com/WebAssembly/binaryen
    comment by grayrest · 2016-03-15 · in Experimental support for WebAssembly in V8
  32. …fallback asm.js bundle for now. [0]: https://github.com/kripken/emscripten/wiki/WebAssembly [1]: https://github.com/webassembly/binaryen
  33. …the Targaryen house words, "Fire and Blood", have also inspired Binaryen's: "Code and Bugs." https://github.com/WebAssembly/binaryen Do you know XZ Embedded? http://tukaani.org/xz/embedded.html I wonder if it could improve startup (with…
    comment by vmorgulis · 2016-03-11 · in Brendan Eich: WebAssembly is a game-changer
  34. To be fair, if you have a good read of https://github.com/WebAssembly/binaryen , you'll find the OP is pretty much on the ball; there's no easy way to compile to web assembly from (language here), and even if you do, there isn't really any…
  35. …interested to contribute to? For Binaryen specifically, this bug could be a good starting point: https://github.com/WebAssembly/binaryen/issues/2 Other issues in the tracker there as well. Bigger topics are to make progress on wasm2asm,…
  36. …past that line. :-) Thanks, I’ll take a look. For anyone interested, the code is in wasm2asm.h: https://github.com/WebAssembly/binaryen/blob/master/src/wasm...
    comment by jacobolus · 2015-12-17 · in Compiling to WebAssembly: It’s Happening