Hey all,

If you've been in the CB within the past 24 hours, you've probably at least heard of Funny Farm, a pretty sweet little game by Igor Naverniouk.

Looking around his site, i found on his UVA tools page that he says, and i quote:

ShyGypsy labs August 4, 2006 02:19 I'm playing around with some better ways of ranking people and problems. Here is a preview of a prototype. I have also discovered that I can easily write CGI scripts in C++. Perl is great, but I can get stuff done a hundred times faster in C++.
"I can get stuff done a hundred times faster in C++"? Did I miss something? If I recall correctly, comparatively it takes at least 5-6 lines more of code in C++ that in perl to write a simple "Hello world" program.

Example:

C++:

#include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; }

Perl:

#!/usr/bin/perl -w use strict; print "Hello world!\n";

or, even less:

C:\>perl -e "print 'hello world!'"

I'm not trying to dig up an old Jihad, and I normally would just search the site for responses on this, but what could possibly justify him saying that? It could very well be that he's more comfortable with C++ and can simply code quicker in C++, logically that's sound because he's got 2 C++ courses he teaches at UofToronto, but I just can't fathom this.

Another possiblity is he has many code libraries in C++, mainly algorithms and such, and maybe that puts C++ on a more level playing field with perl since it eliminates a lot of low end coding. But do libraries really making a "100 times faster" difference?

Please, correct me, downvote me, chastise me if I'm off base and haven't done my research, but I just can't possibly see how coding in C++ could possibly be any faster than coding in perl

Your wisdom is appreciated monks.

P.S> I just threw this in meditations, move as needed.

meh.

In reply to C++ vs. Perl mention on shygypsy.com by stonecolddevin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.