home.social

#scala3 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #scala3, aggregated by home.social.

fetched live
  1. Let's generate Perl code from Scala. I’d like to see Perl libraries and source code that align with the JVM and its IR.
    #perl #scala3

    dev.to/p_pumulo/one-stack-mach

  2. Hey, we finally managed to switch to #scala3 at @rudderio 🎉

    It's done, and it was done without any disurption to our complicated product dev & maintenance workflow, so I'm proud of it :)

    The story is here:
    techblog.rudder.io/blog/scala-
    I hope it could help others know it can be done, and how.
    #scala

  3. for by @kitlangton is an absolute gem of a library, combining together the power of new types and refinement types. Absolutely recommended, if you don't use it yet.

    github.com/kitlangton/neotype

  4. Ah yes, Scala 3: the new scapegoat for rushed migrations by our fearless developer who never met a dependency he couldn't blame. 🚀💾 But fear not, the absence of "macro wizardry" is clearly the culprit for his inefficiencies, not the compiler he swears by. 🧙‍♂️🔮
    kmaliszewski9.github.io/scala/ #Scala3 #RushedMigrations #MacroWizardry #DeveloperBlame #CompilerIssues #HackerNews #ngated

  5. Riccardo Cardin has published a new update to his library, implementing channels as means of communication between fibers: github.com/rcardin/yaes/releas

    I'm following this development closely.

  6. I wrote an online step-by-step Simplex calculator for real-valued linear programming problems using Scala.js

    🔴 NO ADS!

    jbytecode.github.io/simplex/

    For those who teach operations research in their courses.

  7. And for literally one of the last talks of #ScalaIO, we have the immense luck to have Jonathan Winandy, one of the organisers of the conference, give us a talk on #kyo, one if the amazing demonstration of the power of #scala3 for better developer experience

    github.com/getkyo/kyo

  8. New blog post: Migrating to Scala 3

    Recently I migrated three old services to Scala 3. This post contains many overly specific notes on problems I faced and how to solve them.

    https://urmaul.com/blog/migrating-to-scala3/

    #Scala #Scala3

  9. The seventh @scalabridgelondon season starts on the 8th of Oct, and it's gonna be jam packed with interesting Scala related learning activities. Head on to Meetup.com and subscribe!
    meetu.ps/e/PwvsR/ttMQN/i

  10. Now that I've spend like 2 weeks moving #scala code around, commenting, writing, entering new lines, refactoring, creating multi level ifs and matches and multiple defs inside defs and all that stuff, all using #scala3 whitebased syntax with formatter turned on to write it into that and 4 spaces for ident...

    I'm getting so many weird compile errors constantly, scratching my head a lot about why comments moved place, for-comprehesions stopping to work..

    I'm tired. I don't think if it's worth.

  11. Today, we officially switched Rudder next version, a 15 years old complex app, to #Scala3.

    And we're still able to flawlessly upmerge bug corrections from 2 previous, still supported prior versions (released one year ago)

  12. So, after more than 2 years on it, we're almost at the point where #rudder is ported to #scala3 🎉🎉🎉

    Rudder is an old beast. 15y old. With lib from that era like (quite fabulous in retrospective) #liftweb by @dpp, XML literals, lib using macro that won't ever be ported to Scala 3, etc.

    And Rudder has a very peculiar (self imposed) constraint on branch support, where we need to easily switch to and evolve bra ches 2y old, and upmerge changes.

    And still, with the help of some very talented people, it's happening. With regular update to include syntax changes, prepare the code base, check things run in the future version... Without any impact on the release cycle if the product (until now! Still time to bork everything!)

    It was an extremely frustrating experience that could have been made easier without the Scala 3.0 big bang but with more iterative small changes like there is in new versions ("the last time syntax will change and books will be written", my ass).

    But still, the compat layer allowing to use #scala 2 libs in #scaka3, and the migration tools, are marvels.

  13. What a beautiful thing to approximate pi

    en.wikipedia.org/wiki/Gauss%E2

    :scala:

    Result: 3.141592653589794

  14. I'm not sure I understand the changes and improvements well, but if we got a new scala 3 release that finally works again on android it should be all over the news and crazy marketing everywhere...

    scala-lang.org/news/3.7.0/#sca

    #scala #scala3 #android #jvm

  15. In recent version of Scala, Named Tuples is a new feature.

    Named Tuples acts like case classes as well as tuples.

    :scala:

    Scala v3.7.0 is out!

  16. Scala v3.7.0 is out 🎈

    :scala:

  17. I recently developed a single-page application with Scala.js. Approximately 3500 lines of code compile to 1.6 mb of un-optimized JavaScript, and 340 kb of optimized JavaScript.

    I'm amazed that such a task can be accomplished with full type safety using full Scala.

    :scala: :javascript:

  18. ~40% have no plans to migrate to #scala3.

    ~55% are on #scala 2.13, ~30% on scala 3.

    ~40% using #fp style of programming, ~35% using regular style, ~20% highly generic code, only less than 7% use python like style.

    Overall a good read. Still only half way there.