Replies: 8 comments 7 replies
|
Yes, Zig makes Bun faster because it has manual memory management and fantastic performance. In fact, Zig it's a modern alternative to C, so, it's very very fast. An example of JavaScript runtime written in Rust is Deno, but seems to be less performant than Bun (I'm not saying Rust it's slower, but just exposing and comparing the technologies used there). |
|
I am wondering why this hasn't caused a controversy. |
|
Oh... I apologise @Bellisario... I was just comically wondering out loud why Rustaceans haven't attacked what you have said. It came out wrongly from my comment that you made a controversial critique of Rust. 🙂 |
|
tl;dr Long answer: For this reason, IMHO, the fact that Bun (made on Zig+JSC) is currently faster than Deno (Rust+V8) is much more related to the choices made from their respective creators (kudos to Jarred) and Bun's performance speaks for itself. |
|
Please read this developer blog post - When Zig is safer and faster than Rust https://zackoverflow.dev/writing/unsafe-rust-vs-zig/ |
|
bun is fast because: Safe version of Rust will alway be slower that C / C++ / Zig, because of manual exception handling (unwrap) every line There are no other technical points on this; Only algorithms and tool-knowledge |
|
Why rust |

Uh oh!
There was an error while loading. Please reload this page.
Hey I'm a beginner here The website states that zig is low-level and no hidden control flow but why not use rust. Is bun fast because it written in zig??
All reactions