Remix.run Logo
▲ TinyGo 0.45.0 Released(github.com)
75 points by iaaan 3 hours ago | 7 comments
▲shit_game a few seconds ago | parent | next [-]

TinyGo has been my favorite means of using my Raspi Picos so far. My only gripe so far is that maps are nigh unusable due to their slowness, but this is generally simple enough to work around (at the expense of performance). I'm sure there are still more rough edges, but I don't think I'm experienced enough with embedded software to identify them.

▲KingOfCoders 2 hours ago | parent | prev [-]

I'm using it to generate WASM, sadly Go with the GC/goroutine infra is not as good a WASM language than e.g. Rust which is a very simple 'binary', TinyGo works well though.

▲logicallee 2 hours ago | parent [-]

Could I ask how you do that? How do you actually build with a webassembly target? I might be interested.

▲KingOfCoders an hour ago | parent | next [-]

<Shameless plug> https://appfuzz.dev/ https://appos.build/

▲logicallee an hour ago | parent [-]

that's really interesting, thank you. I'm not sure we're ready to use that platform, though :)

▲KingOfCoders 6 minutes ago | parent [-]

Many aren't, it's a big ask. But I'm more interested in spreading the idea than selling something. I found WASM and underrated gem - e.g. https://pglite.dev/

▲01HNNWZ0MV43FF an hour ago | parent | prev [-]

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.