Anyone done much recent experimentation with Compo...
# compose-desktop
r
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
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
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
I believe AWT support is still missing for macOS unfortunately.
Linux should work, it was the first platform that had Graal AWT support
🙏 1
Bellsoft Liberica NIK (a Graal fork) apparently does have support. Not clear what the licensing/tradeoffs are though
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)