News for hackers. Stuff that matters.
Re:Buz – A fork of Bun using modern Zig, with sub-1s increme... by Dylan16807 on Saturday July 25, 2026 @08:35PM (#49053366)
The other part of that line is important. Measuring lines is better than nothing but the distribution is much more important. If they're scattered all over that's a bigger downside than the line reduction is an upside.

If you want good metrics, measure functions and data structures without unsafe. Not lines.

Re:Buz – A fork of Bun using modern Zig, with sub-1s increme... by skeledrew on Saturday July 25, 2026 @09:04PM (#49053556)
> If you want good metrics, measure functions and data structures without unsafe.

I doubt it, as it's possible a substantial amount of those unsafe areas can't even be removed, given the project's dependent on C/C++ libraries. Without proper calibration those metrics won't tell the full story, and with calibration the incentive for the story will decrease over time with the unsafe refactoring. I doubt the distribution of the unsafe code really matters that much; what matters is proper handling, wherever it is, so stability and security isn't compromised.