| ||||||
| 5/18 |
| 2001/7/5-7 [Computer/SW/Languages/C_Cplusplus] UID:21718 Activity:high |
7/5 Does MFC/STL provide functions for quick extractions of word/line
counts of a textfile?
\_ in STL, open the file using a stream iterator. then use
std::count() in <algorithm>. two lines of code. -ali
\_ C++ is an evil tool of Satan.
\_ uh huh. and i suppose you're either a C purist or
one of those "Pee-Ell" people who like ML. Well,
\_ Learn ML before spewing idiocy.
when /usr/src starts shipping with ML stuff in it, i suppose
you'll be right. Until then, you're a motd-wanker!
(apologies if you are a C purist, but eventually you will
be phased out along with fortran).
\_ This will take another 10 to 20 years, by which time
I will be retired. - not the original poster but still
\_ and you're a stupid unoriginal troll. -ali
not a fan of c++
\_ and you're a stupid unoriginal troll. learn to code
c++ before before you spew idiocy. -ali
\_ Ocaml and SML are faster than C++:
http://www.bagley.org/~doug/shootout
\_ those tests are seriously flawed
\_ Show me one test where C++ beats Ocaml.
\_ Tell me about it, java beats C++.
Only if you run java on a E10K and
C++ on a M68K
\ Is C++ really that much better than C? I mainly
\_ I compare it to the English language: Difficult
bullshit, language learning curve _/
depends entirely on your first language and
others you may know.
\_ I know C well. C++'s virtual stuff,
STL extensions, and iostream.h classes
are hard to memorize. I don't mean to
argue ...
it's not really that important, anyway.
I mean, really, do you think I want
to waste more time on C vs. C++ wars?
to learn, but very useful if mastered - relative
to other languages.
write network servers/clients, utility daemons
and such and C seems to serve me well. I'd consider
switching to C++ if I could figure out how it
would make my life eaiser. URL okay. - NTOP (not
the original poster)
\_ Bjarne Stroustrup musings:
http://freespace.virgin.net/s.hector/jokes/stroustrup.htm |
| freespace.virgin.net/s.hector/jokes/stroustrup.htm Remember what a mainframe systems programmer used to earn? Stroustrup:And as for 're-useable code' - when did you ever hear of a company re-using its code? You do realise, it's impossible to maintain a large C++ software module if you didn't actually write it? Stroustrup:Remember how long it took to grope through the header files only to find that 'RoofRaised' was a double precision number? Stroustrup:Remember the length of the average-sized 'C' project? Interviewer:But, surely, inheritance does save a lot of time? Interviewer:If we publish this, you'll probably get lynched, you do realise that? |
| www.bagley.org/~doug/shootout -> www.bagley.org/~doug/shootout/ Activity Log 10 Acknowledgements 11 Scorecard 12 Slash-Holed 13 Rules for Benchmark Writers 14 Conclusion 15 Todo The shootout has not been updated since the fall of 2001, and is now frozen as it is. It should not be relied on as a true inter-language performance comparison. I've had hundreds of requests to update the shootout since it was closed. I've filed them all away so I can refer to them if the shootout is ever resurrected. If you do send me an update, it will go into this file, and in the unlikely event that the shootout is resumed, your update/request will be processed in the order it was received. My favorite languages from the shootout are still the ML family, and in particular Ocaml. Aldo Calpini's Windows version of the shootout is still 17 here. I've been asked about the license of the shootout, and I consider it in the public domain, except that some individual contributions contain copyright statements of their respective authors. |