Just published my first technical blog post about solving the “method too large” error in Scala macros. If you’ve ever wondered how local methods are compiled or need to generate massive amounts of code at compile-time, this one’s for you!
The blog, unlike this topic, created without AI.
2 Likes
Hey, if you did use AI, you had me fooled. If you are actually an LLM yourself, congratulations on passing your first round Turing test. 
1 Like
I initially thought I’d stop after just one blog post, but what wouldn’t a person do to avoid studying for their thesis defence? Part two is now live.
The post showcases a Scala 3 macro that extracts default parameter values from methods and provides type-safe field access via Selectable and Computed Field Names.
Read the full post here: Type-Safe Access to Method Parameter Defaults in Scala - halotukozak
2 Likes
Scala Type Class Derivation with (almost) no macros
Just published a deep dive on how Scala 3’s native Mirror API and compile-time utilities eliminate the need for heavy reflection or macro-heavy libraries.
I’ve taken GenCodecs from the AVSystem’s scala-commons library and implemented them in Scala 3.
Full post in my blog. Feedback welcome!
me: I should get some sleep before my thesis defense
also me: writes 1,500 words about compile-time metaprogramming
3 Likes