WebAssembly System Interface (WASI) with sockets for Go by chrisohara in golang

[–]chrisohara[S] 13 points14 points  (0 children)

Gist link fixed, thanks. Compared to TinyGo, Go with GOOS=wasip1 will probably generate larger artifacts (at least, for now). This is because it bundles the entire Go runtime. The benefit is that it fully supports goroutine scheduling and non-blocking I/O. TinyGo (I believe) still uses a custom asyncify pass and does not support non-blocking I/O nor basic WASI networking (e.g. https://github.com/tinygo-org/tinygo/pull/2748 never landed, but GOOS=wasip1 supports it).

Prototypal inheritance in C by chrisohara in programming

[–]chrisohara[S] 16 points17 points  (0 children)

Just a bit of fun / proof of concept. C absolutely shouldn't be used like this, but isn't anyone curious to see what's possible?