Live data from Hacker News

C++ - The Forgotten Trojan Horse

ejohnson.blogs.com

11–20 of 40 posts

Re: C++ - The Forgotten Trojan Horse

#11
This article is silly. The real reason for the rise of C++ is that "C with Objects" fit the metaphors that GUI libraries need a lot better than C.

And in the end...it's not such a bad language. In the real world, you only use a small part of it on any one project. In the real world, your framework or libraries matter more than the language anyway. And in the real world, performance always matters in the end.

Re: C++ - The Forgotten Trojan Horse

#12
post #9
post #5

This is the same strategy that Clojure is now using, which is why it's the only LISP that has any chance of going mainstream.

I don't think Clojure uses the same "trojan horse" strategy, i.e. it isn't a superset of the Java language with Lisp extensions. It does use the Java virtual machine, however, which allows it to use existing java libraries.

Implementing Java interfaces and subclassing Java classes does allow Clojure programmers to introduce Clojure into a Java organization without forcing the Java programmers to accommodate them in any special way.

(That is, as long as Clojure code can be deployed easily as jars, and as long as Clojure doesn't create any special classloader problems because of its runtime system. Those are problems that bit me hard when I used Jython code in the Eclipse plugin framework, and I imagine any dynamic language might accidentally create classloader problems unless it was specifically designed to avoid them.)

Re: C++ - The Forgotten Trojan Horse

#13
post #7

Always useful reading for anyone who thinks C++ is great and can't understand all the curmudgeons who think otherwise: http://yosefk.com/c++fqa/defective.html The rest of the FQA site is good too, but the summary is the best enumeration of all the brain damage.

It's amusing how people attack C++ from both directions. You get the main article apparently complaining that C++ isn't retarded simple and verbose like C. Then you also get people like in this link basically complaining that C++ isn't Lisp.

Allow me to clarify: C++ is a replacement for C. C code rewritten as C++ will almost always be shorter and the same speed. The structure and function of the code will also tend to be clearer in C++.

Re: C++ - The Forgotten Trojan Horse

#14
post #7

Always useful reading for anyone who thinks C++ is great and can't understand all the curmudgeons who think otherwise: http://yosefk.com/c++fqa/defective.html The rest of the FQA site is good too, but the summary is the best enumeration of all the brain damage.

OK, picked one random whine:

"When an invalid program finally crashes (or enters an infinite loop, or goes to sleep forever), what you're left with is basically the binary snapshot of its state (a common name for it is a "core dump"). You have to make sense of it in order to find the bug."

If you write an invalid program... Then you are doing it completely wrong! (http://lemonodor.com/archives/2007/10/youre_doing_it_wrong.h...)

There are two types of peope: those who belive what they read and those who want to try out their own and then read and after that whine or ... :)

Re: C++ - The Forgotten Trojan Horse

#15
post #6
post #4

Linus Torvalds thoughts on C++: http://thread.gmane.org/gmane.comp.version-control.git/57643...

Those aren't his thoughts. Those are his thoughts morphed into a flame meant to stop people from bugging him about a particular decision he made that he believed was correct and didn't want to revisit ad nauseam.

Can someone post a link to his actual thoughts on C++?

Re: C++ - The Forgotten Trojan Horse

#17
post #4

Linus Torvalds thoughts on C++: http://thread.gmane.org/gmane.comp.version-control.git/57643...

I couldn't find any useful information in that thread. A couple C aficionados basically scream they don't like C++ and baselessly claim it has performance and portability problems.

Re: C++ - The Forgotten Trojan Horse

#18
post #15
post #6

Earlier quoted context omitted.

Those aren't his thoughts. Those are his thoughts morphed into a flame meant to stop people from bugging him about a particular decision he made that he believed was correct and didn't want to revisit ad nauseam.

Can someone post a link to his actual thoughts on C++?

Never seen it happen :-)

I'm sure if he shared his actual thoughts, it would bring him some serious hassle, what with people wanting to debate with him. Much easier just to make it clear he isn't willing to be reasonable on the topic.

Re: C++ - The Forgotten Trojan Horse

#19
post #15
post #6

Earlier quoted context omitted.

Those aren't his thoughts. Those are his thoughts morphed into a flame meant to stop people from bugging him about a particular decision he made that he believed was correct and didn't want to revisit ad nauseam.

Can someone post a link to his actual thoughts on C++?

http://kerneltrap.org/node/2067

Re: C++ - The Forgotten Trojan Horse

#20
post #7

Always useful reading for anyone who thinks C++ is great and can't understand all the curmudgeons who think otherwise: http://yosefk.com/c++fqa/defective.html The rest of the FQA site is good too, but the summary is the best enumeration of all the brain damage.

Believe me, those who truly believe that C++ is great, consider some of those deficiencies to be advantages. It helps to remember, that C and C++ don't exist on an "VM island", i.e. as an isolated process, like all high-level programming languages do. They are effectively extensions of UNIX-derived operating systems, i.e. they run under "UNIX VM". They even have a garbage collection of sorts: when you exit the progra…

It's nginx that eats so little RAM. Apache is a huge!
Post reply on HN