News for hackers. Stuff that matters.
Re:I am not yet ready to switch to Zig from Rust by gaganyaan on Friday June 14, 2024 @01:27PM (#40682797)
I don't really see the distinction you're making. C++ will still be around for legacy projects that don't want to switch, but I can't think of a new project that would benefit from picking C++ over Rust, apart from needing to integrate with the C++ ecosystem beyond what bindgen offers.

You get to write code that's just as or more performant, and you get to jettison the decades of bad language design that is C++, which is win/win to me.

Re:I am not yet ready to switch to Zig from Rust by overgard on Friday June 14, 2024 @11:44PM (#40687356)
The pool of C++ engineers is much bigger, and like it or not its a very proven solution. Rust still seems to have a lot of areas where its immature (gui toolkits for example)
Re:I am not yet ready to switch to Zig from Rust by jenadine on Saturday June 15, 2024 @03:16AM (#40688041)
Maybe because Rust is not a language made to make GUI applications? For GUI applications you are better of with a higher level language.
Re:I am not yet ready to switch to Zig from Rust by overgard on Saturday June 15, 2024 @01:59PM (#40691427)
Don't you think that's a weird limitation though? Nobody says C++ isn't a language made to make GUI applications. If you're going to replace C++ you should probably be able to do the same things at least as well.
Re:I am not yet ready to switch to Zig from Rust by gaganyaan on Saturday June 15, 2024 @02:05PM (#40691471)
It's not actually a limitation, the ecosystem is just young:

https://github.com/iced-rs/iced

My general point though is that there's still some ecosystem/legacy reasons to stick with C++, but Rust very much fills the same niches as C++.