r/programming • u/alexeyr • Jan 07 '24
Why is Jepsen Written in Clojure?
https://aphyr.com/posts/367-why-is-jepsen-written-in-clojure32
u/Brilliant-Sky2969 Jan 07 '24
Why x.y.z was written in a.b.c, is often because it's the language you know best.
17
u/wuteverman Jan 07 '24
Or the language where the assumptions and beliefs about what’s desirable and important best match your own.
7
11
3
u/Dragdu Jan 08 '24
Love performance being mentioned in the same breath as "within 1-2 orders of magnitude from Java".
Just a completely different world.
1
u/CurtainDog Jan 08 '24
Just a completely different world.
Uh huh, a world where you don't invent problems that don't need to be solved.
Aphyr's point was that idiomatic clojure was fast enough, and if you want to mangle it to make it faster clojure doesn't really stand in your way.
1
u/Dragdu Jan 08 '24
mhm, I am not criticizing him, you don't have to jump to his defense.
In my world, you will find explicit SIMD and manual prefetching in hot loops. Reading someone talking about reasonable performance being within orders of magnitude of Java is just an interesting look into a completely different one.
1
-8
57
u/Main-Drag-4975 Jan 07 '24 edited Jan 07 '24
tl;dr:
Interop with Java ecosystem for broad database driver support
Lisp goodies like macros and a REPL
Clojure is a stable language
Incidentally all three of those provide high leverage to Aphyr — less code to write for the first two, less code to rewrite for the third.
Seems just right for a project where 95% of the code is written by a single incredibly gifted programmer.