Live data from Hacker News

Is C++ still needed?

gerd-riesselmann.net

11–20 of 27 posts

Re: Is C++ still needed?

#11
Often done--a list of what is important in language choice, followed by the choice we wanted to make anyway: "Nethertheless, we choosed C++ as our language." C++ is slow, but in time to learn or write, but not necessarily in execution.

Re: Is C++ still needed?

#14
post #6

"Conclusion? C++ sometimes is the best choice, sometimes not." Isn't that the case for any programing language?

Well... not "any", theres some I can't really see would ever be the "best" choice. Lolcode anyone? (I'm sure theres non-joke languages too)

Re: Is C++ still needed?

#15

With all due respect, this guy doesn't know what he's talking about. There might be a case to be made to eliminate C++, but it's best made by somebody who knows more than this guy. This is really a terrible submission.

No respect due here. This guy truly doesn't know what he's talking about. "C++ is slow". LOL. http://shootout.alioth.debian.org/u32q/benchmark.php?test=al... http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...

Reading the article, it sounded like he was comparing the speed of some unspecified ORM library in each language. If so, I suspect he may have been comparing a naive hand-rolled implementation in C++ to something like Hibernate/NHibernate which has many years of development and optimisation behind it.

The lessons to draw from this, if any, are that C++ code isn't automatically faster than Java or C# code: you have to make it so; and that Java/C# have some useful high-quality libraries which save you the need to roll your own solution.

Re: Is C++ still needed?

#16

With all due respect, this guy doesn't know what he's talking about. There might be a case to be made to eliminate C++, but it's best made by somebody who knows more than this guy. This is really a terrible submission.

No respect due here. This guy truly doesn't know what he's talking about. "C++ is slow". LOL. http://shootout.alioth.debian.org/u32q/benchmark.php?test=al... http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...

C++ actually used to be pretty slow back in the day, but that's more the fault of compilers that didn't optimize properly. That was about 15 years ago. (In other words, this guy missed the "C++ is slow!" bandwagon by a decade and a half.)

Re: Is C++ still needed?

#18
post #4

C++ and Delphi are almost the last of few ones left to generate proper Windows exe files. DotNET is great for business applications but when you think about creating mass products, you have to keep returning to C++ and friends.

Factor generates stand alone images.

Not only that, but Factor generates application bundles -- not just the binary -- for OS X when asked to. At least, it did the last time I checked.

Re: Is C++ still needed?

#19
post #15

Earlier quoted context omitted.

No respect due here. This guy truly doesn't know what he's talking about. "C++ is slow". LOL. http://shootout.alioth.debian.org/u32q/benchmark.php?test=al... http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...

Reading the article, it sounded like he was comparing the speed of some unspecified ORM library in each language. If so, I suspect he may have been comparing a naive hand-rolled implementation in C++ to something like Hibernate/NHibernate which has many years of development and optimisation behind it. The lessons to draw from this, if any, are that C++ code isn't automatically faster than Java or C# code: you have to…

Actually, object creation on the heap can be quite slower in C++ than in Java, at least if you are not using a custom allocator. The standard allocator in C++(using malloc) is SLOW.

Re: Is C++ still needed?

#20
post #8

I have experience programming in large teams in both C++ (~10 years) and C# (~3 years), and my feeling is that the overall development is really quicker in C#. It's a large windows-only standalone app where speed is very important. But if my team have to build such app with cross-platform requirement, I still think C++ would be the choice. [with the similar arguments the author uses at the end of his rant]

Or if you need to use any other libraries. C# is great assuming everything you need is in .Net. As soon as you need a decent maths library or a screengraph or some image processing it involves a lot more work.
Post reply on HN