A free, once-weekly Scala news flash. Easy to unsubscribe. Goes out every Thursday.
January 3rd, 2019, ISSUE 255


ADT through the looking glass - lenses, prims and other optics

If you have a nested structure and need to update something deep, deep inside.
Mateusz Kubuszok (@MateuszKubuszok)
Hpc with scala and akka Actors

In this brief article I will show you how to accelerate the computation of the Mandelbrot set using akka actors in scala (running on aws with 16 vCPU).
Dario Balinzo (@Dariobalinzo)
Scala Type Classes - The Name Printer

An example to show the why and how of type classes.
Nicolas A Perez (@anicolaspp)
Evolutionary Algorithms on the JVM via Scala  -  a minimal introduction

Discover helisa - an elegant Scala library using jenetics as its backend.
Mikołaj Koziarkiewicz (@mikolak_net)
Aecor - Purely functional event sourcing in Scala. Part 4a

Today we’re going to build an eventsourced view with the help of Aecor and discuss CQRS in the context of eventsourcing.
Vladimir Pavkin (@vlpavkin)
Compact, Streaming Pretty-Printing of Hierarchical Data

This blog post extracts the core pretty-printing algorithm, separates it out from all the incidental concerns and documents it it for posterity.
Li Haoyi (@li_haoyi)
Taming cats - State

If you are encumbered with mutable variables, give State a try. It will make your code cleaner, and safer.
Philippe Vinchon
Type safety and Spark Datasets in Scala

Apart from the type safety, I also wanted to share how Shapeless (and really generic type-level programming) can aid in writing succinct, compile-time and type-safe code and I hope I was able to do some justice to how awesome Shapeless and Frameless (for Spark Dataset) are!
Manish Katoch
Akka server logging with Slf4j/Logback in Google Cloud Platform

After deployment of service to Google Cloud Platform, we would like to bring in proper logging & monitoring.
Linda Hong
Fast typechecked markdown documentation with clear error messages

This post introduces how mdoc evaluates Scala code examples with good performance while reporting clear error messages. mdoc is a markdown documentation tool inspired by tut.
Ólafur Páll Geirsson (@olafurpg)
Scala Methods - Syntax, Declaration, Use case, Examples - Leo Benkel

A method, sometimes called a function, in computer programming, is a black box which takes input(s), executes one or more operations, and finally yields an output value.
Leo Benkel (@LeoBenkel)


Homegrown Scala Collections - Part 19 - Tail Recursion with CPS

In this video we will attempt to eliminate tail calls with CPS.
DevInsideYou (@DevInsideYou)


Scalar, Warsaw, Poland April 5-6, 2019

Join the next edition of the largest Scala conference in central Europe!
SoftwareMill (@softwaremill)
Lambda Days, Kraków, Poland, February 21-22, 2019

Use promo code SCALArlz10 for a 10% discount for our readers!
LambdaDays (@LambdaDays)



Code samples of advanced features of Http4s in combination with some features of Fs2 not often seen.
Gabriel Volpe (@volpegabriel87)

A semiaquatic animal with venomous ankles, welding a Vault client in Scala.
Timothy Perrett (@timperrett)


January: Union Types

Taking Miles' original idea further.
James Phillips
February: The Advantages Of Scala

No language is perfect for every use case, but Scala brings a lot of advantages. Let's go over some of its more desirable features and when to consider Scala.
Eugene Klimenko
March: Akka anti-patterns: overusing ActorSelection

There are a few things that you should be aware of when using this mechanism.
Manuel Bernhardt (@elmanu)
April: Towards Scala 3

Now that Scala 2.13 is only a few months away, it’s time to consider the roadmap beyond it.
Martin Odersky (@Odersky)
May: More Readable Code in Scala

A case study of code optimization for better readability and maintainability.
Mostafa Asgari (@mostafaasg)
June: Are there exceptions in Scala?

Scala developers say exceptions smell. Let's smell their libraries.
Árpád Tamási (@arpadtamasi)
July: Practical Cats: Functor and Applicative

