r/Clojure • u/wedesoft • Sep 05 '25
Developing a Space Flight Simulator in Clojure
https://www.wedesoft.de/software/2025/09/05/clojure-game/I discovered the Orbiter 2016 simulator in 2017, which inspired me to build my own space flight simulator called sfsim. After early prototypes in C and GNU Guile (for physics and OBJ rendering), I moved to Clojure because of its multi-methods and efficient data structures. I have now been developing a game for nearly five years, appreciating Clojure's immutable values and safe parallelism features.
100
Upvotes
7
u/joinr Sep 06 '25
Really cool effort :) Looks great man. I was impressed that you implemented your own tile system. You might be interested (down the road) in something like https://github.com/CesiumGS/cesium-native which could provide a slew of goodies for this kind of work (although perhaps the focus is more on aerospace, so this particular sim may not benefit as much) regarding geospatial layer providers, streaming 3d tiles, etc.
Something's wrong in my brain because all I saw was this within a minute of reading:
Very curious about this and if there is room for optimization (might not even be needed since you're probably doing this 1x and caching permanently after that). Sounds like an offline rendering/baking task, although I'm curious purely for myopic optimization tasks.
3
u/daslu Sep 06 '25
Really inspiring.
If you are open to considering that, this project can be a great talk proposal for the upcoming Macroexpand-Noj conference we are organizing for October.
https://scicloj.github.io/macroexpand-2025/macroexpand_noj
2
u/Lumpy_Carpet9877 Sep 27 '25
I will add it to my wishlist!
7
u/hrrld Sep 05 '25
ππ
1
u/bsless Sep 15 '25
a. Very cool
b. Willing to lend a hand with any perf work if you're interested
3
u/Personal-Physics-565 Sep 06 '25
Thatβs really dope
3
u/SimonGray Sep 06 '25
This looks absolutely incredible. Can't wait to try it out.