3 ms·
> “I can make a Zig program such that no equivalent C program is faster", then that's obviously false Why would it be obviously false? C is not that low-level
by kaba0 4y ago
> “I can make a Zig program such that no equivalent C program is faster", then that's obviously false
Why would it be obviously false? C is not that low-level of a language, for example it has no native way of doing SIMD - so Rust, C++ (and I guess Zig as well?) all have programs that are simply non-expressible in C (inline assembly is not C) and are possibly orders of magnitude faster. But there are million other things “hard-coded” into C where with more control faster execution could be achieved - e.g. one might want to have better control over stack usage.