Live data from Hacker News

C++17 Standard Published

iso.org

71–80 of 85 posts

Re: C++17 Standard Published

#71
post #42

Earlier quoted context omitted.

> I'm wondering if we ought to start thinking about a C++2.0 where we can write the C++ that we've learned we want. Wasn't that the incentive behind the D language?

Well, since D is garbage collected, it really exists in a different world from C++, so I'd say that no, it is not qualified to be in the running for a C++ 2.0.

D's GC can be turned off

Re: C++17 Standard Published

#72
post #51
post #32

Earlier quoted context omitted.

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 ma…

I'm curious about the Ada comeback - do you have any examples? I know it is still used in space & defense, but I thought those were legacy code bases.

Re: C++17 Standard Published

#73
post #71

Earlier quoted context omitted.

Well, since D is garbage collected, it really exists in a different world from C++, so I'd say that no, it is not qualified to be in the running for a C++ 2.0.

D's GC can be turned off

I don't use D myself, but I'm curious how often someone actually does that. Is it about the same as how C++ can technically be connected with a GC? Because no one does that, despite that it is possible.

Re: C++17 Standard Published

#74
post #51
post #32

Earlier quoted context omitted.

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 ma…

I'd argue D is better than all of those in some ways.

D development is lively and active. I enjoy the language, and I plan to keep using it as long as I keep enjoying it.

Re: C++17 Standard Published

#75
post #57

Earlier quoted context omitted.

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.

I really like how D combines these two. The functional programming tools are a lot easier to use than C++ and a lot more practical than Haskell or OCaml. I absolutely adore the idea of purity in D: no side effects. That's all it should be, really. What this means is that it allows you to write pure functions in dirty, imperative ways as long as all the mutation is confined to the function and doesn't leak out.

I really like it.

Re: C++17 Standard Published

#76
post #75
post #57

Earlier quoted context omitted.

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.

I really like how D combines these two. The functional programming tools are a lot easier to use than C++ and a lot more practical than Haskell or OCaml. I absolutely adore the idea of purity in D: no side effects. That's all it should be, really. What this means is that it allows you to write pure functions in dirty, imperative ways as long as all the mutation is confined to the function and doesn't leak out. I real…

D is a very nice language, just needs a better GC implementation and more community love.

Re: C++17 Standard Published

#77
post #51

Earlier quoted context omitted.

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 ma…

I'm curious about the Ada comeback - do you have any examples? I know it is still used in space & defense, but I thought those were legacy code bases.

Well, I would recommend you search for Spark, and check the website of AdaCore

But, I would suggest that investing in Rust might be more valuable for one's career I am learning a bit of ADA, only for educational purposes and to scratch an itch, it is very different from anything I used, and I like that

Re: C++17 Standard Published

#79
post #45
post #41

Earlier quoted context omitted.

Oooph, I'm no expert but that is not "good" C++ style. Definitely prefer using the iterator methods.

If it effectively solves your particular problems in your specific situation, then it IS good style ;)

This depends on knowing the intervals of that type and expecting them to not change.

Just trying to help. This code is entirely implementation specific.

Re: C++17 Standard Published

#80
post #75
post #57

Earlier quoted context omitted.

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.

I really like how D combines these two. The functional programming tools are a lot easier to use than C++ and a lot more practical than Haskell or OCaml. I absolutely adore the idea of purity in D: no side effects. That's all it should be, really. What this means is that it allows you to write pure functions in dirty, imperative ways as long as all the mutation is confined to the function and doesn't leak out. I real…

D is, in a lot of ways, C++ without the syntactical compatibility with C.
Post reply on HN