News for hackers. Stuff that matters.
Re:Bun's unreleased Rust port has 13,365 unsafe blocks by stymaar on Friday May 22, 2026 @04:04PM (#48240880)
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.
Re:Bun's unreleased Rust port has 13,365 unsafe blocks by TimSchumann on Sunday May 24, 2026 @12:44PM (#48258823)
I believe in the latest (possibly two latest?) releases of Zig you have the option to build a self hosted compiler.
Re:Bun's unreleased Rust port has 13,365 unsafe blocks by stymaar on Sunday May 24, 2026 @04:21PM (#48260678)
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.