Re:Data Manipulation in Clojure Compared to R and Python
by soumyaskartha on Tuesday March 24, 2026 @02:52PM
(#47507423)
Clojure never got the data science crowd even though the language is genuinely good for it. Always felt like a distribution problem more than a technical one.
[ Parent
| on HN ]
Re:Data Manipulation in Clojure Compared to R and Python
by asa400 on Tuesday March 24, 2026 @03:05PM
(#47507579)
Unfortunately, having to mess around with a JVM is a tough sell for a lot of data analysis folks. I'm not saying it's rational or right, but a lot of people hear "JVM" and they go "no thank you". Personally I think it's a non-issue, but you have to meet people where they are.
Re:Data Manipulation in Clojure Compared to R and Python
by pjmlp on Tuesday March 24, 2026 @04:16PM
(#47508508)
The irony given the mess of Python setup where there are companies whose business is to solve Python tooling.
Re:Data Manipulation in Clojure Compared to R and Python
by asa400 on Tuesday March 24, 2026 @09:55PM
(#47512226)
Oh, I completely agree. Like I said, it's not rational, but it is what it is.
Re:Data Manipulation in Clojure Compared to R and Python
by famicom0 on Tuesday March 24, 2026 @03:36PM
(#47507902)
Meanwhile, I find it very annoying to deal with the litany of Python versions and the distinction between global packages and user packages, and needing to manage virtual environments just to run scripts. That being said, I am not an expert but that's always been my experience when I need to do anything Python related.
Re:Data Manipulation in Clojure Compared to R and Python
by cmiles74 on Tuesday March 24, 2026 @04:43PM
(#47508951)
I dunno, if you can slog through the Python ecosystem then the JVM is starting to look not so bad. Plus with Clojure you don't need to deal with the headache and heartache that is Maven.
Re:Data Manipulation in Clojure Compared to R and Python
by KingMob on Tuesday March 24, 2026 @11:19PM
(#47512832)
I think that's true for only a limited subset of programs, though. The Clojure lib ecosystem is nowhere near the size of the broader Java ecosystem, so you frequently end up pulling Maven deps to plug holes anyway.
Re:Data Manipulation in Clojure Compared to R and Python
by pjmlp on Wednesday March 25, 2026 @02:59AM
(#47514181)
That is the goal of a polyglot runtime, and why Clojure was designed to be a hosted language that embraces the platform, unlike others that make their tiny island.
Re:Data Manipulation in Clojure Compared to R and Python
by KingMob on Wednesday April 01, 2026 @11:14AM
(#47602022)
Uhhh, yes, but I was trying to convey to the parent that most real-world Clojure programs won't isolate you from Maven.
Re:Data Manipulation in Clojure Compared to R and Python
by packetlost on Tuesday March 24, 2026 @04:49PM
(#47509042)
idk, I don't think I've had to do anything beyond install the JVM to work with Clojure. I'm not really a fan of the clj commands flag choices though (-M, -X, etc. all make no sense)
Re:Data Manipulation in Clojure Compared to R and Python
by KingMob on Tuesday March 24, 2026 @11:15PM
(#47512807)
It's unfortunate, but people's associations with Java the lang bleed into their beliefs about the JVM, one of the most heavily-optimized VMs on the planet.
There's some historical cruft (especially the memory model), but picking the JVM as a target is a great decision (especially with Graal offering even more options).
Re:Data Manipulation in Clojure Compared to R and Python
by pjmlp on Wednesday March 25, 2026 @03:04AM
(#47514205)
Exactly, especially because there isn't THE JVM, rather a bunch of versions each with their own approaches to GC, JIT, JIT caches, ahead of time compilation.
Only .NET follows up on it at scale.
Re:Data Manipulation in Clojure Compared to R and Python
by levocardia on Tuesday March 24, 2026 @03:35PM
(#47507896)
In this very post you can see why: the dplyr code is just so much more readable. Like a lot of python, dplyr reads almost like pseudocode: take this dataset, select the columns that start with "bill", then filter so that bill_length is less than 30. So simple and so little fluff!
Re:Data Manipulation in Clojure Compared to R and Python
by erichocean on Tuesday March 24, 2026 @03:50PM
(#47508087)
> is just so much more readable
I thought that too before I learned Clojure, now I find them equally readable.
Re:Data Manipulation in Clojure Compared to R and Python
by lemming on Tuesday March 24, 2026 @07:49PM
(#47511247)
I'm very familiar with Clojure, but even I can't make a good argument that:
(tc/select-rows ds #(> (% "year") 2008))
is more, or at least as, intuitive as: filter(ds, year > 2008)
as cited above. I think there's a good argument to be made that Clojure's data processing abilities, particularly around immutable data, make a compelling case in spite of the syntax. The REPL is great too, and the JVM is fast. But I still to this day imagine infix comparisons in my head and then mentally move the comparator to the front of the list to make sure I get it right.
Re:Data Manipulation in Clojure Compared to R and Python
by Capricorn2481 on Tuesday March 24, 2026 @08:55PM
(#47511783)
I am really not in data science, and I have decent Clojure experience. Is there a reason anyone would pick Clojure over something like K? From what I understand, those array languages are really good for writing safe but efficient code on rectangular data.
Re:Data Manipulation in Clojure Compared to R and Python
by erichocean on Wednesday March 25, 2026 @03:31AM
(#47514376)
How about this?
(filter ds (> year 2008))
That's a trivial Clojure macro to make work if it's what you find "intuitive."