News for hackers. Stuff that matters.
Re:In Zig, What's a Writer? by wavemode on Saturday February 01, 2025 @08:44AM (#42898225)
I happen to be of the opinion that Rust programs tend to heavily overuse monomorphization. It's not always so clear cut that it's worth gaining a slight amount of runtime speed in exchange for losing a massive amount of compilation speed and binary size.

What I'd love is a language which is able to compile 'impl TraitName' into dynamic dispatch in debug mode and only monomorphize it in release mode.

Basically, an automation of this technique: https://play.rust-lang.org/?version=stable&mode=debug&editio...

Re:In Zig, What's a Writer? by mayoff on Saturday February 01, 2025 @12:49PM (#42900319)