LOADING

Yo Dawg, Heard You Want To FlatMap Your Direct-Style

During the talk, we’ll build a small effect system using solely Scala 3 context functions step-by-step.

Riccardo Cardin
Senior Software Engineer at Lastminute.com, Blogger at RockTheJvm.com
About This Talk

The direct style in Scala 3, influenced by languages like Kotlin and Rust, simplifies functional programming by eliminating for-comprehension syntax on higher-kinded types. It offers an imperative approach supported by context functions.

While some many Scala developers support it, others prefer the traditional functional styles used in libraries like Cats Effect and ZIO, which manage effects differently. The potential of combining Algebraic Effects and Handlers with Scala 3's direct style opens new possibilities for exploring different programming paradigms and libraries.

During the talk, we’ll build a small effect system using solely Scala 3 context functions step-by-step. With some enhancements to the common approach, we’ll discover that adding for-comprehension capabilities to such a system is possible, ending with a system that can express the same program using either direct style syntax or monad style.

more great talks

Might Be Interesting

Day 2
  —  
arrow pointing right icon

Unison, from a Scala perspective

This talk will be a quick introduction to the Unison "paradigm" and language, from the perspective of a long-standing Scala programmer.

Day 2
  —  
arrow pointing right icon

Shaping the Clouds - Introduction to TypeOps

In our talk, we will introduce a novel approach to system design— TypeOps — in which the application and infrastructure layers are fused to provide unprecedented safety and productivity for Scala teams.

Day 1
  —  
arrow pointing right icon

Do You Even Macro?

In this talk, we'll cover the essentials of macros, why they are useful, why you should care about them, and how to become as good as you need with them for practical purposes.

Day 2
  —  
arrow pointing right icon

Scala Sampler for Functional Soundscapes

Discover how functional programming can inspire creativity with the Scala Sampler, a digital music instrument developed for the Sounds of Scala web audio library.

Day 2
  —  
arrow pointing right icon

Tagless Final for Humans

In this talk, I'll look at the different uses to which tagless final is put to, and see what we can learn about when it is useful and when it just gets in the way.

See All Events
Join us!

We're looking for amazing speakers.
CFP is open till 10.01.2023

Fill in Call for Papers
location icon

Location

Centrum Konferencyjne POLIN, Poland
stay in touch icon

Follow Us

Contact Us