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

polaris · · 257 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Today I saw that with a latest change in Rust <a href="https://www.hellorust.com/news/native-wasm-target.html">you can compile to WebAssembly without additional tools</a>. So I wanted to ask if there&#39;s any effort from the Go team or the community for something similar in Go.</p> <hr/>**评论:**<br/><br/>Sythe2o0: <pre><p>It&#39;s being worked on. <a href="https://github.com/golang/go/issues/18892">https://github.com/golang/go/issues/18892</a></p></pre>TUSF: <pre><p>Neat. There was even an update several hours after you posted this.</p> <blockquote> <p>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&#39;ll be on vacation and then there are the holidays.</p> </blockquote> <p>Can&#39;t wait.</p></pre>qu33ksilver: <pre><p>Someone has started doing this. <a href="https://github.com/golang/go/issues/18892#issuecomment-341714912">https://github.com/golang/go/issues/18892#issuecomment-341714912</a>. But it hasn&#39;t reached to any stage yet.</p></pre>Ainar-G: <pre><p>IIRC, LLVM can compile to WASM, and there is <a href="https://go.googlesource.com/gollvm/">Gollvm</a>. There is also <a href="https://github.com/gopherjs/gopherjs">GopherJS</a>. But yeah, I&#39;d prefer an actual compiler to WASM.</p></pre>feketegy: <pre><p>Go to WASM? That would open up a whole lot of possibilities</p></pre>birkbork: <pre><p>Except for more performance, what possibilities are you thinking of that we cannot already get with <a href="https://github.com/gopherjs/gopherjs" rel="nofollow">https://github.com/gopherjs/gopherjs</a></p></pre>monkey-go-code: <pre><p>I really can’t think of anything more important than performance.</p></pre>ijustwantaredditacct: <pre><p>username checks out</p></pre>feketegy: <pre><p>Are you comparing JavaScript to Assembly? LOL :)</p> <p>Assembly is as close as you can get performance wise, unless you&#39;re a savant and want to write machine code</p></pre>birkbork: <pre><p>I am not comparing, no. Just pointing out that there is a go-&gt;browser path today.</p> <p>Still wondering about the possibilities.</p></pre>: <pre><p>[removed]</p></pre>frebb: <pre><p>As a fan of Go, this made me chuckle. Not enough to upvote, but thanks anyway.</p></pre>
257 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传