A free, once-weekly Scala news flash. Easy to unsubscribe. Goes out every Thursday.
October 29th, 2020, ISSUE 350


Designing tapir’s WebSockets support

It is now possible to describe a web socket endpoint, expose it as an akka-http or http4s server, interpret as an sttp client, or generate AsyncAPI documentation!
Adam Warski (@adamwarski)
remote caching sbt builds with Bintray

We can liberate the Zinc state from machine-specificity and time, and become the foundation we lay towards building incremental remote caching for Scala.
Eugene Yokota (@eed3si9n)
BSP Support in sbt 1.4

As we will see in more details, BSP in sbt improves the integration of sbt inside IDEs and code editors. It provides the user with a unified working environment.
Scala Center (@scala_lang)
Streaming With Probabilistic Data Structures: Why & How

I will use KafkaStreams for demonstrations along the way, but the concepts explored here can be applied in virtually any streaming library.
Eliav Lavi (@eliavlavi)
Scala 3 Migration guide

An evolving guide to support the migration to Scala 3
Scala Center (@scala_lang)
ScalaZONE - Scala 3 Programming Language Courses

ScalaZONE gives you the easiest way to learn object-oriented and functional programming in one concise, high-level language regardless of your level of proficiency — from beginner to advanced.
VirtusLab and Propensive

Master the dark art of creating scalable, type-safe, concurrent apps with ZIO. Use promo code "scalatimes" to get a 10% discount!
Ziverge (@zivergetech)


Tagless Final - 4 error channel encodings (Error Handling - Part 2)

In this video we will see 4 possible ways to encode the 2 common error channels for business as well as technical errors. Among them are the mtl and the bifunctor encodings. This is part 2/2.
DevInsideYou (@DevInsideYou)
Akka Typed: Stateful and Stateless Actors

This video is for people getting started with Akka Typed. We explore some of the basic principles of typed actors, how to describe them by their behavior, and how we can keep mutable state inside Akka actors. Finally, I'll show you a technique to turn actors with mutable state into "stateless", functional actors in Akka.
Daniel Ciocîrlan (@rockthejvm)
Val vs Def functions in Scala

Functions are the centrepiece of functional programming. We need to have a strong understanding of how they work in Scala before we can move on to more powerful concepts. So, today we're going to focus on the difference between `Val` and `Def` functions.
Julien Truffaut (@JulienTruffaut)


Scale By the Bay, November 12th - 14th, online event

Starting at 3:30 PM CET. Use promo code "FUNCTIONAL" to get a 10% discount for our readers!
Scale By The Bay (@ScaleByTheBay)
Functional Data Modeling, November 18th - 19th, Online training

In this course, developers will learn how to use functional Scala to construct simple, precise, and flexible models of any business domain. Use code "ScalaTimes10" to receive 10% off at the checkout.
John A. De Goes (@jdegoes)
Essential Effects, November 18th-20th, online event

Essential Effects teaches how to safely create, compose, and execute effectful Scala programs using the Typelevel cats-effect library, and how to integrate these concepts and techniques into your projects. The course will take place online as three 4-hour sessions with breaks, 9am-1pm PST (UTC-7). Use discount code 'scalatimes' for a discount!
Inner Product (@InnerProductLLC)
ZIO Hackathon, November 20th-21st, online event

Attendees of ZIO Hackathon 2020 will be able to attend talks on ZIO projects from leading open source contributors, as well as receive expert mentorship in contributing features, bug fixes, and documentation enhancements to the ZIO ecosystem of libraries. Every Contributor to the ZIO library during the ZIO Hackathon will receive this collectible T-shirt!
Ziverge (@zivergetech)
Functional Scala, December 3th-4th, London

Learn the critical topics you need to excel as a Scala developer, and celebrate the Scala programming language and community. Every ticket holder to Functional Scala 2020 will receive an all-day Scala 3 course by John de Goes and a collectible T-shirt!
Ziverge (@zivergetech)
Scala 3 for Scala 2 developer, December 8th - 10th, Online training

In this course, developers who are already familiar with Scala 2.x will get a high-speed introduction to all the changes coming in Scala 3, including semantic changes, syntactic changes, new features, and dropped features. Use code "ScalaTimes10" to receive 10% off at the checkout.
John A. De Goes (@jdegoes)
Functional Scala Megapack (3 workshops)

Functional Design + Functional Data Modeling + Scala 3 for Scala 2 developers. Use our special link to get a 15% discount!
John A De Goes (@jdegoes)



Security library for http4s
http4s-pac4j contributors

This repository contains the Rocket chip generator necessary to instantiate the RISC-V Rocket Core.
rocket-chip contributors
cats-effect 3.0.0-M2

