Without GC, I think its going to be a bit of a non-starter - the same issues that apply to compiling to asm.js apply here too. I've heard a few ideas floated around to just compile specific methods to asm.js, and those same ideas seem that they could work, but the really hard part is isolating these pieces of code, and at least for asm.js, you can actually take a significant performance hit from moving data into (or even just allocating) typed arrays. If you can tune the feature to how you'll need it (i.e. only ask the compiler to turn it on if you'll keep them around for a long time and have very hot code running through there) it seems worth it, but at that point JSNI or JsInterop might almost be easier to talk to raw JS (or WebAssembly) to guarantee that you get it right.
That said, GC is an eventual design goal in WebAssembly, so I think GWT or something like GWT could make it an eventual target. /2cents On Mon, Jun 22, 2015 at 2:03 PM Joel Handwell <joelhandw...@gmail.com> wrote: > - Luke Wagner wrote a post on his blog to report that his team at Mozilla > have started working with Chromium, Edge and WebKit engineers on creating a > new standard, WebAssembly, that defines a portable, size- and > load-time-efficient format and execution model specifically designed to > serve as a compilation target for the Web. > > - Google's JF Bastien mentions > <https://github.com/WebAssembly/design/commit/34318807a17cb43d79e8cf5939319e5b4909dc6d> > GWT in the design document of WebAssembly as a better execution for > languages and toolkits that are currently cross-compiled to the Web. > > Given this context, how do you think about considing building Java to > WebAssembly compiler? > > -- > You received this message because you are subscribed to the Google Groups > "GWT Contributors" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit-contributors/f9c423c0-bda2-4018-b7e1-9f56f3a34d73%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit-contributors/f9c423c0-bda2-4018-b7e1-9f56f3a34d73%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CADcXZMx%3D6Rr-rBdt%3Dym2uf9t-ouP9v-KvJxdErm94XNudbwbyw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.