This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-25
Channels
- # announcements (10)
- # babashka (21)
- # calva (8)
- # cider (6)
- # clj-commons (5)
- # clj-kondo (37)
- # cljfx (16)
- # clojure (31)
- # clojure-australia (1)
- # clojure-europe (7)
- # conjure (8)
- # cursive (3)
- # data-science (4)
- # datalevin (6)
- # datomic (18)
- # emacs (10)
- # holy-lambda (3)
- # honeysql (4)
- # humbleui (1)
- # introduce-yourself (1)
- # lsp (13)
- # malli (6)
- # portal (8)
- # scittle (5)
- # specter (1)
- # vscode (9)
- # xtdb (5)
I always found cljfx amazing! Amazing work vlaaad! Lately I thought about creating a app to store copy pastes similar to https://maccy.app/, would you think would be possible via cljfx? I wonder if the app startup (JVM) would be a issue
Some time ago I researched about using cljfx with graal, but seems graal still doesn't support javafx
wonder if you could do something with https://xbarapp.com/and babashka to watch the clipboard
I actually managed to make the CLI work with Graal :) https://github.com/ericdallo/clipure
native images do support JavaFX. Look at how Gluon do it. They have a Maven plugin.
Yeah, I saw that, but have no idea how to make gluon work with clojure, I'd need to debug the maven plugin
I guess you could write a one-file Java app that just loads and executes your Clojure app, then depend on it as a fat jar.
That said - is your app startup time genuinely a problem, especially if you use AppCDS? I found that for simple apps it made little difference. That was Java though, not Clojure.
Good point, maybe native compiled javaFx wouldn't be that fast, but yeah, I'm not sure startup is that important, it'd be a similar to a desktop app, so fast startup is good, but not that critical
The nice thing about using the regular JVM is that you can then cross-build all the packages your users need using Conveyor (https://conveyor.hydraulic.dev/), which makes doing a new release possible just on your laptop. With native-image you have to build on each platform you're targeting. It can be done with CI but is just less convenient. At least, it's worth shipping a hotspot version first, and then you can always upgrade people to native images later if you feel it's a good enough upgrade.
Yeah, I have all those CI headaches on clojure-lsp because of graal 😂 Agreed, I'll probably research a little bit more about just using JVM, I'd like to create a fancy app as beautiful as https://maccy.app/, so not sure if javafx or awt would provide components similar, maybe flutter would be better just using the clojure graal compiled binary of clipure
There's AtlantaFX. Check out the JavaFX sample app on the page I just linked - it's a really nice modern theme for JavaFX with a selection of nicely done widgets. Supports dark mode, nord colors, and more. https://github.com/mkpaz/atlantafx
You're welcome.