The most significant changes in this release are undoubtedly the introduction of auto-yielding semantics in fiber evaluation and the final removal of UnsafeRun and related introduction of Dispatcher.
cats-effect contributors

  1. Scala Times Issue #368

    Scala 3 Tech Report. Tuples bring generic programming to Scala 3. Scala Cats Invariant Functor. Lean for Scala programmers. Structuring Services with ZIO and ZLayer.

  2. Scala Times Issue #367

    The Coralogix Operator: A Tale of ZIO and Kubernetes. Introducing the lihaoyi-scala Github Organization. Why Are Fibers Fast?. Implementing a CountDownLatch (async and dirty). Value Classes in Scala.

  3. Scala Times Issue #366

    GraphQL Overview  -  Part2  -  Libraries. Scala's List has a Secret. Preventing Version Conflicts with versionScheme. Scala 3 Survey: The Conclusion. Upgrade your Tagless Final with Tofu.

  4. Scala Times Issue #365

    Coding Adventures with Party Parrot Game . Scala Cats Contravariant Functors. From First Principles: Why Scala?. Idiomatic Error Handling in Scala. Stop Letting Your Tests “Make” Your Luck.

  5. Scala Times Issue #364

    Why we need yet another Akka Persistence plugin?. Match Types in Scala 3. A Metals Retrospective (Part 1) · Metals. Making the Spark DataFrame composition type safe(r). Type driven API development using Scala and Tapir.

  6. Scala Times Issue #363

    How to Sort Lists in Scala with Tail Recursion. Image editing with Functors. Tail Recursive Functions (in Scala). Algebraic Data Types (ADT) in Scala. Ep 6: Functional error handling with applicative in Scala 3.

  7. Scala Times Issue #362

    5 Blogs for Scala's Birthday. Monocle 3 Roadmap. Higher-kinded data in Scala. Objects and Companions in Scala. Essential Effects, 27th-29th January, Online Event.

  8. Scala Times Issue #361

    Scala 3: Dependent Types, Part II. Configuring and suppressing warnings in Scala. Threading best practices in Cats Effect. Scala 3 Metaprogramming by Example by Adam Warski. What the Functor?.

  9. Scala Times Issue #360

    Scala 3: Dependent Types, Part I. Publish Scala 2 and Scala 3 macros together. Concurrent state machines. Wire Signals - Yet Another Event Streams Library. Scala Love CFP.

  10. Scala Times Issue #359

    Implementing Type classes in Scala 3. Finite-State Machines + FS2 streams: A match made in heaven. Scala Compiler Options, Fatal Warnings and Linting Guide. ZLayers by example. Scala 3 type classes.

  11. Scala Times Issue #358

    VirtusLab’s Scala 3 cooperation update. Scala 3.0.0-M3: developer's preview before RC1. How to Use Thread.sleep Without Blocking on the JVM. New in Scala 3. Scala Love CFP.

  12. Scala Times Issue #357

    Join the Scala Discord Server!. Enforcing Semantic Versioning with sbt-strict-update. Kafka Cron using wix/greyhound. Scala Filesystem Operations (paths, move, copy, list, delete) . Metals 2020 Review.

  13. Scala Times Issue #356

    Scala 3 Developers' Survey. Tapir vs Endpoints4s. Opaque Type Aliases and Open Classes. Akka Platform Guide. Type classes with Scala 2.

  14. Scala Times Issue #355

    Scala 3 Developers' Survey. Four new features of Scala 2.13 releases that you probably missed. Scala 3: Path-Dependent Types, Dependent Methods and Functions. Message-based Parallelism with Actors. IntelliJ Scala Plugin 2020.3 Is Out!.

  15. Scala Times Issue #354

    Scala 3 Developers Survey. A case for akka-coordination lease. Monad transformers and cats  -  3 tips for beginners. Forward Compatibility for the Scala 3 Transition. Mirror, Mirror on the Wall, Who’s the Genericioust of Them All?.

  16. Scala Times Issue #353

    Scala 3 Developers Survey. Managing Database Migrations in Scala. One year with Akka 2.6. Best practice for natural Ordering. Event-driven railway network based on Pulsar.

  17. Scala Times Issue #352

    Domain-Driven Design with FP in Scala. Explicit term inference with Scala 3. Keep alive for JMS connections. Why You Should Learn Scala in 2020?. A step-by-step guide for debugging memory leaks in Spark Applications.

  18. Scala Times Issue #351

    Autorecovery for (JMS) Streams. ZIO-AWS with ZIO Query. Implementing Scala.js Support for Scala 3. Let’s Talk About the Scala 3 Indentation. Concurrency in Cats Effect 3.

  19. Scala Times Issue #350

    Designing tapir’s WebSockets support. BSP Support in sbt 1.4. Streaming With Probabilistic Data Structures: Why & How. Scala 3 Migration guide. ScalaZONE - Scala 3 Programming Language Courses.

  20. Scala Times Issue #349

    Generic IOApp alternative. Let's build a Scala mock library. How To Make Integration Tests Less Flaky. Option  - the null of our times. Top Link of September: Polynote, A better notebook for Scala.

  21. Scala Times Issue #348

    Java 15 through the eyes of a Scala programmer. Functional Design, October 20th - 22nd, Online training. Scale By the Bay, November 12th - 14th, online event. Functional Data Modeling, November 18th - 19th, Online training. ZIO Hackathon, November 20th-21st, online event.

  22. Scala Times Issue #347

    A short guide to Blocker. Using: Did they forget something?. The assignment operator is broken!. Attending a hackathon with Scala and Akka (Streams) on Microsoft Azure. Programming Scala, Third Edition.

  23. Scala Times Issue #346

    Getting Started with Knative in Scala. Tagless Final - Part 12 - delivery-http-http4s (The Big Rewrite). Programming in Scala for beginners - week 5: classes. Eyjafjallajökull Lecture 2019. Scala 3: Enums.

  24. Scala Times Issue #345

    Tour of Scala. Polynote, A better notebook for Scala. Single command Scala setup. Dotty becomes Scala 3. Functional Effects with ZIO.

  25. Scala Times Issue #344

    Can we build better?. Algebra and Parametricity. How to Deploy a Scala Application to AWS Lambda. 5 lessons learned from my continuing awesome journey with ZIO. Scala 3 - A community powered release.

Organizing an event?
Promote it with
Scala Times.
The Scala Times reader?
Get a banner!
Got a tip?Send it in!
Follow us onTwitter.
Curated bySoftwareMill.
We arehiring.
Andtaking on projects.