JSNI is probably easier than jsinterop in the bootstrap example ? no js file to 
create and load, no annotations, but 
1) bit fiddly calling JSNI methods from js,
2) doesn't do non-native exports ?

Yahoo Mail: Search, Organize, Conquer 
 
  On Fri, Apr 18, 2025 at 8:31 AM, Frank<[email protected]> wrote:   
All those AI tools give/prefer JSNI code over JsInterop.

For example yesterday I was looking for using SVG in GWT. And Gemini told me I 
could for example wrap svg.js in a gwt wrapper. And explicitty told me that 
JSNI was a better option then JSinterop with some reasons. It showed examples 
of both but recommended going with JSNI.

In the past I also have seen it multiple times that Gemini and Copilot tell me 
to use JSNI.


(personnally I actually also find JSNI to be a better solution, but I don't use 
it anymore because of the promise of GWT 3 (?...?))

Op donderdag 17 april 2025 om 23:48:45 UTC+2 schreef bryan:

I specifically told Grok I didn't want to use GWTBootstrap3 as I wanted the 
latest Bootstrap and wanted to minimise dependencies.
On Friday, April 18, 2025 at 7:18:02 AM UTC+10 Carl Stainton wrote:

There’s also the GwtBootstrap3 library that’s open source (and has its own 
similar demo app). Wonder if the AI had that in its training material …
On Thu, 17 Apr 2025 at 19:15, 'Tim Macpherson' via GWT Users 
<[email protected]> wrote:

Why did it use JSNI ? it's a bit young for that

Yahoo Mail: Search, Organize, Conquer 
 
  On Thu, Apr 17, 2025 at 12:27 AM, Craig Mitchell<[email protected]> 
wrote:   Very cool.  Impressive it didn't cheat and actually coded it with GWT 
UI Binder and JSNI.

On Wednesday, 16 April 2025 at 5:40:55 pm UTC+10 bryan wrote:

If anyone is interested, I created a GWT test app styled with Bootstrap. The 
code is almost entirely written by Grok (99%). Quite amazing what AI can do!






-- 
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/3abd7770-8303-457d-933f-7e72add74c32n%40googlegroups.com.

-- 
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/664436441.5158206.1744991155435%40mail.yahoo.com.

Reply via email to