This will throw an "local variable 'ctr' referenced before assignment" error when you try to invoke the function returned by make_counter. The following Perl just works:
sub make_counter {
my $ctr = shift;
return sub {
return ++$ctr;
};
}
Indepence Day has flaws--many, many, many flaws--but the whole virus-on-a-Mac is not one of them. [...] If you want to quibble, you could ask where he got the EvilAlienOS programmer's reference manual or the EvilAlienCPU's architecture description or how he managed to find an exploitable vulnerability in EvilAlienOS so quickly. But enough about the frickin' Mac, okay?
Whoa there! Settle down, capitan. Nobody was bashing your precious Mac. I'm sure the idea would have gotten a similar response if Goldblum was on a PC. It's just that, for whatever reason, people remember it as being a Mac.
n the spirit of C++, there should be a way to specify completely different functions for them of course, but generally bool operator!=(const X &x1, const X &x2) { return !(x1 == x2) }; Just like x x. Or we could go further and say that y >= x is the same as !(y x)
Perl lets you to do this. You just overload the <=> operator and it'll figure out what to do for all the others (==, !=, <, <=, >, >=). And, of course, you can have $a < $b mean something entirely different from $b >= $a, but that'd just be zany..
NetHack isn't that hard. [...] I haven't ascended yet. I've come close twice
Err, right..
On the nethack.alt.org server, the record for ascension streak is IIRC 23 straight ascensions, some with conducts. So although luck plays a part in all games, it's not as big as you think, and ascending with 95% certainty can be done, just as long as you keep paying attention.
How many people actually used the BIOS password feature?
My computer still has that BIOS password feature. I use it to deter my little brother from restarting the computer, since he won't be able to use it at all if he does.
When we get to 121, it'll require a restructuring of the Periodic Table (like what they have to do with the lanthanides and actinides (aka the two bars on the bottom)). Can't wait!:)
In about:config, change browser.tabs.closeButtons to:
0 for close button on the current tab only
1 for the new default: a close button on each tab
2 for no close buttons at all
3 for the old behavior: a close button on the far right in the tab bar (yay!)
For the first part, they're all object oriented, so Perl is (for the most part) out of the question as per languages to use.
I'll ignore the remark about Perl's OOP and go right to the heart of it. Object oriented programming is hardly a part of the TopCoder/Google Code Jam experience. Any language that has the capacity to understand strings and multi-dimensional lists (including C) could possibly be added to TopCoder. One of the biggest complaints against Perl's addition to TC is that it would make the challenge phase (where people look at and challenge eachother's solutions) more difficult. The four languages they use all have similar capabilities and syntax (or at least recognizably similar by a programmer of one of the other languages) -- this means you can still do well without being an expert in all the languages they currently support.
I'd definitely get back into competing in every SRM if TopCoder added Perl. But until then, well, C++ just isn't good enough for me any more.
Also, if you look at the sheer numbers of people these days that know VB.NET vs. the number of people that know Perl, the number of people who know.NET is significantly higher. Most college students are taught VB.NET as their first language.
I suspect you're grossly underestimating Perl's userbase (or perhaps I'm grossly underestimating VB.NET's userbase). VB.NET is only about four years old -- Perl is three times older, and was for a long time the de facto language of the web.
I was surprised to find that when I used apt-get upgrade a few hours ago, Firefox was upgraded to 1.5.0.5. This was before I even knew it was released. Kudos to whoever is managing Firefox for Ubuntu!
Sixth Question: What made you want to do voice acting as a profession? It must not be very glamorous if the only way a fan could recognize you is by your voice, why'd you choose it?
You know, it's like they treat [voice actors] like we're not actors. I went to the première of Space Jam at [Grauman's] Chinese Theatre--big première, red carpet, everything. Me and the voice people got invited to the little theatre; there's two of them there, the big Chinese theatre, and then there was a smaller one next to it. We weren't invited to the big place, and so my friend Bob Bergen, who does Porky Pig an awful lot, called them up and said, "Hey, what gives? We're featured in this movie." She said, "Oh you mean the party at the big Chinese theatre? Oh, that's for the actors." I'd like to find out what little cement-head said that.
So yeah, "it must not be very glamorous" is the understatement of the week.
While Python certainly looks prettier, it's not as expressive as Perl. Consider lexical closures, which Perl has had for over a decade.
def make_counter(initial): ctr = initial def nonclosure(): ctr = ctr + 1 return ctr return barThis will throw an "local variable 'ctr' referenced before assignment" error when you try to invoke the function returned by make_counter. The following Perl just works:
sub make_counter { my $ctr = shift; return sub { return ++$ctr; }; }NetHack, your day shall come!
How can an article about bionic eyes not have a single Tleilaxu joke?
News for nerds, pah.
For me, Read Dante's Inferno Again Day
Indepence Day has flaws--many, many, many flaws--but the whole virus-on-a-Mac is not one of them. [...] If you want to quibble, you could ask where he got the EvilAlienOS programmer's reference manual or the EvilAlienCPU's architecture description or how he managed to find an exploitable vulnerability in EvilAlienOS so quickly. But enough about the frickin' Mac, okay?
Whoa there! Settle down, capitan. Nobody was bashing your precious Mac. I'm sure the idea would have gotten a similar response if Goldblum was on a PC. It's just that, for whatever reason, people remember it as being a Mac.
n the spirit of C++, there should be a way to specify completely different functions for them of course, but generally bool operator!=(const X &x1, const X &x2) { return !(x1 == x2) }; Just like x x. Or we could go further and say that y >= x is the same as !(y x)
Perl lets you to do this. You just overload the <=> operator and it'll figure out what to do for all the others (==, !=, <, <=, >, >=). And, of course, you can have $a < $b mean something entirely different from $b >= $a, but that'd just be zany..WHY IN THE HELL would an ATHEIST care to ASCEND?
Because immortality is far preferable to nothingness?
NetHack isn't that hard. [...] I haven't ascended yet. I've come close twice
Err, right..
On the nethack.alt.org server, the record for ascension streak is IIRC 23 straight ascensions, some with conducts. So although luck plays a part in all games, it's not as big as you think, and ascending with 95% certainty can be done, just as long as you keep paying attention.
Marvin is really in a class of his own. http://alt.org/nethack/ascstreak.html lists ascension streaks. Note that it drops off very quickly.
--EidolosI tried this, on Earth, Air, and Fire, but all I got was "killed by kicking a wall"
Rumor is it's not possible in vanilla 3.4.3.
-- EidolosHow many people actually used the BIOS password feature?
My computer still has that BIOS password feature. I use it to deter my little brother from restarting the computer, since he won't be able to use it at all if he does.
When we get to 121, it'll require a restructuring of the Periodic Table (like what they have to do with the lanthanides and actinides (aka the two bars on the bottom)). Can't wait! :)
In about:config, change browser.tabs.closeButtons to:
0 for close button on the current tab only
1 for the new default: a close button on each tab
2 for no close buttons at all
3 for the old behavior: a close button on the far right in the tab bar (yay!)
We could use this "powered armor" to squash the Klendathu menace! And then totally ignore them for the movie!
Oops. Perl is nearly five times as old (it was first released in 1987), not three.
For the first part, they're all object oriented, so Perl is (for the most part) out of the question as per languages to use.
I'll ignore the remark about Perl's OOP and go right to the heart of it. Object oriented programming is hardly a part of the TopCoder/Google Code Jam experience. Any language that has the capacity to understand strings and multi-dimensional lists (including C) could possibly be added to TopCoder. One of the biggest complaints against Perl's addition to TC is that it would make the challenge phase (where people look at and challenge eachother's solutions) more difficult. The four languages they use all have similar capabilities and syntax (or at least recognizably similar by a programmer of one of the other languages) -- this means you can still do well without being an expert in all the languages they currently support.
I'd definitely get back into competing in every SRM if TopCoder added Perl. But until then, well, C++ just isn't good enough for me any more.
Also, if you look at the sheer numbers of people these days that know VB.NET vs. the number of people that know Perl, the number of people who know .NET is significantly higher. Most college students are taught VB.NET as their first language.
I suspect you're grossly underestimating Perl's userbase (or perhaps I'm grossly underestimating VB.NET's userbase). VB.NET is only about four years old -- Perl is three times older, and was for a long time the de facto language of the web.
I recommend console games in addition to PC games. I long for the past days of four-player free-for-all GoldenEye 64.
I hear that those damn Loonies have been hurtling down boulders every couple of minutes since 2076...
I was surprised to find that when I used apt-get upgrade a few hours ago, Firefox was upgraded to 1.5.0.5. This was before I even knew it was released. Kudos to whoever is managing Firefox for Ubuntu!
Derivatives of RedHat software get no support, but I bet they get nice letters from RedHat legal.
Perhaps the parent misses the point of the GPL?
You misspelled Jabberwocky. :/
Gmail can do this. Just set up a filter that has the words "$" and redirect those message straight to the can.
From Billy West's interview with The Onion:
So yeah, "it must not be very glamorous" is the understatement of the week.
Oh god, won't someone please think of the end users?
I'm still awaiting an Access port. Then we'll have a truly fantastic Linux database. Til then, I'll stick with my trusty flatfiles.
I just inject obscene amounts of melange into my system.