"Best" is hard to define - what are your requirements?

If GWT doesn't fit your use cases, it seems unlikely that J2CL will - can 
you elaborate on what about GWT doesn't work for you? If anything, I've 
found J2CL to be more picky than GWT in just about every way - more limited 
options for emulation, more requirements for JsInterop, no JSNI/Generators, 
smaller ecosystem and prior art for customizing the build (whether using 
the maven plugin or the official Bazel build tooling).

It does tend to produce slightly smaller and slightly faster output, and 
does offer better integration with compiling plain JS sources in the same 
build (with the requirement that this JS must be built to be safe to 
compile by closure-compiler in ADVANCED mode).

For a generally bigger set of JRE emulation (and much larger output sizes), 
consider TeaVM or CheerpJ - both have their strengths. I don't have a lot 
of experience with either, but I do find that for math-heavy apps, TeaVM 
does a great job getting even better performance in some cases than GWT or 
J2CL, and produces output much more quickly. It tends to do much more 
poorly on string heavy (e.g. DOM manipulation). CheerpJ I have almost no 
experience with, but excels at supporting nearly any JRE-compatible code, 
and finding a way to make it work regardless of whether the browser is a 
good place to run it. This is a huge advantage for "it doesn't matter as 
long as it can run" cases - more and more it can be possible to run a JS 
app that is hundreds of times what would have been acceptable a few years 
ago.

On Saturday, December 27, 2025 at 12:08:38 PM UTC-6 [email protected] 
wrote:

> Can someone advise if it's the best tool for building js code from pure 
> logic front end java ? I need to enable usage for those not using GWT. 
> Thanks
>
> Yahoo Mail: Search, Organize, Conquer 
> <https://mail.onelink.me/107872968?pid=nativeplacement&c=US_Acquisition_YMktg_315_SearchOrgConquer_EmailSignature&af_sub1=Acquisition&af_sub2=US_YMktg&af_sub3=&af_sub4=100002039&af_sub5=C01_Email_Static_&af_ios_store_cpp=0c38e4b0-a27e-40f9-a211-f4e2de32ab91&af_android_url=https://play.google.com/store/apps/details?id=com.yahoo.mobile.client.android.mail&listing=search_organize_conquer>
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/12612394-a3db-4171-b11d-2b2dea7706c7n%40googlegroups.com.

Reply via email to