I recently read a blog post by Alex Miller about Clojure multi-methods.
It described and answered a question his friend had asked him, as well as discussing some related problems. I'm going to showcase the different options Perl 6 provides for solving these same problems. Here's the initial question:Is it possible to write a multimethod that has defmethods which handle ranges of values? For example, say that a person has an age. Can I write a multimethod that accepts a person as a parameter and returns "child" if age < 16, "adult" if 16 <= age < 66 and "senior" if age >= 66?
As in Clojure, the answer is "Sure." In keeping with TIMTOWDI, Perl 6 provides several ways to do this.
This post does a rather good job of covering some of the new features in Perl 6 in a very readable way.
XML is like violence - if it doesn’t solve your problems, you are not using enough of it.
This tagline amuses the heck out of me. And sounds true in a great many ways. (Haven't used Nokogiri, but apparently it is the best thing since sliced bread for parsing XML in Ruby...)
This is how the newest firmware update is described on the official PlayStation blog: "The next system software update for the PlayStation 3 (PS3) system will be released on April 1, 2010 (JST), and will disable the 'Install Other OS' feature that was available on the PS3 systems prior to the current slimmer models, launched in September 2009," a Sony rep wrote. "This feature enabled users to install an operating system, but due to security concerns, Sony Computer Entertainment will remove the functionality through the 3.21 system software update.
"In addition, disabling the 'Other OS' feature will help ensure that PS3 owners will continue to have access to the broad range of gaming and entertainment content from SCE and its content partners on a more secure system."
It's pointed out that this update is strictly voluntary, although if you don't download the new firmware you won't be able to connect to the PlayStation Network, play any games online, play any games or Blu-ray movies that "require" the new firmware, play any files kept on a media server, or download any future updates. To put it simply, if you don't grab the update, the system will become useless to you as a gaming or media machine.
Now, I never used the feature. But I don't like them removing it. Next thing I know, they'll be removing support for the backwards compatibility that's built into my system because it's not there in the newer units and perhaps there's some "security" reason.
Update: When first reading this, I didn't realize that the release date was April 1st. It is possible that this is a rather early april fool's joke. We'll see. It is possible that Sony has a sense of humor.
I just discovered that I can do 'aptitude install gnome-shell' and then just run 'gnome-shell -r', and I can run the Gnome Shell now. We'll see if it turns out to be stable, but so far, it has completely fixed most of the UI things that bother me about Gnome. (I have been really hating the panel lately, too.)
So, liking the candy so far, we'll see if it actually is as stable as they claim. ("Stable enough for everyday use...")
It's too bad that working for HP doesn't give me the opportunity to play with neat toys like this. Yes, I know it has some issues with the form factor (the display doesn't swivel around to make the thing a convertable tablet?), but it would be lots of fun to play with. And of course, they're not releasing it in the US, which tends to be the way that HP goes with non-Microsoft powered devices. This HP-MS buddy buddy thing is kind of annoying at times.
I'm sure you've heard the news: Moblin and maemo are merging! We are taking the best pieces from these two open source projects and are creating the MeeGo software platform. Both teams have worked for a long time to support the needs of the mobile user experience - and MeeGo will make this even better. We want it to be fun, focused, flexible, technically challenging and ultimately, something that can change the world.
Now this is an interesting development. With both Nokia and Intel behind it, this might actually be able to compete with Android.