A free, once-weekly Scala news flash. Easy to unsubscribe. Goes out every Thursday.
October 24th, 2019, ISSUE 297

READING

Websockets in Scala using sttp

One feature missing from sttp for a long time was support for websockets. With the development of sttp 2, it’s about time to change that!
Adam Warski (@adamwarski)
Vim with Dotty (using coc vim)

A guide how to set up all the components.
Yannick Gladow (@y_gldw)
Sizeof in Scala

This blog post will show the impact of different ways to store a couple of integers in Scala on the memory footprint of a program.
Yann Moisan (@YannMoisan)
Scala Classes - Syntax, Declaration, Use case, Examples

how to declare and instantiate classes? What are companion objects?
Leo Benkel (@LeoBenkel)
How to structure your Scala application?

A set of good practices for clean and effective project structure.
Michał Matłoka (@mmatloka)
Functional concurrency

This is a write up about how to design applications that maintain shared state, use concurrent code and are still based on the principles of functional programming.
Ayush Mittal
Cats Effect 3.0 Interruption Model Proposal

This model is obviously inspired by Haskell's async exceptions, but there is a huge difference.
Fabio Labella
Open-sourcing Polynote: an IDE-inspired polyglot notebook

Polynote provides data scientists and machine learning researchers with a notebook environment that allows them the freedom to seamlessly integrate our JVM-based ML platform — which makes heavy use of Scala — with the Python ecosystem’s popular machine learning and visualization libraries.
Netflix
Hacking with scala circe-json

In this post I’m gonna discuss various JSON encode/decode operation that can be performed with circe.
Rahasak
Rock Paper Scissor Game through Actor Model in Scala

An example using Akka.
Karthik Vaidyanathan
Playing with Spark in Scala: Warm-up Game

In this article I present a software engineer’s attempt to build a simple data transformation in Spark and test it the way we usually test software.
Alec Lebedev
Journey to the IO Monad (Part 3.1)

In this second final post about the IO monad, i like to share with you my experience in modelling concurrent data structures using cats-effect.
Raymond Tay (@RaymondTayBL)
How to keep your sanity working with Scala Implicit!

They are really powerful tools for writing really awesome code, please use them, don’t abuse them :)
Lalit Vatsal (@lprakashv)

PRESENTATIONS

Giter8 - Part 3 - Clean Architecture Use Case Scaffold

In this video we will create a Giter8 Scaffold which will generate the minimal boilerplate for an entire Clean Architecture use case including the dependency graph.
DevInsideYou (@DevInsideYou)

EVENTS

Code Mesh, London, November 7th - 8th

Get your tickets now!
CodeMesh (@CodeBEAMio)
BeeScala with 30% discount, Ljubljana, Slovenia, November 21st - 21rd

Use promo code scalatimesfriend to get a 30% discount for Scala Times subscribers!
BeeScala (@BeeScalaConf)
Tech Triveni, IIC Delhi, India, November 23rd - 24th

Grab special 10% discount code for Scala Times readers: TechTriveni10
Tech Triveni
ScalaConf.ru, Moscow, Russia, November 26th

Get ready for this exceptional event in Russia!
ScalaConf.ru
Lambda Days, February 13th -14th 2020, Kraków, Poland

Call for talks and very early bird tickets are both open! Full paper submission by November 15th, draft paper submission by January 13th (we strongly suggest the first deadline).
Lambda Days (@LambdaDays)
ScalaUA, April 3th-4th, 2020 Kyiv, Ukraine

CFP is on! Also: Super Early Bird tickets are available on website till 2019.12.31, and Wholesale 10+ tickets are available till 2020.04.02.
ScalaUA (@ScalaUA_Conf)

RELEASES

akka-kryo-serialization 1.0.0

This library provides custom Kryo-based serializers for Scala and Akka. It can be used for more efficient akka actor's remoting.
akka-kryo-serialization contributors
circe-golden

A library that helps to avoid broken compatibility when updating your model that gets decoded from JSON.
Travis Brown (@travisbrown)

VARIA

Scala Times banners?

Want one? Click here
THE INTERNET
Scala Times stickers?

