upvote
Yep. I use it on https://github.com/rcarmo/go-rdp for my RDP web client.
reply
Could I ask how you do that? How do you actually build with a webassembly target? I might be interested.
reply
From the TinyGo docs, it’s as simple as

    GOOS=js GOARCH=wasm tinygo build -o wasm.wasm ./main.go
https://tinygo.org/docs/guides/webassembly/wasm/

It relies on LLVM’s Wasm backend and some JS glue libraries for the browser.

reply
reply
Appreciated.
reply
that's really interesting, thank you. I'm not sure we're ready to use that platform, though :)
reply
Many aren't, it's a big ask. But I'm more interested in spreading the idea than selling something. I found WASM an underrated gem - e.g. https://pglite.dev/
reply
Agreed. DuckDB wasm is amazing. [1]

[1] https://github.com/duckdb/duckdb-wasm

reply
So you want to take arbitrary code in arbitrary languages, and run it on someone else's computer inside a sandbox?

Yes, wasm can do that.

You can compile the code to wasm, then run it in a runtime like wasmer or wasmtime. Or you can ahead-of-time compile it with something like wasm2c, which generates C code.

reply
w2c2 is also very good
reply
Or (shameless plug) if you want to generate Go from Wasm: https://github.com/ncruces/wasm2go
reply