Re:Apple GPU drivers now in Asahi Linux
by reilly3000 on Wednesday December 07, 2022 @11:27AM
(#33896297)
Modern C++ now has nearly all of Rust and other modern language features built in, some as flags. At the same time it has 30 years of ecosystem, cruft, and bad habits. It’s entirely possible to write performant, memory safe C++, even in a functional style. It’s a bazooka, and won’t stop you from firing at your feet, but it is also the right tool for big jobs.
[ Parent
| on HN ]
Re:Apple GPU drivers now in Asahi Linux
by aulin on Wednesday December 07, 2022 @01:18PM
(#33897948)
The main problem with C++ is that it's too vast, it does everything and everyone has its very own choice of a subset of the language he should use.
The result is codebases hard to navigate, code hard to undestand with lots of clever code and unintuitive syntax.
Re:Apple GPU drivers now in Asahi Linux
by __jem on Wednesday December 07, 2022 @01:34PM
(#33898187)
Except... you know... the most important feature of Rust... the borrow checker.
Re:Apple GPU drivers now in Asahi Linux
by hedora on Wednesday December 07, 2022 @11:53AM
(#33896727)
The last time I checked, there were only nascent efforts to add the borrow checker to C++.
That's the main reason to implement in Rust (the others being syntactic sugar like match, ?, and, of course, the library ecosystem that learned from ~ C++17's mistakes).
Re:Apple GPU drivers now in Asahi Linux
by snotrockets on Wednesday December 07, 2022 @01:24PM
(#33898038)
It still lacks memory safety.