Advertisement · 728 × 90

Posts by Mateusz Kubuszok

Preview
Release 0.3.0 - Standard Extensions, Union Types, Rules, Flame Graphs, MIO Timeouts, hearth-munit, and Much More · kubuszok/hearth · GitHub This is the biggest Hearth release so far: a major feature release that introduces Standard Extensions — a pluggable type-inspection framework — along with union types support, rule-based derivatio...

Hearth aka the Scala unified macro for 2.13 and 3 has a new version out! 🎉

I'm definitely no macro expert, so go read the changelog yourself to see all the magic. 🪄 It's huge!

github.com/kubuszok/hea... #scala

2 weeks ago 2 1 0 0
Preview
GitHub - kubuszok/scala-newtype-compat: Scala compiler plugin to let you use Scala Newtype on Scala 3 Scala compiler plugin to let you use Scala Newtype on Scala 3 - kubuszok/scala-newtype-compat

When I also mention that I vibe coded Scala 3 plugin to use Scala Newtypes on Scala 3 (who knows, maybe it will even work!), this was my most productive conference so far!

github.com/kubuszok/sca...

@scalar-conf.com, most inspiring #scala conference!

3 weeks ago 0 0 0 0
Release 0.1.0 — Type class derivation that just works, on Scala 2.13 and 3 · kubuszok/kindlings We're excited to announce the first release of Kindlings — a collection of type class derivation modules built on Hearth that are cross-compiled for Scala 2.13 and Scala 3, on JVM, Scala.js, and Sc...

The first release of Kindlings is also out!

github.com/kubuszok/kin...

3 weeks ago 0 0 1 0
Release 0.3.0 - Standard Extensions, Union Types, Rules, Flame Graphs, MIO Timeouts, hearth-munit, and Much More · kubuszok/hearth This is the biggest Hearth release so far: a major feature release that introduces Standard Extensions — a pluggable type-inspection framework — along with union types support, rule-based derivatio...

Hearth 0.3.0 just dropped!

github.com/kubuszok/hea...

and right behind it...

3 weeks ago 0 0 1 0

I wanted to release Hearth 0.3.0 after Scala 3.3.8 is out, and Kindlings 0.1.0 after that.

But overwhelmingly positive reception (and a horse head in my bed) convinced my to release them much earlier, so...

3 weeks ago 2 1 1 0
Can we have the Standard Library for Macros?

Here are slides from by talk at @scalar-conf.com about #macros in #scala

mateuszkubuszok.github.io/ScalaStandar...

3 weeks ago 2 0 0 0

Last year:

- at @scalar-conf.com I introduced sanely-automatic derivation with macros
- at @scaladays.org I showed that macros in #scala can be tamed

Now: I wanted to repeat the latter prez but with recent developments I had to update it!

Join me on @scalar-conf.com to see new GOTY edition!

3 weeks ago 1 0 0 0
Preview
Release v1.9.0 · scalalandio/chimney Changelog: Add supports for NamedTuple (#766). by @ETCHKILI in #852

Thanks to Guo Yubin Chimney now supports NamedTuples!

Grab it at:
- github.com/scalalandio/...
- github.com/scalalandio/...

1 month ago 1 0 0 0
Preview
GitHub - nguyenyou/circe-sanely-auto: Sanely-automatic Encoder/Decoder derivation for Circe on Scala 3 Sanely-automatic Encoder/Decoder derivation for Circe on Scala 3 - nguyenyou/circe-sanely-auto

One more proof by construction that we can improve derivation in #scala with #macros:

github.com/nguyenyou implemented sanely automatic derivation for Circe, and got some really nice numbers.

github.com/nguyenyou/ci...

1 month ago 1 0 0 0

I was drinking beer and approving the runs on the phone (via Happy) xD What I saw was really encouraging. How encouraging?

This is what I have one week later:

github.com/MateuszKubus...

1 month ago 1 0 0 0
Advertisement

Last week I went out for a Friday night beer with friends, and left Claude running. After recent batches of improvements I hoped that Hearth was finally at the stage when I would be able to write a whole type class derivation with no bugs in my macro utilities. #scala #macros

1 month ago 0 0 1 0

I wish cross-compilable macros, with potential to provide UX that mops the floor with all these shapeless/mirrors based-libraries were not just a hypothetical possibility...

Oh, wait.

Scala 2.13: scastie.scala-lang.org/MateuszKubus...

Scala 3: scastie.scala-lang.org/MateuszKubus...

1 month ago 1 0 0 0

Claude just finished writing me a sbt codegen, which generates >17 000 lines of code of macros and compiler plugins... which would be expanded in other macros to provide cross-compilable type constructor representation.

When I started Hearth I didn't expect to go so meta

2 months ago 4 0 0 0
Preview
My presentations Personally, just a

On this day ten years ago, I gave my first public presentation...

Fast forward ten years, I still suck :)

kubuszok.com/presentation...

