Hacker News with Generative AI: Compile-Time

Statum: Zero-Boilerplate Compile-Time State Machines in Rust (github.com/eboody)
Statum is a zero-boilerplate library for finite-state machines in Rust, with compile-time state transition validation.
Solving Advent of Code at compile time with Rust macros (bearblog.dev)
Producing good software is difficult. Writing tests, reasoning about unintended effects, tedious considerations about time vs memory trade-offs. The perfect program is one that never runs at all. No trade-offs, no bugs, no worries. But what if we go further, what if we could get our answer before the program even finishes compiling?