Today I saw that with a latest change in Rust you can compile to WebAssembly without additional tools. So I wanted to ask if there's any effort from the Go team or the community for something similar in Go.
评论:
Sythe2o0:
TUSF:It's being worked on. https://github.com/golang/go/issues/18892
qu33ksilver:Neat. There was even an update several hours after you posted this.
I am very happy about the progress in a month and a half, and only in my spare time. I think there is a good chance that we could get this into Go 1.11. Expect my next update in January, since I'll be on vacation and then there are the holidays.
Can't wait.
Ainar-G:Someone has started doing this. https://github.com/golang/go/issues/18892#issuecomment-341714912. But it hasn't reached to any stage yet.
feketegy:IIRC, LLVM can compile to WASM, and there is Gollvm. There is also GopherJS. But yeah, I'd prefer an actual compiler to WASM.
birkbork:Go to WASM? That would open up a whole lot of possibilities
monkey-go-code:Except for more performance, what possibilities are you thinking of that we cannot already get with https://github.com/gopherjs/gopherjs
ijustwantaredditacct:I really can’t think of anything more important than performance.
feketegy:username checks out
birkbork:Are you comparing JavaScript to Assembly? LOL :)
Assembly is as close as you can get performance wise, unless you're a savant and want to write machine code
:I am not comparing, no. Just pointing out that there is a go->browser path today.
Still wondering about the possibilities.
frebb:[removed]
As a fan of Go, this made me chuckle. Not enough to upvote, but thanks anyway.
