Hacker GitHub

← All repos

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

Mentions per year 42 mentions · busiest year 2018 (7)
20082026
  1. …s://opencs.aalto.fi/en/courses/programming-languages/par... https://github.com/vivshaw/neurastheniacc https://github.com/WebAssembly/wabt
  2. …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…
  3. 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.
  4. …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
  5. …very much the point to build everything from scratch. Though to be fair, for tests I am relying on https://github.com/WebAssembly/wabt
  6. …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)
  7. 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…
  8. …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
  9. …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
  10. …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
  11. 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
  12. https://github.com/WebAssembly/wabt
  13. …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
  14. …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 \…
  15. …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
  16. 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
  17. 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…
  18. …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…
  19. …ecosystem, including specs and tooling. Fascinating stuff! https://github.com/WebAssembly/spec https://github.com/WebAssembly/wabt
  20. …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?
  21. …[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
  22. …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
  23. You can also target C through Wasm. https://github.com/WebAssembly/wabt/tree/main/wasm2c
  24. 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…
  25. …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…
  26. 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
  27. …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
  28. …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
  29. It's part of https://github.com/WebAssembly/wabt I think I had to build from source.
  30. 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
  31. …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]
  32. > 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
  33. 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
  34. ▲ 1
    The WebAssembly Binary Toolkit
    story by werediver · 2018-01-01 · 0 comments
  35. 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
  36. 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
  37. …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
  38. 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
  39. …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
  40. 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
  41. 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
  42. ▲ 1
    Sexpression to wasm
    story by vmorgulis · 2015-09-22 · 0 comments