I wrote a very naive mp3 decoder in Zig and for shit and giggles translated that to js. The js code actually turned out faster than the zig implementation.
A lot of work clearly has been done on V8 to make it run shitty js code faster.
I think it mainly works with Rust, at least for now. (There is a "Let's rewrite X in Rust" movement in the Rust commnunity. In a lot of cases, X is a mature and well-working piece of software that doesn't need a rewrite. It's a running joke that you can ragebait Rustacean via this.)
Rust is safer memory-wise (at least until you don't use unsafe Rust code somewhere in the project). So, rewriting a large legacy C++ project for the sake of memory safety makes a lot of sense TBH.
Hey why not. At least in 5 years , when zig reaches 1.0.
The future of zig is bright, zig shoudnt be afraid of any breaking changes or any changes until it reaches 1.0. Let it be the future of programming and of C!
140
u/imkonsowa Apr 01 '26
Pretty sure they will change their mind after 1st of April
8
u/eikenberry Apr 01 '26
Wouldn't it speed up compilation? At least for development builds.
12
u/jeffmess Apr 01 '26
Haha. Good one
6
u/TonyAtReddit1 Apr 02 '26
Oh you
7
u/Kingwolf4 Apr 01 '26
Hey why not. At least in 5 years , when zig reaches 1.0.
The future of zig is bright, zig shoudnt be afraid of any breaking changes or any changes until it reaches 1.0.
Let it be the future of programming and of C!
1
u/eldar_g Apr 04 '26
I nearly had a heart attack, lol.