Anyone done much recent experimentation with Compose Desktop + GraalVM?
I got my app running on Windows (with a few small issues), but am surprised at the memory usage still being pretty high: ~180mb for a tray icon, no open window
rob42
10/16/2024, 6:59 AM
For the curious, the issues were with a missing java.home, which causes a font loading exception, and the app rendering at 1x dpi -- which I haven't had time to dive into yet.
What was encouraging is how snappy everything felt compared to running on the JVM. And this was using a non optimized build from Graal CE.
👀 1
m
Michael Paus
10/16/2024, 7:13 AM
Do you know whether that works on Mac and Linux now too? Last time I tried there was still missing AWT support at least on Macs.
r
rob42
10/16/2024, 7:28 AM
I believe AWT support is still missing for macOS unfortunately.
rob42
10/16/2024, 7:28 AM
Linux should work, it was the first platform that had Graal AWT support
🙏 1
rob42
10/16/2024, 7:31 AM
Bellsoft Liberica NIK (a Graal fork) apparently does have support. Not clear what the licensing/tradeoffs are though
rob42
10/16/2024, 7:36 AM
Sidenote: The kotlin multiplatform Gradle plugin is not compatible with the Graal gradle plugin. So you either need to use kotlin/jvm only, or make a new jvm module just for building the Graal native image (which can then depend on the output of the multiplatform module)