News for hackers. Stuff that matters.
Re:Brett Slatkin: Why am I building a new functional program... by dxxvi on Sunday March 05, 2023 @11:37PM (#35037556)
There are 172 comments until now but Scala was mentioned only 3 times while it has, I think, all the features that are said to be needed for a functional programming language. Then what's wrong with Scala?

I'd like Scala to be more successful although I'm using Java and a bit of Kotlin now.

Re:Brett Slatkin: Why am I building a new functional program... by bslatkin on Sunday March 05, 2023 @11:48PM (#35037617)
Scala has a lot of interesting concepts in it for sure! The problem is that the JVM is a deal-breaker, either because of its complexity or because of the associated licensing risk. Clojure has the same problem, for what it's worth.
Re:Brett Slatkin: Why am I building a new functional program... by Lerc on Monday March 06, 2023 @12:03AM (#35037681)
I think intrinsic to that deal-breaker is the underlying problem. Memory management in a parallel environment is a tough nut to crack. Leaning on the JVM punts on the issue.

There's no reason JavaScript couldn't transparently implement parallel map/filter/etc. Other than the fact it is really hard to do. On the other hand a lot of the things JavaScript engines do today are also really hard, so maybe one day it'll happen.