Remix.run Logo
The Origins of Scala (2009)(artima.com)
30 points by todsacerdoti 3 hours ago | 12 comments
semiinfinitely a few seconds ago | parent | next [-]

Answer: some PL prof used to do a lot of java back in his day

Zambyte 2 hours ago | parent | prev | next [-]

Scala was the second programming language I learned (the first was Java). I think I'm quite lucky to have picked up a language like Scala so early in my programming journey. It made it very easy for me to learn new programming languages, since it made it easy to support wildly different paradigms (which is also what makes it hard to use in an enterprise environment).

SOLAR_FIELDS 6 minutes ago | parent [-]

yeah, you get everything and the kitchen sink with Scala. Which is actually IMO its biggest weakness. It wants to be everything, and it isn't amazing at anything as a result.

Rochus 41 minutes ago | parent | prev | next [-]

It's interesting that Odersky started with Modula-2 (implementing a Z80 compiler), did a PhD with Wirth, but there discovered that functional programming offered a level of theoretical rigor and mathematical elegance he missed in Wirth's imperative languages. Wirth was generally critical of the complexity and abstraction often associated with functional languages. Rather than rejecting Wirth's pragmatism, he carried it forward by attempting to make functional programming "industry-ready".

ENGNR an hour ago | parent | prev | next [-]

One interesting thing about Scala is that Odersky has both a research background but also is clearly cares about the lecturing/education in his university role also. So they're trying to lean ahead of industry to lead the way on what's possible, but there's also pretty good material on the decisions and how they got there.

It has it's own drawbacks, like all languages, but I appreciate the clarity of their decision making and the communication of what's happening.

kasperset an hour ago | parent | prev | next [-]

Have error messages improved? I remember trying it few years back but the error messages made it hard to debug. Is it due to use of JVM? Sorry for my lack of knowledge since I rarely program in JVM based languages.

ForHackernews 2 hours ago | parent | prev [-]

Scala is a great language. It's a little bit disappointing that Kotlin is the JVM language that's gained so much traction instead.

blandflakes an hour ago | parent | next [-]

They really obliterated their momentum with how they went about Scala 3, unfortunately.

spockz an hour ago | parent [-]

Why is that? I think they did a lot of things right. Offer automatic conversions, backwards and forwards compatibility from a sufficiently recent 12.x version.

I think mostly Kotlin being simpler and Java gaining features ate the lunch. Also, software like Akka and Spark becoming less prevalent hurt because they were big reasons for devs to learn the language. Not to mention the community drama.

The only bad thing was that it took quite long for Scala3 to become available leading to a lot of stagnation.

dboreham an hour ago | parent | prev | next [-]

I've used both fairly extensively. Scala is just "too much". Kotlin is perhaps not enough, but that's better than too much.

29athrowaway 2 hours ago | parent | prev [-]

Except when you chain many collection operations... then it breaks horribly.

tbct an hour ago | parent [-]

Can you elaborate on what you're referring to? I can see performance becoming a problem if you repeatedly chain non-optimisable (in bytecode) as excluding the in place operations I believe all ops re-allocate the collection.