Comment by betaby

Comment by betaby 3 days ago

39 replies

Why would the governments invest money on such a niche language? "Scala is widely used to build and operate essential systems across multiple industries." - very bold statement.

agentcoops 3 days ago

I don't know what it looks like on the ground now, but Scala was the defacto language of data infrastructure across the post-Twitter world of SV late stage/growth startups. In large part, this was because these companies were populated by former members of the Twitter data team so it was familiar, but also because there was so much open source tooling at that point. ML teams largely wrote/write Python, product teams in JS/whatever backend language, but data teams -- outside of Google and the pre-Twitter firms -- usually wrote Scala for Spark, Scalding etc in the 2012-2022ish era.

I worked in Scala for most of my career and it was never hard to get a job on a growth stage data team or, indeed, in finance/data-intensive industries. I'm still shocked at how the language/community managed to throw away the position they had achieved. At first I was equally shocked to see the Saudi Sovereign Wealth fund investing in the language, but then realized it was just 300k from the EU and everything made sense.

It's still my favorite language for getting things done so I wouldn't be upset with a comeback for the language, but I certainly don't expect it at this point.

  • ForHackernews 3 days ago

    Did the Scala 3 changeover blunt its momentum, you think? Or just Python won out in a sort of worse-is-better way?

    • hocuspocus 2 days ago

      Mostly the latter. Scala 3 is almost completely irrelevant to the big data space so far. Databricks took six years before upgrading their proprietary Spark runtime to Scala 2.13. Flink dropped the Scala API before even moving to 2.13. I don't know if Scio will seriously attempt the move to Scala 3. All of them suffer from Twitter libraries being abandoned, which isn't insurmountable, but an annoyance still.

      And I don't think it matters anymore. I predict that the JVM will eventually be out of the equation. We're already seeing query engines being replaced by proprietary or open source equivalents in C++ or Rust. Large scale distribution is less of a selling point with modern cloud computing. Do you really need 100 executors when you can get a bare metal instance with 192, 256 or 384 cores?

      People want a dataframe API in Python because that's what the the ML/DS/AI crowd knows. Queries and processing will be done in C++ or Rust, with little or even zero need for a distributed runtime. The JVM and Scala solve a problem that simply won't exist anymore.

bachmeier 3 days ago

It wouldn't have to be used in very many places to justify a 377k investment. A few big European banks alone would be worth it. Their website says "we invest globally in the open software components that underpin Germany's and Europe's competitiveness and ability to innovate". The fact that Scala is used at a university could also be classified as innovation. This is a minor amount of money if you're going to compare it with a STEM or medical research grant.

ForHackernews 3 days ago

Is it niche? Scala is arguably the single most successful functional language. It interoperates with the whole JVM ecosystem. It's probably the #3 JVM language after Java and Kotlin.

Spark is Scala, Twitter was (is?) Scala https://sysgears.com/articles/how-and-why-twitter-uses-scala...

  • epolanski 3 days ago

    Scala was niche (but of course, you need to define niche first) and its market share has shrunk further in the last decade.

  • dehrmann 3 days ago

    > Scala is arguably the single most successful functional language.

    That would be Javascript.

    • halfmatthalfcat 3 days ago

      You're being downvoted but you aren't necessarily wrong. Javascript is probably one of the most approachable functional-like languages without being dogmatically functional.

  • ActorNightly 3 days ago

    Anything that runs on JVM should not be invested in.

    • iberator 3 days ago

      Why? I bet you never even wrote custom VM for your lang/architecture.

      There are like dozen of implementations for JVM alone: sun, Oracle, gnu, IBM etc etc

      • ActorNightly 3 days ago

        Because the idea of classes is baked into JVM. So when writing inline code, with groovy, scala, kotlin, whatever else, the compiler has to basically insert fake classes into the jvm.

        This may seem trivial, but because its fundamentally "hacky" its not something that is ever going to be as easy to work with and expand.

    • bachmeier 3 days ago

      There's also scala.js and Scala Native, even if the JVM is the primary platform.

ldayley 3 days ago

As a European project the foundation is likely pursuing funding from EU sources using the fact that it isn’t US tech as a selling point.

forgotpwd16 3 days ago

Scala may have fallen out of favor but was quite popular few years ago. And perhaps still is the most popular EU-designed language (developed by EPFL).

  • oytis 3 days ago

    Python. Python is the most popular language designed in EU. EPFL is not even in EU

    • seanhunter 3 days ago

      > EPFL is not even in EU

      For people who don't get this, EPFL is the Swiss Federal Technical Institue in Lausanne. Switzerland isn't part of the EU or EEA but has instead integrated itself with the EU very closely via a mindboggling number of bilateral agreements with the EU members and the Schengen agreement which allows for free, borderless movement. This has the effect of making it seem very much like they are part of the EU without actually being as such.

      https://en.wikipedia.org/wiki/Switzerland%E2%80%93European_U...

    • epolanski 3 days ago

      Others worth mentioning are Kotlin, Ada, Pascal, Haskell, Zig, Erlang, Elixir, Prolog, Ocaml.

      • ElectronCharge 3 days ago

        Sadly, I’m old enough to remember that Ada was the result of a US initiative to standardize a capable language for embedded development.

        A good friend worked on the well regarded Telesoft compiler…

      • homebrewer 3 days ago

        Kotlin is from St Petersburg, it's even named after an island near it.

        • epolanski 3 days ago

          St. Petersburg is in Europe.

          I thought what was worth mentioning was being European or not, rather than being part of an European legal entity or not.

      • Y-bar 3 days ago

        PHP is also from Europe. Not sexy perhaps, but popular enough to mention.

    • forgotpwd16 3 days ago

      True to both. My brain not braining. Was thinking Europe-based/driven. Python started in CWI but PSF is USA-based.

    • [removed] 3 days ago
      [deleted]
oytis 3 days ago

Maybe they've applied for the grant 10 years ago when Scala was all rage

pjmlp 3 days ago

For one, it is a programming language born in Europe, and mostly developed in Europe via EPFL.

For our technology freedom we need to focus on programming languages where PR aren't coming from contributors living in adversary nations.

nish__ 3 days ago

I made another comment about it. But the answer is Scala is the number one language for building hardware these days via Chisel.

  • wk_end 3 days ago

    Chisel is very neat but "the number one language for building hardware"? VHDL and SV are the only things in this space that actually matter. Chisel is still a blip for now.

    • nish__ 3 days ago

      "...these days." Don't quote me out of context.

      • wk_end 3 days ago

        I genuinely don’t understand what you think “these days” means or how what I said was incompatible with it.

beastman82 3 days ago

Probably because it's an amazing language for people who know what they're doing