News for hackers. Stuff that matters.
Re:Embracing Modern C++ Safely, Book Review by ncmncm on Tuesday May 31, 2022 @01:41AM (#31566436)
Rust is not, in fact, much simpler than C++, and gets less so every release. In five years Rust will be obviously, fully as complex as C++ -- provided it is still used.
Re:Embracing Modern C++ Safely, Book Review by pjmlp on Tuesday May 31, 2022 @08:14AM (#31568646)
Maybe it is my stockholm syndrome of reaching out to C++ when I need something like it alongside my managed languages, but I definitly find template metaprogramming easier to follow, specially since constexpr and concepts, than the various kinds of macros available in Rust.
Re:Embracing Modern C++ Safely, Book Review by oncewas on Tuesday May 31, 2022 @07:47AM (#31568442)
Extremely doubtful on of this claim... Again, really recommend learning the language...
Re:Embracing Modern C++ Safely, Book Review by pjmlp on Tuesday May 31, 2022 @08:15AM (#31568652)
Try to debug an error related to macro expansions in Serde, or how Pin semantics work in asynchronous code,....
Re:Embracing Modern C++ Safely, Book Review by staticassertion on Tuesday May 31, 2022 @04:39PM (#31574657)
Pointing to errors, of all things, as an example of Rust being more complex seems sort of hilarious given C++'s famous template errors?
Re:Embracing Modern C++ Safely, Book Review by pjmlp on Wednesday June 01, 2022 @01:48AM (#31578588)
Yes, they are famous, mostly in code bases that aren't using static_assert with type traits, or concepts.

Rust needs to compete with ISO C++ current, not ISO C++98.

Re:Embracing Modern C++ Safely, Book Review by ncmncm on Tuesday May 31, 2022 @06:23PM (#31575667)
To keep from fizzling out, Rust has to be much better than what it is trying to compete with, so pointing to something similar in an established language falls short.

In any case, C++20 has Concepts, which where used clear up the template error problem.

Re:Embracing Modern C++ Safely, Book Review by staticassertion on Wednesday June 01, 2022 @01:19AM (#31578407)
Yeah, I remember Concepts, glad to hear they're in. I haven't used C++ since 2015, and last I had heard Concepts had been pushed out of C++17.