News for hackers. Stuff that matters.
Re:Low-Level Optimization with Zig by skywal_l on Saturday June 07, 2025 @04:54AM (#44208374)
Maybe with the new x86 backend we might see some performance differences between C and Zig that could definitely be attributed solely to the Zig project.
Re:Low-Level Optimization with Zig by saagarjha on Saturday June 07, 2025 @05:05AM (#44208418)
I would be (pleasantly) surprised if Zig could beat LLVM's codegen.
Re:Low-Level Optimization with Zig by Zambyte on Saturday June 07, 2025 @10:21AM (#44209825)
So would the Zig team. AFAIK, they don't plan to (and have said this in interviews). The plan is for super fast compilation and incremental compilation. I think the homegrown backend is mainly for debug builds.
Re:Low-Level Optimization with Zig by Cloudef on Sunday June 08, 2025 @03:20AM (#44215251)
The backends do already have some simple optimizations. Of course focus is debug builds and speed, but long term goal is for them to be competitive as well.