News for hackers. Stuff that matters.
Re:Why Zig over C for Systems Programming by nine_k on Friday November 13, 2026 @11:26AM (#50485830)
I don't like this explicitness, because very often it's a lie. In the times of PDP-11 that would compile into a literal counter and literal MOV and ADD instructions. Now it will most often compile into some vectorized semi-unrolled form with seven-letter instructions that add 4 integers at once, etc.

If I want specific instructions to be run in a specific order, like touching hardware registers, I reach for intrinsics or assembly. If I want an array summed, I prefer to express the intent: total = the_array.sum(); I leave the implementation to the compiler / stdlib.

Re:Why Zig over C for Systems Programming by tempest_ on Friday November 13, 2026 @12:16PM (#50486575)
I feel like every time someone tries to tell me how good C is they immediately end up reminding me of https://queue.acm.org/doi/10.1145/3212477.3212479