2 months ago 2 0 0 0
Mateusz Kubuszok:  Can we have the Standard Library for Macros? [Scala Days 2025]
Mateusz Kubuszok: Can we have the Standard Library for Macros? [Scala Days 2025] Do you like it when compiler generates the boring code for you? Fast, mundane, boring-but-error-prone code? Do you need to implement such a code generator yourself? Have you found out that Shapeless/Mirrors bend your brain a bit too much? Congratulations! You might have a valid use case for writing

🔍 A thoughtful, down-to-earth look at what a shared macro library could mean for Scala developers.
Here’s "Can we have the Standard Library for Macros?" by Mateusz Kubuszok

4 months ago 1 1 0 0
Mateusz Kubuszok:  Can we have the Standard Library for Macros? [Scala Days 2025]
Mateusz Kubuszok: Can we have the Standard Library for Macros? [Scala Days 2025] Do you like it when compiler generates the boring code for you? Fast, mundane, boring-but-error-prone code? Do you need to implement such a code generator yourself? Have you found out that Shapeless/Mirrors bend your brain a bit too much? Congratulations! You might have a valid use case for writing

🔍 A thoughtful, down-to-earth look at what a shared macro library could mean for Scala developers.
Here’s "Can we have the Standard Library for Macros?" by Mateusz Kubuszok

4 months ago 2 1 0 0

New video, with Łukasz Biały from @scala_space!

https://www.youtube.com/watch?v=K_omndY1ifI

4 months ago 1 1 0 0
Advertisement
Mateusz Kubuszok:  Can we have the Standard Library for Macros? [Scala Days 2025]
Mateusz Kubuszok: Can we have the Standard Library for Macros? [Scala Days 2025] YouTube video by Scala Days Conferences

@scaladays.org videos are online!

If you wish #scala #macros were a bit easier, and wonder what "this Hearth library" is about, go see:

youtu.be/VOdeXTpw3m0

4 months ago 7 2 0 0

Scala Times Issue #604 - scalatimes.com/f99e9094b8

4 months ago 3 2 0 0
Preview
Release 0.2.0 - Overall improvements, ValDefs builders and cache, Better Printers, more robust Cross Quotes and More · MateuszKubuszok/hearth This release delivers the full scope planned for the 0.2.x milestone: refining everything introduced in 0.1.0, strengthening stability, improving ergonomics, and expanding documentation and tooling...

Hearth 0.2.0 just dropped continuing the quest for user-friendly macros. #scala #macros

github.com/MateuszKubus...

5 months ago 2 0 0 0
Post image

Welcome Mateusz Kubuszok as the #Scalarconf 2026 speaker!

🎙️ Can we have the Standard Library for Macros?

🎟️ Grab your ticket here: scalar-conf.com/tickets

#scala #scalarconf #functionalprogramming

5 months ago 7 1 0 1

This is probably the most complete tutorial on typeclasses in Scala 3, it's basically a short book. Bookmark it, as it has everything: givens, derivation, mirrors, inline defs, macros... you name it. #scala kubuszok.com//2025/sanely...

5 months ago 5 1 0 0

#scala #metaprogramming #typeclasses because, of course, I forgot

5 months ago 3 0 0 0

It also reminded my why, I stopped - putting everything I know into 1 writeup is such a PITA but I do not want it any other way.

5 months ago 0 0 0 0
Preview
Sanely-automatic derivation - or how type class derivation works and why everyone else is doing it wrong In Scala, we generate quite a lot of code. A lot of that involves the compiler generating so-called type class instances. This mechanism is quite widespread, yet, very few people actually understand i...

I haven't blogged in a while, but this needed to be written:

kubuszok.com/2025/sanely-...

5 months ago 5 1 1 1
Preview
Release v2.0.0-M2 · scalalandio/chimney Important Since Chimney got affected by 3.7.0 change in givens resolution we had to analyze the possible ways of fixing the issue. While there is a temporary workaround the proper fix requires rele...

Chimney 2.0.0-M2 for 2.13.17+ and 3.7+ just landed!

* sanely-automatic derivation backported to 2.13
* aligned with featues/bugfixes up till 1.8.2

Try out, if you had any issues with semiauto on Scala 3.7 or if you want to test sanely-auto on 2.13!

github.com/scalalandio/...

5 months ago 0 0 0 0

Great thanks to all organizers of @scalaio.bsky.social! It was a great experience I am happy I could be there.

6 months ago 3 0 0 0
Advertisement
Preview
Release 0.1.0 - Inintial release · MateuszKubuszok/hearth It took longer than I hoped but 0.1.0 is live and with some scaffolded documentation. There are some gaps in the documentation, e.g. no examples for utilities usage, no mention of sources and debug...

The first release is done, better macros are possible

github.com/MateuszKubus...

6 months ago 2 0 0 0

Can we have the Standard Library for Macros? (@kubuszok.com): makes simple things simple, and hard things (at least) possible 🚀

Event Sourcing is just a foldLeft on Events and a decide function! Or is it? (Matthieu Baechler & Thomas Hilaire): master of immutability but UPDATE db all day long ? 👀

6 months ago 2 1 0 0
Post image

Thank you everyone who came to my talk at @scaladays.org ! It was amazing to be here!

You can find my slides at mateuszkubuszok.github.io/ScalaStandar...

7 months ago 4 0 0 0