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.
In reply to C++ vs. Perl mention on shygypsy.com by stonecolddevin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |