4 ms·
> I then realised that there isn’t a single decent statistics library that still maintained, and that the java bindings were far from simple to us I kind of fo
by zmmmmm 8y ago
> I then realised that there isn’t a single decent statistics library that still maintained, and that the java bindings were far from simple to us
I kind of found a similar problem with Scala. In theory yeah, you can use any Java library from Scala. But what was happening was I was continuously hitting the impedance mismatch between the scala collection and data types and the Java ones. Sometimes it was happening implicitly and doing automatic conversions of massive amounts of data without me knowing and I had to do all kinds of non-idiomatic stuff to get Scala to perform well. My Scala started off much prettier than my Groovy code usually is, but by the time I finished it was an abomination. At that point I gave up and went back to Groovy because while it lacks many of the functional features, idiomatic Groovy "just worked" and gave me most of what I was looking for in terms of a "better Java".
- vorg 8y ago> My Scala started off much prettier than my Groovy code usually is, but by the time I finished it was an abomination > Sometimes I think I should just use Kotlin, but then I would miss the ability to drop seamlessly into dynamic mode Have you considered Clojure for this use case? That might alleviate your problems with using Kotlin and Scala, without having to resort to a single-target language like Apache Groovy. After all, unlike what Clojure, Kotlin, and Scala all offer now, we're never going to see an edition of Groovy that targets Javascript, Android, or native CPU.
- zmmmmm 8y agoI've always been intrigued by Clojure but it feels like a huge leap to dive into a fully Lisp-style, completely functional language. I guess single target isn't a particularly big problem for me; the JVM runs everywhere I need it to.