Re: Why is not more FreeBSD software written in C++?

2006-04-23 Thread Don Dugger
I think this points out another issues with performance. That some times the OS and the compilers implementation have more effect then the language. I have hard that argued to use native compiles on OSs like SUN and HP over GNU. The idea that the computer manufacture can implement the compile

Re: Why is not more FreeBSD software written in C++?

2006-04-22 Thread Don Dugger
Not that it matters a great deal but I didn't write that. Don ;^) Dan Strick wrote: On Friday 21 Apr 2006 09:20, Don Dugger wrote: The example above is not exactly a realworld example. Even if you stick to plain C, a repeated putchar(' ') is 1-2 orders of magnitude slower than

Re: Why is not more FreeBSD software written in C++?

2006-04-22 Thread Don Dugger
that the scope was only files not general io. Don :-) Dan Strick wrote: On Saturday 22 Apr 2006 08:33, Don Dugger wrote: Not that it matters a great deal but I didn't write that. Oops. I was confused by multiple levels of attribution and missing characters. I should have been more

Re: Why is not more FreeBSD software written in C++?

2006-04-22 Thread Don Dugger
Dag-Erling Smørgrav wrote: Don Dugger [EMAIL PROTECTED] writes: But streams have been around a lot longer then c++. I first encountered them in AIX protocol stacks. Didn't like 'em then either. SysV streams and C++ I/O streams are completely unrelated (except that they both

Re: Why is not more FreeBSD software written in C++?

2006-04-22 Thread Don Dugger
Dag-Erling Smørgrav wrote: Don Dugger [EMAIL PROTECTED] writes: Dag-Erling Smørgrav [EMAIL PROTECTED] writes: Don Dugger [EMAIL PROTECTED] writes: The fact is that all your c code will compile in c++ That is wrong. To name just one example, C++ is much stricter

Re: Why is not more FreeBSD software written in C++?

2006-04-22 Thread Don Dugger
Dag-Erling Smørgrav wrote: Don Dugger [EMAIL PROTECTED] writes: Dag-Erling Smørgrav [EMAIL PROTECTED] writes: // comments are neither better nor worse than /* */ comments, and they have been available in C for seven years now. That's pure opinion and one that I haven't head

Re: Why is not more FreeBSD software written in C++?

2006-04-22 Thread Don Dugger
Dag-Erling Smørgrav wrote: Don Dugger [EMAIL PROTECTED] writes: Dag-Erling Smørgrav [EMAIL PROTECTED] writes: Don Dugger [EMAIL PROTECTED] writes: Dag-Erling Smørgrav [EMAIL PROTECTED] writes: Don Dugger [EMAIL PROTECTED] writes: The fact is that all your

Re: Why is not more FreeBSD software written in C++?

2006-04-22 Thread Don Dugger
Am I missing something here? What's the difference between test_iostream.cpp and test_string.cpp? Don 8) Benjamin Lutz wrote: On Saturday 22 April 2006 17:11, Dan Strick wrote: On Friday 21 Apr 2006 09:20, Don Dugger wrote: The example above is not exactly a realworld example. Even

Re: Why is not more FreeBSD software written in C++?

2006-04-21 Thread Don Dugger
The fact is that all your c code will compile in c++ and the c++ compiler may optimize better then the c compiler. When you use things like iostreams and string you get a lot of code that does a lot more then what you may need at time however it may save you a lot of time in the future when you