Re: GWT for a Java to WASM compiler

2023-05-16 Thread Craig Mitchell
I think the advantages come from transpiling languages other than JS to 
WASM (in their examples, Kotlin and Dart).  Eg: An integer in Java, will 
still be in integer in WASM, while when you ask GWT for an integer, it has 
to do a bunch of magic, as JS doesn't have integers.

On Sunday, 14 May 2023 at 9:50:58 pm UTC+10 lofid...@gmail.com wrote:

> Thanks for the info. A very good explanation in that video.
>
> But still don't understand why would this solution with WASM GC 2x faster 
> than the *"pure transpiling"* solution? The latter is completely in JS 
> and uses the GC from JS as it is.
>
> Does this means using JS with WASM will be 2x faster than the pure JS??? 🤣
>
> Thanks 
> Lofi
>
> Craig Mitchell schrieb am Freitag, 12. Mai 2023 um 12:27:43 UTC+2:
>
>> At Google I/O 2023, they showed that WASM (Web Assembly) is finally 
>> getting garbage collection (as well as shared memory).
>>
>> https://developers.googleblog.com/2023/05/bringing-kotlin-to-web.html
>> https://youtu.be/RcHER-3gFXI?t=604
>>
>> They showed that JetBrains was experimenting with Kotlin compiling to 
>> WASM.
>>
>> There wasn't any mention of anyone doing Java compilation to WASM.
>>
>> I wonder how hard it would be to modify GWT to compile to WASM.  
>> Possible?  Thoughts?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/edaac5a4-7bdd-42d0-a6af-0909da7d0573n%40googlegroups.com.


Re: GWT for a Java to WASM compiler

2023-05-14 Thread lofid...@gmail.com
Thanks for the info. A very good explanation in that video.

But still don't understand why would this solution with WASM GC 2x faster 
than the *"pure transpiling"* solution? The latter is completely in JS and 
uses the GC from JS as it is.

Does this means using JS with WASM will be 2x faster than the pure JS??? 🤣

Thanks 
Lofi

Craig Mitchell schrieb am Freitag, 12. Mai 2023 um 12:27:43 UTC+2:

> At Google I/O 2023, they showed that WASM (Web Assembly) is finally 
> getting garbage collection (as well as shared memory).
>
> https://developers.googleblog.com/2023/05/bringing-kotlin-to-web.html
> https://youtu.be/RcHER-3gFXI?t=604
>
> They showed that JetBrains was experimenting with Kotlin compiling to WASM.
>
> There wasn't any mention of anyone doing Java compilation to WASM.
>
> I wonder how hard it would be to modify GWT to compile to WASM.  
> Possible?  Thoughts?
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/3e467b07-cc83-4238-b2d0-f2850c215e67n%40googlegroups.com.


Re: GWT for a Java to WASM compiler

2023-05-12 Thread Thomas Broyer


On Saturday, May 13, 2023 at 12:34:33 AM UTC+2 ma...@craig-mitchell.com 
wrote:


>From memory, TeaVM has had WASM in an undocumented  and experimental status 
for a few years now.  I won't be holding my breath for that one.  🙂


Well, at least it's documented now 😉 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/36bc4522-1fef-49c8-bae4-153f5fc5de5an%40googlegroups.com.


Re: GWT for a Java to WASM compiler

2023-05-12 Thread Craig Mitchell
Awesome!  Looks like J2CL is on it!  🎉

>From memory, TeaVM has had WASM in an undocumented  and experimental status 
for a few years now.  I won't be holding my breath for that one.  🙂

On Saturday, 13 May 2023 at 2:30:51 am UTC+10 Thomas Broyer wrote:

> Also, TeaVM does Java → WebAssembly (WASM or WASI)
> https://www.teavm.org/
> No idea if it already leverages WASM-GC or it's in their roadmap
>
> On Friday, May 12, 2023 at 12:59:17 PM UTC+2 gordan...@steatoda.com wrote:
>
>> On 12. 05. 2023. 12:27, Craig Mitchell wrote: 
>> > 
>> > There wasn't any mention of anyone doing Java compilation to WASM. 
>> > 
>> > I wonder how hard it would be to modify GWT to compile to WASM.  
>> Possible?  Thoughts? 
>>
>> There is a Wasm compilation target in J2CL, but I haven't ever tried it 
>> myself: 
>>
>> https://github.com/google/j2cl 
>> https://github.com/google/j2cl/issues/88 
>> https://github.com/google/j2cl/issues/93 -> according to this one, they 
>> are working on their WASM support currently ("Now") 
>>
>> -gkresic. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/40619553-9a04-4e15-a903-57264bd1824dn%40googlegroups.com.


Re: GWT for a Java to WASM compiler

2023-05-12 Thread Thomas Broyer
Also, TeaVM does Java → WebAssembly (WASM or WASI)
https://www.teavm.org/
No idea if it already leverages WASM-GC or it's in their roadmap

On Friday, May 12, 2023 at 12:59:17 PM UTC+2 gordan...@steatoda.com wrote:

> On 12. 05. 2023. 12:27, Craig Mitchell wrote:
> > 
> > There wasn't any mention of anyone doing Java compilation to WASM.
> > 
> > I wonder how hard it would be to modify GWT to compile to WASM.  
> Possible?  Thoughts?
>
> There is a Wasm compilation target in J2CL, but I haven't ever tried it 
> myself:
>
> https://github.com/google/j2cl
> https://github.com/google/j2cl/issues/88
> https://github.com/google/j2cl/issues/93 -> according to this one, they 
> are working on their WASM support currently ("Now")
>
> -gkresic.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/91156990-3b2e-4abb-8d97-185719454184n%40googlegroups.com.


Re: GWT for a Java to WASM compiler

2023-05-12 Thread Gordan Krešić

On 12. 05. 2023. 12:27, Craig Mitchell wrote:


There wasn't any mention of anyone doing Java compilation to WASM.

I wonder how hard it would be to modify GWT to compile to WASM.  Possible?  
Thoughts?


There is a Wasm compilation target in J2CL, but I haven't ever tried it myself:

https://github.com/google/j2cl
https://github.com/google/j2cl/issues/88
https://github.com/google/j2cl/issues/93 -> according to this one, they are working on 
their WASM support currently ("Now")

-gkresic.

--
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/a9730331-58a4-4fab-f1cb-d4f0946ea02a%40steatoda.com.


GWT for a Java to WASM compiler

2023-05-12 Thread Craig Mitchell
At Google I/O 2023, they showed that WASM (Web Assembly) is finally getting 
garbage collection (as well as shared memory).

https://developers.googleblog.com/2023/05/bringing-kotlin-to-web.html
https://youtu.be/RcHER-3gFXI?t=604

They showed that JetBrains was experimenting with Kotlin compiling to WASM.

There wasn't any mention of anyone doing Java compilation to WASM.

I wonder how hard it would be to modify GWT to compile to WASM.  Possible?  
Thoughts?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/31f2c100-cdfe-403d-921b-6c975fdc6f94n%40googlegroups.com.