Mateusz Kubuszok

@kubuszok.com

Hearth Core Macro Hacker Blog @ https://kubuszok.com JVM-Scala Book @ https://leanpub.com/jvm-scala-book Chimney @ https://chimney.scalaland.io

There is a new #Scala 3 optics library worth checking out: cats-eo. It unifies optic families under a single trait, features macro derivation backed by Hearth and delivers massive performance gains (such as traversals running up to 11x faster compared to Monocle).

Bild

Hearth 0.4.0 once again is pushing the limits of what you can do with macros (without going insane): - reworked method callers that could let you build every call - expression destructuring enabling quicklens-like patterns - creating anonymous instance of an arbitrary type

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...

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

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

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/...

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...

github.com