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
20082026
-
…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 -
…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 -
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 -
…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 -
…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…
comment by josephg · 2024-04-14 · in Tree-shaking, the horticulturally misguided algorithm (2023) -
The Binaryen wasm optimizer (mentioned in the article) is always open for contributions! https://github.com/WebAssembly/binaryen
comment by azakai · 2023-11-04 · in Bringing garbage collected programming languages efficiently to WebAssembly -
…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…
comment by azakai · 2023-11-04 · in Bringing garbage collected programming languages efficiently to WebAssembly -
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…
comment by tlively · 2023-08-05 · in Random Testing of WebAssembly Implementations Using Semantically Valid Programs -
…has been moved into the Binaryen tools though, so it can be used by other toolchains (like wajic): https://github.com/WebAssembly/binaryen .
comment by flohofwoe · 2022-10-30 · in CoWasm: An alternative to Emscripten, based on Zig (demo: Python in the browser) -
…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.
comment by azakai · 2022-05-09 · in Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine -
Binaryen implemented partial evaluation at the beginning of this year https://github.com/WebAssembly/binaryen/pull/4438
comment by kateinoigakukun · 2022-03-16 · in PartialExecuter: Reducing WebAssembly size by exploring all executions in LLVM -
…it does because it uses binaryen[0] (as claimed in the link) which is an optimizing compiler. [0] https://github.com/WebAssembly/binaryen
comment by brabel · 2021-04-14 · in Is WebAssembly magic performance pixie dust? -
…unless you need to support browsers without WASM support (which don't exist anymore AFAIK). [1] https://github.com/WebAssembly/binaryen
comment by flohofwoe · 2021-02-11 · in Migrating a JavaScript Library from JavaScript to WebAssembly -
…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 -
…includes programs that convert wasm code into its textual representation (based on S-expressions). https://github.com/WebAssembly/binaryen
comment by grondilu · 2019-03-18 · in Construct-JS – A library for creating byte level data structures -
…[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] -
…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 -
…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 -
…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 -
…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…
comment by kodablah · 2018-01-05 · in TeaVM – Ahead-of-time transpiler of Java bytecode to JavaScript or WebAssembly -
…source code. A minimizer/obsfucator does a great job of making your JavaScript code unreadable. [1] https://github.com/WebAssembly/binaryen
comment by s-macke · 2017-12-11 · in WebAssembly, an executable format for the web -
…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
comment by kodablah · 2017-06-28 · in ThinScript, an experimental programming language that can compile to WebAssembly -
How about https://github.com/WebAssembly/binaryen ?
comment by reedlaw · 2017-06-06 · in WebAssembly 101: A developer’s first steps -
…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? -
…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 -
…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 -
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 -
…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 -
…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…
comment by aspirin · 2016-05-07 · in Show HN: Ast.run – WebAssembly playground -
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 -
…fallback asm.js bundle for now. [0]: https://github.com/kripken/emscripten/wiki/WebAssembly [1]: https://github.com/webassembly/binaryen
comment by s3th · 2016-03-15 · in Experimental support for WebAssembly in V8 -
…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 -
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…
comment by shadowmint · 2016-01-16 · in A look at asm.js and the future with WebAssembly -
…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,…
comment by azakai · 2015-12-17 · in Compiling to WebAssembly: It’s Happening -
…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 -
▲ 98
Binaryen: Compiler infrastructure and toolchain library for WebAssembly, in C++story by ingve · 2015-12-17 · 3 comments