Hacker News new | ask | show | jobs
by petke 3788 days ago
I have never been as excited for the future of cpp as I am now. Cpp17 and cpp20 are going to be revolutionary when it comes to concurrency an parallelism.

In cpp17 we get couroutines. Its like await in c# only more general and powerful. In cpp20 we will get parallel executors. Kindof like cppamp and openmp only more general and powerful. It will bring supercomputing mainstream.

Its exciting times for cpp. There are already some experimental implementations to try out. There are also a bunch of other big features coming out. Modules, concepts, transactional memory, compile time reflection, ranges, views, etc.

People can hate on cpp all they want. I'm super excited, and think they are missing out on the future.

1 comments

Both of these have been done for years in other languages.

The claim that parallel executors bring supercomputing mainstream is puzzling to me, because OpenCL has been around for a long time, is more widely supported, and is far easier to run on e.g. GPUs than the full C++ language.

Its not been done as general as this though. Check out this link if you have the time. Especially the last 15 minutes. Its by the ceo of openmp and its very interesting. http://youtu.be/0mwHJ0950tA
I find it surprising how little interest there is on hn about cpp in general. This video about the future of cpp is the best i have seen this year. My guess is the demographics of hn is just wrong for cpp. Its mostly web developers here?
Yes, HN in general is anti-C++, a quick search for previous discussions proves this. For some inane reason, the language makes a lot of people upset and pouty. People love to hate it. To be honest, it's getting old. It's the same bitter sentiments over and over.

I turn to reddit for substantive C++ discussions.

EDIT: fwiw, I've found the actual cpp community to be a delight.

> For some inane reason, the language makes a lot of people upset and pouty.

People here have cited specific problems with C++ over and over. There are legitimate criticisms of the language that aren't "inane".

Personally, my biggest issue is that it's not memory safe, which leads to people making the same memory management mistakes we've been making since the '70s. At the same time, attackers have seen ways to weaponize use after free in ways that were not thought of when C++ was designed—and C++'s vtables make it much easier to do so. RAII and smart pointers have not proven to be an effective way to mitigate this, as a trip to any Web browser's bug tracker will demonstrate.

I do not believe this specific problem can be effectively fixed in C++, even with the ISO Core C++ lifetime checker, for reasons that I've elaborated on at length before.

> There are legitimate criticisms of the language that aren't "inane".

Please don't misquote me. I did not say criticisms of C++ were inane. Obviously there are many legitimate criticisms.

What I said was the reason people get so upset about C++ must be inane. IMO there's no good reason for an adult to get upset over a programming language.

D has both of them, though I've yet to toy with either. Go was popular for one, if not both as well. Definitely C++ is playing catch up it seems? Though that isn't to say C++ never had these features, but built-in would be a nice thing to see in any language.