4 ms·
Can you actually compile Swing or JavaFX with GraalVM? I have only ever heard anecdotal evidence of that, even though I have known people from the Graal team it
by kaba0 2y ago
Can you actually compile Swing or JavaFX with GraalVM? I have only ever heard anecdotal evidence of that, even though I have known people from the Graal team itself.
Like, there shouldn’t be anything fundamental that prevents it from working (it just has platform specific native dyn libs which works fine with graal), but never seen an example, so I would appreciate a pointer.
- brnt 2y agoHaven't tried it, but looks like you can: https://www.praj.in/posts/2021/compiling-swing-apps-ahead-of-time/ https://www.praj.in/posts/2021/compiling-swing-apps-ahead-of...
- mike_hearn 2y agoSure. For JavaFX see here: https://github.com/gluonhq/substrate https://github.com/gluonhq/substrate Sibling gave a link for Swing. I've also seen it done for Jetpack Compose but that's definitely more experimental. None of this stuff is very smoothed over though. There aren't many people doing it. But, the results are pretty magical.