Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

GWT Demo

149 views
Skip to first unread message

bryan

unread,
Apr 16, 2025, 3:40:55 AMApr 16
to GWT Users
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 !


Craig Mitchell

unread,
Apr 16, 2025, 7:27:32 PMApr 16
to GWT Users
Very cool.  Impressive it didn't cheat and actually coded it with GWT UI Binder and JSNI.

Tim Macpherson

unread,
Apr 17, 2025, 2:16:07 PMApr 17
to google-we...@googlegroups.com
Why did it use JSNI ? it's a bit young for that


--
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-tool...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/google-web-toolkit/0434a5e9-6a00-4a30-ac8c-0dd614eea57dn%40googlegroups.com
.

Carl Stainton

unread,
Apr 17, 2025, 5:18:02 PMApr 17
to google-we...@googlegroups.com
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 …

bryan

unread,
Apr 17, 2025, 5:47:40 PMApr 17
to GWT Users
Possibly because Grok originally generated it for GWT 2.7 as I recall and I then told Grok the latest version was 2.12.2 and not all the code was re-factored.

bryan

unread,
Apr 17, 2025, 5:48:45 PMApr 17
to GWT Users
I specifically told Grok I didn't want to use GWTBootstrap3 as I wanted the latest Bootstrap and wanted to minimise dependencies.

Frank

unread,
Apr 18, 2025, 3:31:01 AMApr 18
to GWT Users
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:

Ralph Fiergolla

unread,
Apr 18, 2025, 5:01:12 AMApr 18
to google-we...@googlegroups.com
Looking for a new job?



--
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-tool...@googlegroups.com.

Tim Macpherson

unread,
Apr 18, 2025, 11:47:18 AMApr 18
to google-we...@googlegroups.com
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 ?

--
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-tool...@googlegroups.com.
To view this discussion visit

cbruno...@gmail.com

unread,
Apr 18, 2025, 2:31:04 PMApr 18
to GWT Users
Im surprised it didnt just tell you to use React. =)

Tim Macpherson

unread,
Apr 19, 2025, 12:33:31 PMApr 19
to google-we...@googlegroups.com
That's actually an interesting question:  sometimes ai will hallucinate but not to the degree of invoking an unmentioned framework in my experience. It sticks to the gwt framework and as expected & provides the most common solution given the docs it has read, which implies JSNI is documented more than jsinterop
Reply all
Reply to author
Forward
0 new messages