Live data from Hacker News

A list of modern C++ features

github.com

51–60 of 68 posts

Re: A list of modern C++ features

#51
post #40
post #23

Earlier quoted context omitted.

How specially Ada?! The only thing Ada has thrown away was GC support that no compiler vendor has ever bothered to implement. What other features were thrown away across Ada83, Ada95, Ada2005 and Ada2012? If I present you Ada random code snippet X, are you sure you will be able to say which language version it requires? Also Python is the poster child of what happens when you throw compatibility away.

>Also Python is the poster child of what happens when you throw compatibility away. And what, exactly, happened? For years I avoided Python3. Updating my code base was a hassle I did not want to deal with. Finally, a few months ago, I had some spare time and took the dive. And nothing bad happened. I did not even spend hours on it. At this point, all the libraries I need exist for Python3, and the automated tools upd…

Of a community dragging their feets while avoiding to upgrade at all costs, with developers being forced to backport features into the 2.x branch.

Re: A list of modern C++ features

#52
post #38
post #14

Earlier quoted context omitted.

And every time there was a language designed against PL/I like languages, with the goal of fighting complexity, its adoption by the industry lead to feature growth and becoming just as complex, usually with solutions hindering by backwards compatibility. Yes C++ is complex, but so are Python, Ruby, Ada, Fortran, C#, F#, Haskell, OCaml, Java... Even Go will get caught in the complexity game if it gets enterprise adopt…

I won't necessary call out Java as a complex language. However in not being so complex a language it sacrifices a lot of expressiveness found in other languages.

I advise you to have some fun trying out Java puzzles now that Winter is coming.

Re: A list of modern C++ features

#53
post #51
post #40

Earlier quoted context omitted.

>Also Python is the poster child of what happens when you throw compatibility away. And what, exactly, happened? For years I avoided Python3. Updating my code base was a hassle I did not want to deal with. Finally, a few months ago, I had some spare time and took the dive. And nothing bad happened. I did not even spend hours on it. At this point, all the libraries I need exist for Python3, and the automated tools upd…

Of a community dragging their feets while avoiding to upgrade at all costs, with developers being forced to backport features into the 2.x branch.

>Of a community dragging their feets while avoiding to upgrade at all costs, with developers being forced to backport features into the 2.x branch.

A minor problem compared to dealing with developers continually using poor paradigms for eternity because C++ did not want to break compatibility.

And I believe the developers who backport to 2.x are not those who implement the features in 3.x. The latter don't care at all about 2.x. Those who backport do not see it as a "pain" but as a new feature to add to their language.

Re: A list of modern C++ features

#54
post #53
post #51

Earlier quoted context omitted.

Of a community dragging their feets while avoiding to upgrade at all costs, with developers being forced to backport features into the 2.x branch.

>Of a community dragging their feets while avoiding to upgrade at all costs, with developers being forced to backport features into the 2.x branch. A minor problem compared to dealing with developers continually using poor paradigms for eternity because C++ did not want to break compatibility. And I believe the developers who backport to 2.x are not those who implement the features in 3.x. The latter don't care at al…

It's amazing that there's someone out there thinking that Python's compatibility break is a "minor problem", even when comparing apples to oranges.

Fortunately the architects of the change said that they've learned their lesson. They don't have much choice either, another one like this and it would be bye bye python.

Re: A list of modern C++ features

#55

Earlier quoted context omitted.

Rust?

A very heavily biased rookie response. Not trying to be snarky. Rust would be an obvious choice for what I described. It's been on my personal list for a while to learn Rust and make use of it. I think I will pretty soon. I've been demotivated (to start) by reading over here on HN or elsewhere about how much of a learning curve it is to learn Rust. Perhaps, it was the bias that I already know what C++ was like in ter…

You know c++ but you're worried about the complexity of Rust?

I'm mostly a front-end software engineer and I got along just fine with Rust.

Re: A list of modern C++ features

#56

Earlier quoted context omitted.

-Wc++98-compat is especially annoying.

You guys don't use -pedantic? :D

-Weverything is even more pedantic than -pedantic: http://clang.llvm.org/docs/UsersManual.html#diagnostics-enab... - pedantic can be a bit annoying, but Weverything is downright infuriating on a modern codebase

Re: A list of modern C++ features

#57

I really wish a group of really smart dev get together and come up with a new language based just on the modern C++. Perhaps even call it MC++ (Modern C++). Make it's syntax as simple and easy to learn as Python and yet give us the performance close to the compiled C++. I'd take that knowing very well that I can't do all the powerful stuff I could with C, yet I have a safe and idiot-proof language to work with in my…

Swift?

Re: A list of modern C++ features

#58
post #54
post #53

Earlier quoted context omitted.

>Of a community dragging their feets while avoiding to upgrade at all costs, with developers being forced to backport features into the 2.x branch. A minor problem compared to dealing with developers continually using poor paradigms for eternity because C++ did not want to break compatibility. And I believe the developers who backport to 2.x are not those who implement the features in 3.x. The latter don't care at al…

It's amazing that there's someone out there thinking that Python's compatibility break is a "minor problem", even when comparing apples to oranges. Fortunately the architects of the change said that they've learned their lesson. They don't have much choice either, another one like this and it would be bye bye python.

>It's amazing that there's someone out there thinking that Python's compatibility break is a "minor problem", even when comparing apples to oranges.

Certainly did not affect me or anyone I know.

Re: A list of modern C++ features

#59
post #50

Earlier quoted context omitted.

> C is a mine-field of devastating design flaws which have caused many people to die because of decades old decisions made on a whim... Wow. Hyperbole much? I get that you don't like C, but you sound like a raving lunatic who is completely unconnected with reality. Devastating design flaws? Flaws I can agree with. Devastating? That sounds a bit overstated. Caused many people to die? I call BS. (Yes, I'm pretty sure y…

First of all what if I am lunatic xD There are so many parts of C that are unsafe that a secondary tool is needed to have an reasonable type-checking and that tends to be devastating if they can be easily avoided by even safety critical engineers. https://users.ece.cmu.edu/~koopman/pubs/koopman14_toyota_ua_... "Toyota does not claim to have followed MISRA Guidelines" And honestly I dont think we agree on what "a few"…

"Decided by one man" != "decided on a whim".

Re: A list of modern C++ features

#60

I really wish a group of really smart dev get together and come up with a new language based just on the modern C++. Perhaps even call it MC++ (Modern C++). Make it's syntax as simple and easy to learn as Python and yet give us the performance close to the compiled C++. I'd take that knowing very well that I can't do all the powerful stuff I could with C, yet I have a safe and idiot-proof language to work with in my…

Do you want it to be safe? Modern C++ is not safe.

If you want it to be safe, you will basically be reinventing Rust.

Post reply on HN