Hacker News with Generative AI: Metaprogramming

Zig's comptime is bonkers good (scottredig.com)
Programming has obvious abilities to increase productivity through automated manipulation of data. Metaprogramming allows code to be treated as data, turning programming’s power back onto itself. Programming close to the metal has perhaps the most to gain from metaprogramming as high level concepts need to be mapped precisely to low level operations. Yet outside of functional languages I’ve always found the metaprogramming story to be a disappointment.
The Magic of Metalinguistic Programming (ericnormand.substack.com)
A new chapter of Runnable Specifications has passed the “valuable enough to read” threshold. This time, it’s the Time Lens, which talks about build a notion of time into your model. As always, I appreciate questions and comments of all kinds. I’m not sensitive so you won’t hurt my feelings if you tell me you hate it! I’m especially looking for people to pick apart my reasoning.
Symbolic Execution by Overloading __bool__ (philipzucker.com)
A few months ago I saw a talk on buildit, https://buildit.so/ a really neat project that achieves staged metaprogramming as a C++ library. I love the central tenets of being in a mainstream language and not requiring a modified compiler. Right on, brother. One thing I came away with was a neat trick for getting non-overloadable syntax to be overloadable.
M4 Crimes for Metaprogramming Processing (eighty-twenty.org)
Back in June, I made a quick-and-dirty attempt to get the big-bang model of functional UI running in Processing 4.
Mojo clarifies meaning of "Python superset" (github.com/modularml)
Mojo is a new programming language that bridges the gap between research and production by combining Python syntax and ecosystem with systems programming and metaprogramming features.
Reflection in C++26: Metafunctions for Enums and Classes (modernescpp.com)
Today, I continue my journey through reflection in C++26 and play with enums and classes.
Metaprogramming in Bash (younglogic.com)
Basic MetaProgramming in Zig (openmymind.net)
Cognition: A new antisyntax language redefining metaprogramming (nullring.xyz)