News for hackers. Stuff that matters.
Re:C++ in Coders at Work by amalcon on Friday October 16, 2009 @12:14PM (#885637)
C is a portable assembler. Sometimes that's exactly what you want.

C++ is C, except that it doesn't completely suck for higher-level projects.

Re:C++ in Coders at Work by seiji on Friday October 16, 2009 @12:46PM (#885700)
LLVM IR [1] is portable assembler. C is "portable" in the sense that:

a.) you get direct access to your linear address space

b.) gcc targets so many instruction sets that you don't have to worry about your backend unless you have a custom platform.

C++ is the thing that screams "__gxx_personality_v0" at me because I always start off using gcc instead of g++.

[1]: http://llvm.org/docs/LangRef.html

Re:C++ in Coders at Work by jacquesm on Friday October 16, 2009 @01:10PM (#885745)
Calling C portable assembler is not to be taken literally, but in context of its usage, which was for the most part systems level stuff that previously would have been written in assembler, requiring expensive ports between platforms.

C changed that dramatically and helped to cut down on porting effort tremendously.

Re:C++ in Coders at Work by varjag on Friday October 16, 2009 @03:08PM (#885976)
I would say C++ is somewhat less portable assembler than C, due to different linker semantics, which is not unified across platforms.