in reply to Re^2: Samples of big projects done in Perl
in thread Samples of big projects done in Perl

My rough estimate (informed by Peter Scott and more or less confirmed by Nicholas Clark) is that there's about an order of magnitude difference between C and Perl SLOC. C++ can be a little better, but I doubt it's as good as two to one. I expect a million line C++ project to take perhaps 200-250k lines of Perl. It depends on the domain though.

  • Comment on Re^3: Samples of big projects done in Perl

Replies are listed 'Best First'.
Re^4: Samples of big projects done in Perl
by GrandFather (Saint) on Aug 07, 2006 at 09:32 UTC

    Two to one was pretty much a guess, but based on the sort of C++ code I'm involved in which tends to be interacting with an instrument over USB and data analysis. I'd guess in those areas Perl wouldn't have so much advantage.

    On the other hand I have a modest size C++ app (maybe 2000 lines) that I'm slowly rewriting in Perl. In that case I expect to get about a five to one advantage, but it is processing email and I can use MIME::Lite to replace a swag of C++. That particular application is made for Perl and I regret not knowing Perl when I chose C++ to write the first version!


    DWIM is Perl's answer to Gödel