Ncruces/wasm2go: A WASM to Go translator

(github.com)

2 points | by atkrad 13 hours ago ago

2 comments

  • ncruces 3 hours ago ago

    I guess someone read the “announcement” that I'm now confident enough this will work that I'll be switching my mildly popular SQLite bindings to use it: https://github.com/ncruces/go-sqlite3/discussions/361

    If you're interested in generated sample code, see: https://github.com/ncruces/wasm2go/tree/main/testdata

    If you're interested in using wasm2go, but feel that something is missing, I'm listening.

    Caveat: I don't plan to implement any host modules myself (e.g. WASI), but you're welcome to build your own.

    I'm open to supporting additional Wasm proposals, if feasible, and if they get some use. Examples: I don't think tail-calls are feasible; I assume exception handling could be useful for C++; and I'm definitely interested in dynamic linking support.

  • gnabgib 12 hours ago ago