Live data from Hacker News

Go gets preliminary WebAssembly support

go-review.googlesource.com

1–10 of 99 posts

Re: Go gets preliminary WebAssembly support

#4

This is great; looks like it's still fairly rough but interesting that GC languages are making due with what's there in the MVP of WebAssembly right now. Wonder how it works? does it use the regular call stacks or construct it's own and so on?

The design doc talks some about how this works: https://docs.google.com/document/d/131vjr4DH6JFnb-blm_uRdaC0...

Re: Go gets preliminary WebAssembly support

#7
Hey so question - WebAssembly can't access the DOM right? What's the whole point then, avoid Javascript? If we can't just swap out all the gnarly JS garbage whole-hog, I don't see where the business value is, given that there's plenty of language-to-js libraries.

Re: Go gets preliminary WebAssembly support

#8

This is great; looks like it's still fairly rough but interesting that GC languages are making due with what's there in the MVP of WebAssembly right now. Wonder how it works? does it use the regular call stacks or construct it's own and so on?

From this: https://docs.google.com/document/d/131vjr4DH6JFnb-blm_uRdaC0...

> Go’s garbage collection is fully supported. WebAssembly is planning to add its own garbage collection, but it is hard to imagine that it would yield a better performance than Go’s own GC which is specifically tailored to Go’s needs.

Presumably a runtime will be compiled into the wasm output, including Go's garbage collector.

Re: Go gets preliminary WebAssembly support

#9

Hey so question - WebAssembly can't access the DOM right? What's the whole point then, avoid Javascript? If we can't just swap out all the gnarly JS garbage whole-hog, I don't see where the business value is, given that there's plenty of language-to-js libraries.

>language-to-js libraries

With huge performance cost and complicated toolchains.

Post reply on HN