News for hackers. Stuff that matters.
Re:Zig's Incremental Compilation Internals by josephg on Tuesday July 28, 2026 @06:30PM (#49090860)
2x slower and 4x less memory efficient were the numbers I heard a year or so ago. Reaching within 20% of full native performance while using a garbage collector sounds too good to be true.

Do you have any actual benchmarks?

Re:Zig's Incremental Compilation Internals by pron on Thursday July 30, 2026 @08:14PM (#49117542)
> Reaching within 20% of full native performance while using a garbage collector sounds too good to be true.

What does a garbage collector (in principle) have to do with this? Modern moving collectors (of the kind Java uses, but not the kind Go or Python use) are faster, not slower, than malloc/free, but they do have a higher footprint. That's the point of that algorithm: to reduce the speed overhead of malloc/free and add footprint.