News for hackers. Stuff that matters.
Re:How to Adopt Modern C++17 into Your C++ Code [video] by wpdev_63 on Thursday May 10, 2018 @12:49PM (#17040569)
People who are looking for a modern C++ should take a serious look at Rust. It has all the things you want in modern C++ while getting rid of the cruft of the language.
Re:How to Adopt Modern C++17 into Your C++ Code [video] by TillE on Thursday May 10, 2018 @01:02PM (#17040710)
Rust doesn't even have default arguments, a feature of C++ since forever. I've written actual code in both languages, and I still find C++ much more usable.
Re:How to Adopt Modern C++17 into Your C++ Code [video] by pjmlp on Thursday May 10, 2018 @02:45PM (#17041822)
I do like playing with Rust, but it still does miss a few things from C++.

First of all, cargo does not understand binary dependencies, compiles everything from source.

Second, my only use case for C++ is for native code when integrating system code with Java, .NET, UWP, Swift, Objective-C.

Third, my C++ code can also be used on the GPGPU, with nice debugging tools from all vendors.

There Rust misses the integrated workflow and IDE debugging experience that I have with C++ on those environments.

No doubt Rust will get there, by then I would gladly use it as well, but it still needs to mature a bit more.

Today's Rust release also had many goodies.

Re:How to Adopt Modern C++17 into Your C++ Code [video] by alexeiz on Thursday May 10, 2018 @04:14PM (#17042556)
I'd love to. But seeing how Rust adopters struggle with something as trivial as a linked list (https://news.ycombinator.com/item?id=16442743), doesn't inspire me.
Re:How to Adopt Modern C++17 into Your C++ Code [video] by Retra on Friday May 11, 2018 @12:25AM (#17044958)
Linked lists are easy. People are struggling with safe linked lists, because they think they should be as easy to write as an unsafe ones.

But if you're already willing to use C or C++, you've got no reason to avoid unsafe.

Re:How to Adopt Modern C++17 into Your C++ Code [video] by kllrnohj on Thursday May 10, 2018 @04:59PM (#17042923)
On the other hand should it be trivial to implement a linked list? They are an extremely bad data structure for modern CPUs, after all.

Worth noting that it's doubly linked lists specifically that are hard. So cyclic structures.

Re:How to Adopt Modern C++17 into Your C++ Code [video] by krona on Thursday May 10, 2018 @12:51PM (#17040590)
> It has all the things you want in modern C++

Variadic templates?

Re:How to Adopt Modern C++17 into Your C++ Code [video] by con22 on Thursday May 10, 2018 @01:18PM (#17040901)
Rust is your silver bullet?