In this post, I ’m going to introduce you some useful aspects of Cats library, mostly code snippets and I ’m not going to delve into any theory or mathematics.
Mostafa Asgari (@mostafaasg)
August: Homegrown Scala Collections - Part 2 - Unit Testing with ScalaTest

Among other things we will learn how to catch certain errors at compile time with the help or Artimas SuperSafe scalac plugin, generate HTML reports and measure code coverage with the help of the sbt-scoverage SBT plugin.
DevInsideYou (@DevInsideYou)
September: Easing Into Cats, And The Case For Category Theory Inspired Abstractions

No need to be apprehensive about adopting a library like Cats. You can start using it and start getting real-life benefits right away.
Dadepo Aderemi (@dadepo)
October: Anatomy of functional programming

The most often visited link from our newsletter last month. Basic notions of functional programming that I find myself explaining often lately into a series of articles.
Martin Menestret (@mmenestret)
November: Explore Witnesses as an Alternative to Implicits

Martin's proposition has started quite a hot discussion, becoming the most visited link at Scala Times. Time to revisit!
Martin Odersky (@Odersky)
December: Better than IO - part 1

This part covers MTL style.
Yuriy Netesov (@yuriynetesov)


Scala Times banners?

Want one? Click here
Scala Times stickers?

Want one? Let us know or tweet @scalatimes.

  1. Scala Times Issue #256

    Where is the llama for FS2?. Scala Best Practices - Foreword. Aecor - Purely functional event sourcing in Scala. Part 4b. Postgresql from Spark, how to query?. Error Handling in Akka Actor (with Future).

  2. Scala Times Issue #255

    ADT through the looking glass - lenses, prims and other optics. Hpc with scala and akka Actors. Scala Type Classes - The Name Printer. Evolutionary Algorithms on the JVM via Scala  -  a minimal introduction. Aecor - Purely functional event sourcing in Scala. Part 4a.

  3. Scala Times Issue #254

    Cats Ecosystem Community Survey 2018. Scala Developer Suvey Results 2018. Minutes of the 11th meeting of the Scala Center, Q4 2018. Software as a Reflection of Values With Bryan Cantrill. Dotty: An Alternative to Implicits.

  4. Scala Times Issue #253

    Scala Variables - Syntax, Declaration, Use case, Examples - Leo Benkel. Fast goto definition with low memory footprint · Metals. New Akka Getting Started Guide. Different ways to understand a monad. MOOC: Introduction to programming with dependent types in Scala.

  5. Scala Times Issue #252

    The F-words: functor and friends. Grafter  -  a take on yet another DI library. Anatomy of a Scala quirk. Creating Work Queues with Apache Kafka and Apache Pulsar. Terminus - Cross Platform Terminal Emulator for Sublime Text.

  6. Scala Times Issue #251

    Scala Numerical Performance with Scala Native and Graal. SBT Plugin - How to make it, debug it, improve it?. Better than IO, part 1. Scala and Slick - An Introduction. Category Theory for Programmers: Scala Edition 1.1-RC.

  7. Scala Times Issue #250

    Correlation IDs in Scala using Monix. Further enhance `new` syntax to reduce boilerplate. Counting type inhabitants. Variances in Scala. SIP Meeting Minutes - November 1-3 2018.

  8. Scala Times Issue #249

    How To Exclude Scala Tests With Tagging?. Explore Witnesses as an Alternative to Implicits. Build code analyzers with Scalameta and Scalafix. Immutable State in Real World. A streaming library with a superpower: FS2 and functional programming.

  9. Scala Times Issue #248

    Minutes of the 10th meeting of the Scala Center, Q3 2018. Scala - faster and slimmer with GraalVM. 5 themes for Scala programming in 2019. Beyond the conference: Q&A with The Guardian’s Maria-Livia Chiorean. Homegrown Scala Collections - Part 13 - Growing Binary Search Trees.

  10. Scala Times Issue #247

    Getting started with recursion schemes using Matryoshka. Friendly Functional Programming. Building the Hangman Game using ScalaZ ZIO. Anatomy of semigroups and monoids. The Scala 2.12 / 2.13 Inliner and Optimizer.

  11. Scala Times Issue #246

    Don’t get mixed. Typed Functional Programming and Software Correctness. Scala compiler phases with pictures. A tale on Semirings. Scala Programming  -  A Skeptic’s Journey.

  12. Scala Times Issue #245

    Scala Center highlights June - October. Fastparse 2: Even Faster Scala Parser Combinators. God’s Programming Language With Philip Wadler. Algebraic Data Types in four languages. Finch Performance Lessons.

  13. Scala Times Issue #244

    Achieving stack and heap safety in recursive functions. A comprehensive introduction to Cats-mtl. Using Akka Http to create a test server. Skoda's new hatchback is called 'Scala'. Are you sure your AnyVals don’t instantiate?.

  14. Scala Times Issue #243

    Introducing Scaladoc Tables. This month at SoftwareMill we’ve learned. Backoff and Retry Error-Handling for Akka Streams. Anatomy of functional programming. Anatomy of an algebra.

  15. Scala Times Issue #242

    Using Monix with Kafka, Avro and Schema Registry. Scala is now on Apache License Version 2.0. Just Enough Scala for Spark Programmers. Giter8 Scala Microservice template. Homegrown Scala Collections - Part 7 - Parametric Polymorphism aka Generics.

  16. Scala Times Issue #241

    Model correctly and write less code, using Akka Streams. Elevator Control System using ZIO. Easing Into Cats, And The Case For Category Theory Inspired Abstractions. Get considered harmful. IO & Logging Capabilities.

  17. Scala Times Issue #240

    2018 Scala compilation time survey. How to Dockerise a Scala and Akka HTTP Application. Using Machine Learning to Predict the Weather in Basel. How We Found a Missing Scala Class. New proposal for extension method.

  18. Scala Times Issue #239

    Functional Programming for Mortals. Strings are not the type you are looking for. Choose Primitives for Typelevel and Meta Programming in Scala 3.0. To tag a type. Parallelize tests in SBT on Circle CI.

  19. Scala Times Issue #238

    How to translate your API with Shapeless. A case to introduce Scala in a Java world. Are Scala Futures the past?. Effect Extensions Pattern. Dotty Type classes.

  20. Scala Times Issue #237

    Instantiate case class with arbitrary values to reduce verbosity in tests. Homegrown Scala Collections - Part 2 - Unit Testing with ScalaTest. Lambda World Seattle, September 17th - 18th . Lambda World Cádiz, Spain, October 25th - 26th, 2018. Scala Wave, September 6th - 8th, 2018, Gdańsk, Poland.

  21. Scala Times Issue #236

    Streaming data from PostgreSQL using Akka Streams, Akka Http and Doobie. Lambda World Seattle, September 17th - 18th . Lambda World Cádiz, Spain, October 25th - 26th, 2018. Scala Wave, September 6th - 8th, 2018, Gdańsk, Poland. Scala Italy, September 14th-15th, Florence.

  22. Scala Times Issue #235

    Akka Http Websocket Example. Akka HTTP Request and Response models. Composable table updates in Slick. Cask: a Scala HTTP micro-framework. Actor Model Explained.

  23. Scala Times Issue #234

    Reverse State Monad in Scala. Is it possible?. Typedapi or how to derive your clients and servers from types. Testing in the wild. Akka HTTP request/response scope operations, vs. Deferred operations. Akka anti-patterns: too many actors.

  24. Scala Times Issue #233

    Akka HTTP and TCP streaming. Play Framework Action Composition. Scala 3 as a new Programming Language. [SPARK-14220] Build and test Spark against Scala 2.12 - ASF JIRA. How Curalate uses MXNet on AWS for some Deep Learning Magic.

  25. Scala Times Issue #232

    Akka anti-patterns: Java serialization. Practical Cats: Functor and Applicative. Why Scala Implicits. Implicits, type classes, and extension methods, part 4: understanding implicits. Scala FUD FAQ for newbies.

Organizing an event?
Promote it with
Scala Times.
The Scala Times reader?
Get a banner!
Got a tip? Send it in!
Follow us on Twitter.
Curated by SoftwareMill.
We are hiring.
And taking on projects.