News for hackers. Stuff that matters.
Re:Zig: Build System Reworked by bbkane on Saturday May 30, 2026 @09:30AM (#48335969)
Hmm in the 2025 talk ( https://youtu.be/f30PceqQWko?si=qZESxMaSyt7fYMfz ), Andrew emphasizes that this approach is more efficient than before- even showing compiled assembly iirc. I guess that was a one-off?
Re:Zig: Build System Reworked by chaz72 on Saturday May 30, 2026 @09:56AM (#48336234)
My guess is that one of these (Andrew) is measuring syscalls and the other is measuring vtable indirections.
Re:Zig: Build System Reworked by kristoff_it on Saturday May 30, 2026 @12:16PM (#48337849)
A vtable indirection is essentially free when you're going to perform a syscall. What matters is that the buffer is above the vtable (which is already the case for the current implementation) so that you don't pay for the indirection when hitting the buffer.
Re:Zig: Build System Reworked by chaz72 on Saturday May 30, 2026 @04:43PM (#48340432)
Apples and oranges, yeah. I should have spelled that out more, thanks.
Re:Zig: Build System Reworked by rastignack on Sunday May 31, 2026 @05:18AM (#48344207)
And if you write to a bytes buffer?