5 ms·
> Zig produces smaller, faster binaries than C++ This seems fairly significant to me and makes me wonder how this is possible with all the effort that has gone
by labrador 4y ago
> Zig produces smaller, faster binaries than C++
This seems fairly significant to me and makes me wonder how this is possible with all the effort that has gone into optimizing C++
- kristoff_it 4y agoright after that sentence there's a link to a talk that explains one way this is true
- labrador 4y agoWe can hardly be expected to watch a 46 minute video on "A Practical Guide to Applying Data-Oriented Design" to find our answer. It seems unpromising on the surface.
- JonChesterfield 4y agoData oriented design is why the thing is faster.
- labrador 4y agoI guess I'll wait for the benchmarks comparing C++ and Zig over a variety of problem solutions to see which one is faster
- rk06 4y agoBecause they can't do breaking changes and must live with legacy baggage. While zig can work use modern techniques without such issues
- kaba0 4y agoA smaller binary will not necessarily be faster - specialization can bloat code size, but having a specific version for a given subtype can be much faster. It’s a tradeoff.