News for hackers. Stuff that matters.
Re:C++ - The Forgotten Trojan Horse by old-gregg on Thursday July 02, 2009 @05:46PM (#685239)
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 program, the memory gets freed. And, according to Linux philosophy, launching processes or forking/dying should be quick, efficient and, in fact, desirable. Also, having many independent binary modules is the norm, so here is your runtime encapsulation.

But C family is still the only tool out there that allows you to extend an OS, i.e. for instance to build a piece of code, a single instance of which will be serving all other simultaneously running processes. This explains why Apache eats so little RAM. None of VM-based languages can do that. It's called systems programming.

Building a web-based CRM in C++ is stupid. Building a filesystem in Python is impossible.

Re:C++ - The Forgotten Trojan Horse by kqr2 on Thursday July 02, 2009 @06:46PM (#685333)
You wouldn't build a low level filesystem in Python, however, Tahoe is a distributed file system built using python:

http://allmydata.org/~warner/pycon-tahoe.html

Re:C++ - The Forgotten Trojan Horse by thras on Thursday July 02, 2009 @09:04PM (#685466)
I don't know. Every time RoR slows down under barely any load, I swear to myself that I'm going to right C++ on Rails and do it right.
Re:C++ - The Forgotten Trojan Horse by ilyak on Thursday July 02, 2009 @06:37PM (#685325)
It's nginx that eats so little RAM. Apache is a huge!
Re:C++ - The Forgotten Trojan Horse by dryicerx on Thursday July 02, 2009 @09:04PM (#685467)
And nginx is written in C