https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
c

caelum19

04/01/2024, 1:59 PM
I started using Koin with my jetpack compose for desktop application and got a taste for the finer things, and am now eyeing the richer inversion of control options that Quarkus provides (e.g. @Schedule, config injection) and am wondering how crazy might it be to use quarkus with compose desktop in an application that is meant to ship to end user devices? (am currently using conveyor for what it's worth)
anyone tried quarkus or a similar container framework with compose desktop? The application is very unlikely to be running in a container, but these frameworks do a lot of other nice things that would be hard to achieve by manually including their transitive dependencies
concern being that this is definitely not what quarkus is intended for or had in mind, though could be quite nice for
c

Colton Idle

04/01/2024, 3:06 PM
TIL Quarkus
1
p

Pablichjenkov

04/01/2024, 6:37 PM
Should be possible. However, not sure how hard it is to adapt a compose application to quarkus or actually, adapting quarkus to a compose App. But the fact that you can mix both I believe is possible
m

mikehearn

04/03/2024, 2:21 PM
There are certainly people using Spring in desktop apps so it should be possible
You know the drill here: try it out and write a blog post 🙂
👍🏻 1
👍 2
😅 2
c

caelum19

04/15/2024, 4:39 PM
Just wanted to update here that I got quarkus and compose working in devmode, and the dev ex is really nice with Quarkus' robust live reloading (which relies on a tree of class loaders, and has various optimisations), which I have setup so part of the application's data layer can persist hot reloads, which seem to be robust to any type of change (e.g. new files/classes, renaming) and only take 1s each! Next I want to try adding decompose and a
remember
wrapper that uses the
Component
hierarchy minus the root as a key when in devmode, so that compose desktop devs can make most of their changes anywhere in the application with about a second to feedback 😄 I'll write a blog post on this when I've gone a bit deeper and got the deployment side of things working
👍 2
m

mikehearn

04/18/2024, 9:56 AM
Nice, that's really cool. Looking forward to reading it. I didn't know Quarkus had invested so much into live reload.
3 Views