Tag: programming
All the articles with the tag "programming".
Compilers are hard
Writing (something like) a compiler is hard. Here I explore what some of the difficulties are, and provide some strategies to ensure you still maintain quality.
Scala, React, and SSR (part 2)
GraalVM lets us perform SSR but it's unfortunately still not fast enough yet. Luckily there's a way to have our cake and eat it too.
Scala, React, and SSR (part 1)
In the JS world, React devs can render their pages on the server side for a better user experience. Here's how to do in the Scala world.
Practical Awesome Recursion - Ch 02: Catamorphisms
Chapter 2 of the Practical Awesome Recursion series in Scala: catamorphisms, F-algebras, performance optimization, and composable file system queries.
Practical Awesome Recursion - Ch 01: Fixpoints
Chapter 1 of the Practical Awesome Recursion series in Scala: preparing recursive data types with type parameters, Functor instances, and Fix.
Zero-overhead Recursive ADT Coproducts
Modeling zero-overhead, sealed, recursive ADT coproducts in Scala using path-dependent types and trait composition, compared against inheritance hacks and Shapeless.
An Example of Functional Programming
A practical, beginner-friendly walkthrough of functional programming in Scala, incrementally building a composable user-data validation library across five evolving requirements.
A Year of Functional Programming
Reflections after one year of functional programming—from discovering Scala, Haskell, and Scalaz to embracing abstractions, expressive types, property-based testing, and computer science academia.
Scala: Methods vs Functions
Micro-benchmarking Scala methods versus first-class Function instances using ScalaMeter across direct invocation, higher-order passing, and primitive vs object boxing.
Keyed Lenses
Introducing KeyedLens in Scala and Scalaz—a composable lens variant that requires a key to focus into maps or indexed collections, propagating keys cleanly through composition.