really love the examples, about 1/3 of the way through so far
Yay!
btw, it was the post on HN re: the reader app that originally caught my attention, and the suggestion that maybe graal native-image could help w/ size of distributable that got me pursuing this
well, that, and a few days later the team I’m part of got unexpectedly re-tasked to making a Desktop app (major shift from what we were doing)
I’m exploring the cljfx route, others are exploring Nim + Qt, and there’s also an effort to adapt an exisiting mobile app that’s built with React Native + cljs re-frame by developing a custom QT backend for React Native
I really like the idea of cljfx, seems the least hacky (proven, stable tech underneath — jvm, javafx, clojure)
and the architecture is conceptually similar to the mobile app’s re-frame codebase
yeah, cljfx was influenced by re-frame, although all re-frame-like stuff is made opt-in
hmm, have you considered electron with cljs? seems like a popular option..
electron is not an option for us
security problems
hmm, interesting!
have you ever thought about declarative state machines? I’m impressed with what the xstate project is doing, but have never had an opportunity to more than toy around with it. I wonder if a re-frame inspired approach could be further enhanced if you can build the state machines of the app declaratively
…well, I guess you can do that already, sort of, the declarative events and co-effects already go in that direction
hmm, I played with state machines long ago when I was game developer, but didn't really have problems where state machines were a fitting solution
were they simple ones, or full-on Harel statecharts?
simple 🙂
statecharts (hierarchical state machines) are neat because they have a concept of parallel regions (concurrent states), and embodiments like xstate and scxml allow you to invoke external services
mainly I like that you can sketch out a complete behavioral description of a component/app and visualize it, walk through its evolution, w/o causing side-effects
but it’s such a different mental-model, tough sell for a lot of people
anyway, later on I might try to experiment with how statecharts might work with cljfx but for now will use the techniques shown in the advanced examples