hyperfiddle

whilo 2025-07-08T21:51:57.865449Z

Hey. Is there a way to use Electric in a Clojure client, e.g. a desktop app using JavaFX? I guess I can integrate a web view in JavaFX and load an Electric client in there maybe.

grounded_sage 2025-07-10T09:31:40.767539Z

JavaFX uses an old version of WebKit. Expect low performance and rendering issues depending on your use case

grounded_sage 2025-07-10T09:33:52.046699Z

I would use: • Electron • Saucer bindings (https://github.com/saucer/saucer) • clj-cef In order from least to more work

whilo 2025-07-10T16:07:41.368469Z

thanks!

whilo 2025-07-08T22:00:47.760609Z

Maybe like this https://univalence.io/blog/drafts/shadow-cljfx/

Dustin Getz (Hyperfiddle) 2025-07-09T00:05:39.702049Z

JVM server JVM client, i dont know, my best guess is it will require a week or two of integration work on our part

Dustin Getz (Hyperfiddle) 2025-07-09T00:05:58.652719Z

certainly it can work in principle

👍 1
whilo 2025-07-09T03:36:55.282539Z

what would the steps roughly look like? is the biggest chunk of work mapping the dom?

xificurC 2025-07-09T07:49:27.264979Z

• map the javafx lifecycle into electric. Mount, unmount, update, rotate if that exists (like insertBefore in browsers) • build a TCP network server/client bridge. Today we only have websocket • test server=jvm/client=jvm setup. Electric is largely prepared for this but we never deployed this configuration so there's bound to be some rough edges