Ben Matthews

  • New here on lemmy, will add more info later …
  • Also on mdon: @benjhm@scicomm.xyz
  • Try my interactive climate / futures model: SWIM
  • 0 Posts
  • 145 Comments
Joined 3 years ago
cake
Cake day: September 15th, 2023

help-circle

  • This article feels to me really out of date. Scala3 was launched nearly five years ago, The tooling and lib-support was indeed dodgy back then but works very smoothly now. Scala3 also broke Scala2 macros, and some people whose business-model was selling support for clever libraries built on those macros made a lot of fuss (bad publicity). Meanwhile Scala3 has new more robust macros which work fine.

    I develop in scala an interactive climate-scenario model web-app . It’s running the model in your browser (500 years x 250 countries x many gases, sectors, feedbacks etc. - so it’s complex)… The scala code compiles to js (or wasm) -which is what runs this web app - but the same code also compiles with scala-native to run fast batch- calculations or tests. It also compiles to the jvm app like my older java code, but I rarely use this now.

    Scala3 code looks more like python than java - minimal brackets, and much nicer to read and higher level than rust.
    As for tools I just use Zed editor with Metals for LS, Mill for build, and other libs from the lihaoyi ecosystem, no web ‘frameworks’. Scala is both robust and flexible. In general - if the code compiles, typically it runs correctly first time, if not the very-intelligent compiler identifies precisely what to fix where (very different from so-called ‘AI’). So instead of reams of junk ‘tests’, it’s usually just enough to check whether my climate system plots look and behave as expected - higher level thinking.

    As for Kotlin it was effectively a russian-led (at the time) fork of Scala, staying closer to Java - so less flexible, but they did much more systematic marketing - and I suspect some of that deliberately pushed blog posts knocking Scala.
    What Scala lacks is promotion, so those following fashions of this hype-driven world won’t find it.
    For those who use it, it’s a great language, to do complex stuff that scales robustly.







  • Some comments below the article are good. I like especially this one:

    One thing that seems to me to be shaking out of LLMs: if an LLM can do it well enough to pass muster, it probably didn’t need doing in the first place. Coming at it from a programming perspective: if an LLM can generate the required code, it shows that you could have better abstractions that describe your behavior with less code. If an LLM can generate a document, it’s a sign that the document isn’t necessary in the first place- it’s a bit of leftover make work that should be subsumed into a better process. And so on.













  • I remember in 1990s the talk about “Europe from Lisbon to Vladivostok”, also having crossed the land border from Russia to China several times during that period, I felt the relative european culture on ‘our’ side. So, yes, there was a lost opportunity, and we could have been more welcoming, but it was not a conspiracy, nor were any specific political groups to blame (as article hints) - rather just the slow muddled consensus-processes of EU and NATO could not cope with any faster expansion, meanwhile russians got impatient and let Putin (KGB) take over, so it went bad.
    If we were to redesign the whole structure, I’d say we should abolish NATO and replace it with a mutual defence organisation for democracies anywhere in the world - including Brazil, Japan, India, etc. if they like, but with no permanent membership. There should be clearly specified democratic criteria including freedom for political opposition, media, NGOs, etc., and when these are no-longer fulfilled, a procedure for suspension of rights that requires a large majority but no vetos. So, currently Hungary might be suspended, and even USA if it continues its current track, while democrats in Russia (or in exile from R) might be encouraged to see a long-term pathway open.
    Such redesign of NATO - conversion from a tribal members club to a defence of democracy - might even be an face-saving way to end the war.