News for hackers. Stuff that matters.
Re:Scala projects are difficult to maintain by ebruchez on Monday March 22, 2021 @05:45PM (#26547652)
> better designed than Scala

How so? Do you mean Java in general, or just the pattern matching part? Can you provide an example where Java is "better designed"?

Re:Scala projects are difficult to maintain by gher-shyu3i on Tuesday March 23, 2021 @05:05AM (#26552678)
Destructuring in Scala is allocation heavy, I expect it to be much lighter weight in Java.
Re:Scala projects are difficult to maintain by RoyBro on Tuesday March 23, 2021 @09:06AM (#26554498)
Scala compiles to java bytecode. Scala can only be faster then Java, in that Scala can leverage all functionality of the JVM and on top provide extra smarts that Java cannot due to backwards compatibilty it has to offer.
Re:Scala projects are difficult to maintain by gher-shyu3i on Tuesday March 23, 2021 @11:35AM (#26556235)
This has never been true for non-native languages (Scala, Clojure, Kotlin, etc.) as far as I'm aware. They've always been slower. The JVM is designed with Java in mind and co-evolves with it.
Re:Scala projects are difficult to maintain by tormeh on Tuesday March 23, 2021 @09:59PM (#26562700)
One of the benefits of Scala's willingness to break bytecode compatibility all the time is that whenever Java/JVM implements a Scala concept, Scala switches to the Java method under the hood. Whenever the JVM gets Java-specific optimisations, Scala will use those. That's honestly pretty cool.
Re:Scala projects are difficult to maintain by fulafel on Thursday March 25, 2021 @01:30AM (#26576867)
They have in practice been slower because they try to be higher level, more ergonomic languages than Java. There aren't many performance-first JVM languages yet I think (Fortress maybe? They cited JVM problems when they wrapped up though).