Live data from Hacker News

C++17 Standard Published

iso.org

51–60 of 85 posts

Re: C++17 Standard Published

#51
post #32
post #6

C++17 is a slight disappointment, I hope C++20 will be the real deal - concepts could really be a game changer and move semantics needs more fixes :/.

D has had concepts for quite a while. They call them template constraints: https://dlang.org/concepts.html You should give D metaprogramming a try. It's a whole new world, a new fantastic point of view.

D is in a tough situation right now

I think its good all around and balanced languages, but, there is always a better language for any use case, where D is an alternative

Ocaml, if you want performance close to C/C++ plus and high level abstractions

Rust, if you want manual memory managment

C# and Java, if you want large ecosystems and advanced features

Also C++ is now moving and improving fast Even Ada is sort of making a come back

Re: C++17 Standard Published

#53
post #10

Earlier quoted context omitted.

You can build the pdf yourself from the LaTeX source: https://github.com/cplusplus/draft Or get the latest public draft from https://wg21.link/standard Or an html version: http://eelis.net/c++draft/

Thanks. I just like having an official (not draft) copy. I'm a nerd. I just built from the LaTeX source and it's 32 pages longer than the public draft in the second link from 6 weeks ago. Maybe just additional descriptive language, but...

In one way, the last draft is more canonical than the official spec - if you are talking chapter and verse to another person about the spec, odds are good that they are referring to the last public draft also.

Re: C++17 Standard Published

#54

Seems like the meta-language (compile-time expressions) is now pretty much full fledged. Long gone days where template meta-programming was the only way to do compile-time code generation and constant checks.... at least that's my impression of the latest language-level features. I have not worked professionally with c++ for a few years now, but his piece from the article, just seems rather powerful incarnation of th…

Bah what an horror. I doubt anyone can spot a more unreadable language (except maybe brainfuck).

One of the issues I have with C++ is that they seem to have used basically all the symbols you can find on a keyboard to create unspellable operators or modifiers, and since they didn't have enough to avoid colliding with C, they mixed them to create even more unreadable combinations. The other examples in the doc are good readings as well suggesting I never approach this "modern art".

Re: C++17 Standard Published

#55
post #35

Do any of the standard's people read HN, or is there a way of submitting requests? The STL could seriously use some improvements. std::string doesn't do most of the stuff you want with a string; updating it to an interface like Python's string would be nice. Having a std::vector::append() would be really nice, so I don't have to remember that C++ uses something completely different from every other language. Convenie…

Why Python string class? The Python 2 one or the Python 3 one? ;-)

String classes are fickle things. It's very hard to get them right. Still, std::string, for all of its age, does let you do a lot of what Python does with manipulation of bytes, particularly when combined with locales (admittedly painful to use) and iostreams (also a bit painful at times).

Python does have a LOT of other functionality tied into strings, but there's a legit design question as to whether that's really a good idea or not. What particular functionality do you think ought to be there?

Re: C++17 Standard Published

#57
post #18

Earlier quoted context omitted.

It still is pretty sweet for polyglot developers.

How so?

There aren't a lot of languages that combine functional programming/generics & OO together quite so extensively. There's a lot of power you can unlock there if you can just manage the cognitive load of the syntax.

Re: C++17 Standard Published

#58

Can someone kindly post links or books for a beginner to dive into learning C++? It is a bit intimidating to approach fresh.

I'd recommend to choose one of these two books:

Programming: Principles and Practice Using C++, 2nd Ed., Bjarne Stroustrup https://www.amazon.com/Programming-Principles-Practice-Using...

C++ Primer, 5th Ed., Stanley Lippman https://www.amazon.com/Primer-5th-Stanley-B-Lippman/dp/03217...

For a very brief introduction:

A Tour of C++, Bjarne Stroustrup https://www.amazon.com/Tour-C-Depth/dp/0321958314/ref=sr_1_1...

Re: C++17 Standard Published

#60
post #35

Do any of the standard's people read HN, or is there a way of submitting requests? The STL could seriously use some improvements. std::string doesn't do most of the stuff you want with a string; updating it to an interface like Python's string would be nice. Having a std::vector::append() would be really nice, so I don't have to remember that C++ uses something completely different from every other language. Convenie…

Some of us do. There is currently a group of committee members working on text handling. See http://wg21.link/p0244 and https://github.com/tzlaine/text for some future work in that direction.
Post reply on HN