News for hackers. Stuff that matters.
Re:Developing a Space Flight Simulator in Clojure by roenxi on Friday September 05, 2025 @11:21PM (#45146335)
Fun fact: the big difference isn't the syntax. Lisps only go from foo(bar baz) to (foo bar baz) which is a change but not really much of one. The change is actually the immutable and high performance basic data structures. Clojure can do something that something like C can't do - cheaply create a copy of something with a small change. That leads to a completely different preferred code style in the Clojure community that is a big departure from C-like languages which make heavy use of variables. The code is doing something practically different from what a C-like language can ergonomically handle.
Re:Developing a Space Flight Simulator in Clojure by Zambyte on Saturday September 06, 2025 @01:16AM (#45146800)
Clojure has a bunch of other syntactic structures not found in other lisps that makes it a lot more visually noisy. I'm very comfortable with Scheme and I can very quickly absorb Scheme code when reading it, but I have to very slowly decipher the code in the article.
Re:Developing a Space Flight Simulator in Clojure by iLemming on Saturday September 06, 2025 @05:35PM (#45153068)
> not found in other lisps that makes it a lot more visually noisy

I disagree. It only feels that way, until you learn how destructuring works in Clojure. Once you grok that, you'd understand why the vector syntax for function arguments was chosen, and not a simple list like in other Lisps. In general, Clojure is highly pragmatic - if something done certain way, most-likely it's for good reasons, and not by accident.

Also, Clojure-maps are just freaking amazing. I wish others, e.g., Elisp had them.

Clojure is extremely and nicely readable, just requires some getting used to it. At some point, I completely replaced my API-testing workflows, switching from JSON to EDN - it's almost twice more compact and much better visually, not to mention that it's incredibly nice to be able to just explore and visualize any given data through the REPL.

Re:Developing a Space Flight Simulator in Clojure by Zambyte on Monday September 08, 2025 @09:04AM (#45167756)
> It only feels that way, until you learn how destructuring works in Clojure

Well... yes. The original comment was about how Clojure code looks very foreign. The reply to that was that Lisp code is not actually that foreign because it's just taking the common foo(bar baz) and making it (foo bar baz). My comment was that Clojure is more foreign to most programmers than other Lisps, because it's not simply mapping foo(bar baz) to (foo bar baz).

Of course when you learn the things that make it unique, it becomes familiar.