On Sat, Mar 09, 2002 at 07:13:36PM +0900, Niklas Frykholm wrote: > Well, this is just one datapoint, but at least it is something empiric. I > recently implemented a (not very large, but at least non-trivial) program in > both C++ and Ruby. The C++ program used STL for collections, and other nice > programming techniques. > > The result (with comments stripped): > > 890 2472 26071 c_src > 619 1497 14090 ruby_src > > So the C-code was 85 % longer (43 % as many lines). > > On the other hand, if I hadn't written the Ruby version first, the C code would > probably not have been as well designed. ;) Was it C++ code or was it C code? How much of the C/C++ code was boilerplate and due to the verbosity of the C/C++ language rather than to static typing itself? Paul