Want one? Let us know or tweet @scalatimes.
THE INTERNET





  1. Scala Times Issue #320

    New feature: Search!. Bake your bread tagless-final style. User-land compiler warnings in Scala. Zio ZLayer with playframework. Testing background process with ZIO.


  2. Scala Times Issue #319

    From idea to product with ZLayer. Edge to Cloud: Building the Tesla Virtual Power Plant . What's the Point of Applicative?. Using ScalaCheck with MUnit. Monitoring and tracing for Akka applications under kubernetes (k8s).


  3. Scala Times Issue #318

    Akka Cluster application design. Spring to ZIO 101. NE Scala in the Time of Social Distancing. Scala 3 support in IntelliJ Scala plugin. Separate Docker Layers for Dependencies and App JARs.


  4. Scala Times Issue #317

    Using Google Datastore with akka-persistence. Functional Program (Re)Design. Writing native CLI applications in Scala with GraalVM. Data Juggling - Part 8 - Getting Started with refined. Fundamentals of Scala, March 14th-15th, Lagos, Nigeria.


  5. Scala Times Issue #316

    How to publish a Scala library in GitHub. Announcing Cats STM 0.7.0. Baking Peixinhos da Horta with ING’s Baker Library. Fundamentals of Scala, March 14th-15th, Lagos, Nigeria. Stairway to Scala Workshop, March 16th-20th, San Damiano, CA, USA.


  6. Scala Times Issue #315

    ZIO for IntelliJ. Scala 2 community build reaches goals. Cats Effect Ref. Using Dotty Union types with Akka Typed – Part II. Caliban Client: a type-safe GraphQL Client for Scala and Scala.js.


  7. Scala Times Issue #314

    Using Dotty Union types with Akka Typed. My FP Journey. Creating a dead simple CountDownLatch with ZIO. ZIO STM: CountDownLatch in two lines. 2019 Scala Developer Survey.


  8. Scala Times Issue #313

    Building Serverless Scala Services with GraalVM. Alpakka Kafka 2.0 Released | @lightbend. Haskell for impatient Scala developer: Getting into speed. Building useful Scalacheck Generators. Easily create New Sync Types with ZIO STM.


  9. Scala Times Issue #312

    Happy eyeballs algorithm using ZIO. How (not) to use shapeless for cross-layer conversions in Scala. So you want to compose some functions. RESTful error handling with Akka HTTP and the library “endpoints”. MUnit is a new Scala testing library · MUnit.


  10. Scala Times Issue #311

    Introducing error reporting in optics. GraphQL in Scala with Caliban - Part 1. Tidying up your SBT file with Scala. Dependency injection with Reader Monad in Scala. Etcd watch API integration with scala and cats-effect.


  11. Scala Times Top Links of 2019

    January: Scala Best Practices. February: Is your Scala object always a singleton?. April: Did Functional Programming get it wrong?. May: The little gems of Scala standard library. June: The Evolution of a Scala Programmer.


  12. Scala Times Issue #310

    Git hooks in Scala projects  - the easy way!. Testing Doobie programs. Implementing typeclasses in Scala I. Effective testing with ZIO Test. Akka Streams: error handling in event processing pipelines.


  13. Scala Times Issue #309

    Towards more functional Play — Part 2. TMWL’ Dec 19 — Scala 3 overview, Scala hacks and DevOps hints. Scala etcd client with etcd4s and cats-effects. Boilerplate-free type class definition. GCP Cloud Functions with Scala.js in 10 lines(ish).


  14. Scala Times Issue #308

    Towards more functional Play  -  Part 1. ZIO environment meets constructor-based dependency injection. How-to run tests in parallel with sbt. Learn myself some Scala 3, episode 4: strict equality. 5 pitfalls to avoid when starting to work with ZIO.


  15. Scala Times Issue #307

    Standardizing IO Interfaces for Scala Libraries. WebSocket Streaming with Scala. State of Monocle. Scala tooling in 2019. How to Work with Scala Collections in Java.


  16. Scala Times Issue #306

    2019 Scala Developer Survey . Lessons Learned Building a Van Laarhoven Lens Library. A Glossary of Functional Programming. Tips for moving from tut to mdoc. Notes on Category Theory in Scala 3 (Dotty).


  17. Scala Times Issue #305

    Beyond Liskov: Type Safe Equality in Scala. Scala 2 Roadmap Update: the Road to Scala 3. Explicit nulls are in!. Functional Scala London 2019: Day 1. Leveraging Monoids for More Powerful Summarization.


  18. Scala Times Issue #304

    Akka references serialization with Protobufs (up to Akka 2.5). TMWL November’19 — ScalaTest, Medusa, PW-Sat2 cubesat. Implement your future with ZIO. Decouple the Program from its Implementation with ZIO modules. ZIO environment and modules pattern: zio, scala.js, react, query management.


  19. Scala Times Issue #303

    Write your own micro BDD test framework in one day. Monoid in the Category of Endofunctors. Introducing Scala Server Toolkit. How to write a command-line application with ZIO. Picking a Languages for Introductory CS  - The Argument Against Python.


  20. Scala Times Issue #302

    Regexp Replacement via Function in Java/Scala. Rationality in a Natural World: Arithmetic at the Type-Level. Transforming Data with Embedded Spark. Migrate a service getting 200KQPS from Jackson to Circe. Scala Type Classes comparison.


  21. Scala Times Issue #301

    Functors  - From Category Theory into Cats. Tour of Akka Typed: Cluster Sharding. The Future.await(s) for no one. Service architecture in Scala. Streaming the last few minutes from Kafka using Akka Streams.


  22. Scala Times Issue #300

    How an Optimizing Compiler Works. TMWL October’19  - Scala Steward, DB index and a React hack. Working with HTTP in Polynote. How I learned to stop worrying and love FP in Scala. A real life example of isomorphisms in Scala: POST request.


  23. Scala Times Issue #299

    Kleisli Category - From theory to Cats. Presto with Doobie. Lambda World 2019. Speeding up time with Zio TestClock. Simulating IoT Events - with Zio Streams.


  24. Scala Times Issue #298

    Scala application lifecycle, from pure Scala to FS2. Top 5 things that slow down your Scala build - Triplequote. ZIO, Http4s, Auth, Codecs and zio-test. Magnolia typeclass generation for Avro. Bird Operator in Scala.


  25. Scala Times Issue #297

    Websockets in Scala using sttp. Vim with Dotty (using coc vim). Sizeof in Scala. Scala Classes - Syntax, Declaration, Use case, Examples. How to structure your Scala application?.


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.