I don't know much about GraalVM, I know that it ge...
# compose-desktop
s
I don't know much about GraalVM, I know that it generates a native executable of a Java/Kotlin project. There is any possibility of using the GraalVM AOT compiler with Compose-JB ?
a
Why would you need it if Native support will come sooner or later?
m
To ship before Native support is there?
I've done a few tests with GraalVM and it's useful to distribute a JVM app without having to worry about bundling a JVM
1
Also starts faster
it’s not using Graal atm, but relies upon jpackage utility, however plugging Graal in looks natural
s
Compose Desktop is plain JVM application, so it should work just like all other JVM apps. Unfortunately, Graal doesn’t support AWT and Compose for Desktop uses it under the hood. So, it will not working (at least yet).
m
GraalVM issue if anyones curious about AWT support: https://github.com/oracle/graal/issues/1327
👆🏻 1
s
BTW, it is possible to implement our own windows management API for all platforms without relying on AWT. It will work in that case, but it is huge work.
m
Could SDL be an alternative to Swing/AWT?
s
AFAIK, it is only about graphics and input devices, but not windows management (menu, tray integration, notification, etc..). No?
m
Oh yea
s
Skia have something in their demos, but it is not intended to be stable api. I think it is good point to start.
m
I didn't know compose integrated with menus, tray, etc.. already 👏
m
Awesome 😃
o
see https://github.com/JetBrains/compose-jb/tree/master/tutorials for all tutorials for CfD specific features
👍 2
m
Wow, that's some nice tutorials! 🤩 Congrats to the team!
s
JFR: Here is Skia window management utility which, apparently, can be improved to a stable state https://github.com/google/skia/blob/ed65339084c0da4b9711457e7d4747c9e072ca1e/tools/sk_app/Window.h