Hacker News new | ask | show | jobs
by ponyous 21 days ago
Bun is(was?) a lot about performance. How does it compare to zig?
1 comments

Rust and Zig both use the same optimizing compiler (LLVM) so assuming the vibe coded port didn't introduce performance pitfalls and kept the algorithms the same, the end result should be in the single digit performance difference with the original.
I believe in the latest (possibly two latest?) releases of Zig you have the option to build a self hosted compiler.
That may ne useful for bootstrapping but there's no way a self-made compiler can be competitive with LLVM. Optimizing compilers are crazy beasts.