News for hackers. Stuff that matters.
Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by inamiyar on Thursday March 24, 2022 @10:43AM (#30790552)
I'm not sure if I'm reading this right but either duktape or WebView might do what you want.

https://duktape.org/ https://github.com/webview/webview

Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by beamatronic on Thursday March 24, 2022 @02:55PM (#30793961)
I'm thinking of a world with Javascript, but without HTML or a web server.
Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by cxr on Thursday March 24, 2022 @05:13PM (#30795405)
You're describing the Mozilla platform's old XUL strategy, or the modern Gnome desktop. JS has permeated GTK for the last 10 years. It was a huge part of Gnome 3. For a brief moment, pushing people to start with JS for their next GTK app was an explicit strategy for the Gnome project. There was so much backlash, though, that they backed away from that position a month or two later. Had they had the courage to stand their ground, the rise of Electron might never have happened. A world with a better GTK as the go-to cross-platform UI toolkit would have been a lot better than where we ended up instead.
Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by kaba0 on Friday March 25, 2022 @07:46AM (#30800932)
Or Qt’s QML.
Re:Ask HN: Does Java need a modern Java UI toolkit for deskt... by cxr on Friday March 25, 2022 @07:59AM (#30801047)
You can make a hello-world app with JS and GTK by creating a file hello.js, typing some code in, and then running it. AFAIK, although Qt has some support for JS integration, the story is not the same. You still need to develop a traditional Qt app and then start peppering in JS where it suits you. Am I wrong?