Hacker News new | past | comments | ask | show | jobs | submit login

Can you show one large-ish GUI software written in Clojure? Something like, idk, Blender, DaVinci Resolve, Unreal Engine...



My point is that there is nothing about functional programming, specifically the "Data structure + Algorithm" style, that makes it unsuitable for building complex applications like air traffic control system or bank lending system, and it has in fact been used successfully in domains like that.

If you are really interesting in this topic, check out the following pages: https://clojure.org/community/success_stories

https://wiki.haskell.org/Haskell_in_industry


The Defold game engine IDE is written in Clojure, using cljfx, a React-like wrapper around JavaFX:

https://defold.com/


looks very neat, but it doesn't really get more OO than JavaFX, does it ? would you call this code functional & idiomatic in any relevant sense of the term? https://github.com/defold/defold/blob/dev/editor/src/clj/edi...


I was mostly supplying an example rather than taking a side in the philosophical argument, to be clear. I’d call that idiomatic Clojure, but I’m a heathen that very much appreciates Clojure being on top of the JVM and offering Java interop.

Another big Clojure UI/graphics framework is Quil, which is based on Processing and does an even worse job of hiding it’s imperative/stateful core.


The problem with that is that (nearly?) every GUI toolkit is object oriented so you can't escape it if you want to write GUI programs.


> The problem with that is that (nearly?) every GUI toolkit is object oriented

Except for things like React which are more or less functional reactive programming, but in case of react its stateful. Functional reactive programming exist, and GUI is not obliged to be OO


clojure was introduced in 2007, there have been many GUI toolkits that have been implemented entirely from scratch in other languages since then. QML+QtQuick, Dart+Flutter, Nuklear in C, Nana or neoGFX in C++, etc etc




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: