WebAssembly/wabt
View on GitHub ↗ ★ 8,190 C++
The WebAssembly Binary Toolkit
42 mentions on Hacker News by 36 people: 2 stories, 40 comments · first 2015-09-22 · latest 2026-10-18
20082026
-
…s://opencs.aalto.fi/en/courses/programming-languages/par... https://github.com/vivshaw/neurastheniacc https://github.com/WebAssembly/wabt
comment by peter_d_sherman · 2026-10-18 · in Examples and information relating to using Web Assembly WAT -
…I've heard of some projects compiling a language to Wasm, then using wasm2c to translate to C. https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.... The Zig project does something similar for their bootstrapping process with a…
comment by lioeters · 2026-07-03 · in crustc: entirety of `rustc`, translated to C -
https://github.com/bytecodealliance/wasm-micro-runtime https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.... ISTR Siemens uses wasm2c to compile Wasm for a bunch of embedded devices runninng Zephyr RTOS.
comment by wffurr · 2026-06-20 · in Project Valhalla, Explained: How a Decade of Work Arrives in JDK 28 -
…no huge runtime to carry, just a fairly direct translation of Wasm byte code to C (or Go). wasm2c: https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.... wasm2go: https://github.com/ncruces/wasm2go
comment by ncruces · 2026-03-08 · in Notes on writing Rust-based Wasm -
…very much the point to build everything from scratch. Though to be fair, for tests I am relying on https://github.com/WebAssembly/wabt
comment by ziggy42 · 2025-12-09 · in Epsilon: A WASM virtual machine written in Go -
…go ahead and disassemble the .wasm file just like any other executable format. Here are some tools: https://github.com/WebAssembly/wabt If you're worried about understanding how an application works, remember that most of it is on the…
comment by zfg · 2025-02-28 · in WASM Wayland Web (WWW) -
Yes, wasm2c implements the Wasm tail-call feature with trampolines, exactly this way. ( https://github.com/WebAssembly/wabt/blob/main/test/wasm2c/ta... has an example.) Doing it with a trampoline is probably slower than if C really had…
comment by keithwinstein · 2024-08-19 · in Parsing protobuf at 2+GB/s: how I learned to love tail calls in C (2021) -
…to wasm, and/or then converting the wasm to C? https://github.com/wasm3/wasm3/releases/tag/v0.4.8 https://github.com/WebAssembly/wabt/tree/main/wasm2c
comment by spease · 2024-07-31 · in Building static binaries with Go on Linux -
…the code traps when attempting out-of-bounds memory accesses). [0]: https://webassembly.org [1]: https://github.com/WebAssembly/wabt/issues/2289#issuecomment...
comment by jay-barronville · 2024-05-18 · in Wuffs: Wrangling Untrusted File Formats Safely -
…Toolkit [0]. I personally prefer this method, although Wuffs will usually produce faster code. [0]: https://github.com/WebAssembly/wabt/tree/44837a7236e85c048de...
comment by jay-barronville · 2024-05-18 · in Wuffs: Wrangling Untrusted File Formats Safely -
https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.... is a straightforward way to take an untrusted application (compiled already to wasm) and turn it into C that you can embed into your application or compile to a linkable DLL.…
comment by kevingadd · 2024-04-06 · in Fortran on WebAssembly -
https://github.com/WebAssembly/wabt
comment by oshams · 2024-01-11 · in Show HN: Auto Wiki – Turn your codebase into a Wiki -
…long as this is happening, might as well try some of my favorites: https://github.com/wasm3/wasm3 , https://github.com/WebAssembly/wabt , https://github.com/bytecodealliance/wasmtime
comment by TachyonicBytes · 2024-01-08 · in Show HN: Auto Wiki – Turn your codebase into a Wiki -
…https://learnxinyminutes.com/docs/wasm/ WebAssembly/WABT: The WebAssembly Binary Toolkit: https://github.com/WebAssembly/wabt https://docs.docker.com/desktop/wasm/ : docker run \ --runtime=io.containerd.wasmedge.v1 \ --platform=wasi/wasm \…
comment by westurner · 2023-12-27 · in Ask HN: Best blog tutorial explaining Assembly code? -
…can really get your hands dirty and understand exactly every detail of how your program runs! [0] https://github.com/WebAssembly/wabt
comment by pton_xd · 2023-12-23 · in Understanding every byte in a WASM module -
I think you're missing a good amount of nuance here minified JS can be turned into reasonable JS, yes, but you're probably not going to get TypeScript code back, so the same sort of challenge exists there. Assembly -> high-level language…
comment by slimsag · 2023-11-12 · in Capturing the WebGPU Ecosystem -
You mean this? https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.... That seems like quite an undertaking. But at that point, It would make sense to cut out WASM entirely like https://datastation.multiprocess.io/blog/2022-05-12-sq…
comment by dlock17 · 2023-11-05 · in Show HN: Gogosseract, a Go Lib for CGo-Free Tesseract OCR via Wazero -
…you offering me a WASM runtime for the 8051 either As long as there’s a C compiler for it, just use https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.... or https://github.com/turbolent/w2c2 That way, you get the portability of…
comment by circuit10 · 2023-05-24 · in DeviceScript: TypeScript for Tiny IoT Devices -
…ecosystem, including specs and tooling. Fascinating stuff! https://github.com/WebAssembly/spec https://github.com/WebAssembly/wabt
comment by lioeters · 2022-10-29 · in Smolnes: A NES emulator in less than 5000 significant bytes of C++ -
…used in 2021. [2] [1] https://hacks.mozilla.org/2021/12/webassembly-and-back-again... [2] https://github.com/WebAssembly/wabt/tree/main/wasm2c > wasm2c takes a WebAssembly module and produces an equivalent C source and header.
comment by ReactiveJelly · 2022-10-05 · in SQLite: QEMU All over Again? -
…[3]: http://site.novidee.com/blog/blog-entry.html?article=2022082... [4]: https://github.com/WebAssembly/wabt
comment by jdmichaud · 2022-09-27 · in Isolates, microVMs, and WebAssembly -
…but surely it's a better stopgap solution than letting the happy path fail for years on end. 1: https://github.com/WebAssembly/wabt/tree/main/wasm2c
comment by buu700 · 2022-06-20 · in The State of WebAssembly 2022 -
You can also target C through Wasm. https://github.com/WebAssembly/wabt/tree/main/wasm2c
comment by sitkack · 2022-04-16 · in Zig self hosted compiler is now capable of building itself -
Hm I don't really think RE2 is even that influential (unfortunately IMO). Rust is the only new language whose engine borrows its design AFAIK. For example, I was disappointed to learn that Julia uses PCRE. ---- I think backtracking is…
comment by chubot · 2020-06-30 · in ReDoS: Regular Expression Denial of Service -
…from the name section, linking section, or import/export name, in that order of preference (see https://github.com/WebAssembly/wabt/blob/master/docs/decompi... ). In the case of globals, the only way to name a global is thus if its…
comment by Aardappel · 2020-04-29 · in What’s in that .wasm? Introducing wasm-decompile -
wat2wasm can do that (part of https://github.com/webassembly/wabt ). Since it's C++, I guess you could compile to it (wat2wasm) to webassembly to run in the browser as a library, and if it's works, no need for separate web/desktop version.…
comment by capableweb · 2019-11-24 · in Clojure-flavored WASM text format -
…that’s ~7700 lines. I haven’t tried either one but it would be interesting to see how they compare! https://github.com/WebAssembly/wabt/tree/master/src/interp ~/git/languages/wabt/src/interp$ wc -l *.cc *.h 1863 binary-reader-interp.cc…
comment by chubot · 2019-05-10 · in WebAssembly Micro Runtime -
…it in rust? then compile itself to C. Another idea, just compile rustc to web assembly then use https://github.com/WebAssembly/wabt/tree/master/wasm2c to convert it to your bootstrap source.
comment by andrewchambers · 2018-12-15 · in Bootstrapping Rust -
It's part of https://github.com/WebAssembly/wabt I think I had to build from source.
comment by jhpriestley · 2018-11-29 · in ECMAScript regular expressions are getting better (2017) -
What? Just use wasm2wat [1] and you’ll get the text format. [1] https://github.com/WebAssembly/wabt
comment by KenanSulayman · 2018-10-11 · in Walt: JavaScript-like syntax for WebAssembly -
…hard to debug when optimized using wasm-opt [4]. [1] Part of WebAssembly Binary Toolkit: https://github.com/WebAssembly/wabt [2] Source code on Github: https://github.com/psychonautwiki/impis/blob/master/core/src... — Demo paste:…
comment by KenanSulayman · 2018-07-11 · in Reverse-Engineering WebAssembly [pdf] -
> Is a disassembler for WASM a thing yet? Yes, it's part of the standard toolkit. See https://github.com/WebAssembly/wabt and specifically the "wasm2wat" tool.
comment by mrec · 2018-04-18 · in Hello wasm-pack -
The tools for 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…
comment by geokon · 2018-04-12 · in Sneak Peek at WebAssembly Studio -
Sorry I did not read it properly, you can use these ones instead to actually write WASM. https://github.com/WebAssembly/wabt https://github.com/cretz/asmble
comment by pjmlp · 2017-12-16 · in WebAssembly Raytracer -
You can translate it to something human readable(ish): https://github.com/WebAssembly/wabt
comment by meheleventyone · 2017-05-24 · in Show HN: A WebAssembly game demo -
…wabt): https://cdn.rawgit.com/WebAssembly/wabt/2baa1ecb0b36bea6268c... It uses the code from here: https://github.com/WebAssembly/wabt/tree/master/demo
comment by binji · 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 -
…ps://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 -
I've made some progress on this, but there's still a way to go: https://github.com/WebAssembly/sexpr-wasm-prototype/commit/8...
comment by binji · 2016-07-13 · in WebAssembly Specification Prototype -
github.com/WebAssembly/sexpr-wasm-prototype github.com/WebAssembly/spec github.com/WebAssembly/design
comment by flamedoge · 2016-06-25 · in Build Your First Thing with WebAssembly