Rust: Enable WebAssembly backend by default. What about Go?

polaris · 2017-11-26 20:00:05 · 1455 次点击    
这是一个分享于 2017-11-26 20:00:05 的资源,其中的信息可能已经有所发展或是发生改变。

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:

It's being worked on. https://github.com/golang/go/issues/18892

TUSF:

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.

qu33ksilver:

Someone has started doing this. https://github.com/golang/go/issues/18892#issuecomment-341714912. But it hasn't reached to any stage yet.

Ainar-G:

IIRC, LLVM can compile to WASM, and there is Gollvm. There is also GopherJS. But yeah, I'd prefer an actual compiler to WASM.

feketegy:

Go to WASM? That would open up a whole lot of possibilities

birkbork:

Except for more performance, what possibilities are you thinking of that we cannot already get with https://github.com/gopherjs/gopherjs

monkey-go-code:

I really can’t think of anything more important than performance.

ijustwantaredditacct:

username checks out

feketegy:

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

birkbork:

I am not comparing, no. Just pointing out that there is a go->browser path today.

Still wondering about the possibilities.

:

[removed]

frebb:

As a fan of Go, this made me chuckle. Not enough to upvote, but thanks anyway.


入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1455 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传