Hi, I’ve just finished coding up and debugging a 1D and 3D shock physics benchmark for Zig: The larger 3D Zig benchmark runs about 15% faster than the C reference implementation compiled with gcc -O3 on my machine ( which is faster than gcc -O2). I used the aarch64 tarball off the download page to do my run. I notice that there are a lot of unexploited “low hanging fruit” peephole optimization opportunities in the FP assembly language, e.g. fmadd/fmsub/fnmsub. ZIg can only get much fast...| Ziggit
I’ve been looking into Zig for a couple of days now, digging deeper and deeper in search of conceptual flaws and weaknesses in its design, and I’ve found… zero! Replacing C isn’t easy—not so much because of the vast amount of existing code and libraries, but because, in low-level and systems programming, C is absolutely lethal. So, finding a modern replacement for it is a real challenge. There are three possible candidates: D, Rust, and Zig. In my opinion, D would be the top choice ...| Ziggit