Re:Idiomatic Clojure without sacrificing performance
by gpderetta on Sunday October 24, 2021 @07:50AM
(#28977064)
Having to use 24 cores to get to 1/4th of the performance of a single threaded C# application seems particularly awful.
Especially as C# is a relatively pleasant language to use.
It doesn't matter how good threading in clojure is if you don't even need to use it to beat clojure on another language (also: great scaling is pointless if you start so far behind).
Re:Idiomatic Clojure without sacrificing performance
by reitzensteinm on Sunday October 24, 2021 @08:09AM
(#28977168)
Yes, hammering in a nail with a screwdriver is particularly awful. I love using Clojure where it's appropriate, but I'm not in the least bit tempted to use it for game dev.
This leaves Clojure as 1/4 the overall speed, which seems about right. However that's based on a hugely unscientific gut feeling, because generally I don't touch Clojure if performance matters and I don't touch C# if it doesn't.
By the way, I've implemented persistent data structures on disk for a problem they were particularly useful for. If stalling for a cache miss feels bad, try waiting for an SSD :)