It’s not often that Japanese Yukihiro “Matz” Matsumoto, the creator of the Ruby programming language, visits Europe, and his visits to Denmark are even less frequent. When I saw that Matz was coming to speak at the Ruby Fools conference in Copenhagen, was coming to my very own home town, I knew I couldn’t miss that opportunity.
Matz delivered his keynote presentation in the morning at the second and final day of the conference. When he entered the room, there was no hush of: Look, it’s the creator of Ruby. Whoah! That wasn’t because Matz isn’t man to respect, admire and perhaps even worship for his language design skills, but simply because Matz had already been around for the entire first day of conference, watching the talks with the rest of us, and willingly talking to everyone. By day two, we had gotten the message: Matz was one of us. A completely down to earth guy, extremely friendly, smiling and – make no mistake – very intelligent.
Matz started out by explaining that if he looked a bit tired, it was because he had spent too much time last night hacking away at Ruby. He then went on to say – in complete agreement with Dave Thomas’ keynote, by the way – that Ruby on Rails had changed the lifes of the people in the Ruby community a lot, that it had even changed Ruby. He went on to ask how many in crowd knew Ruby before Rails came along – only a few raised their hands – and who had got to know Ruby through Rails – many people raised their hands at this.
Matz underlined that he sees himself first and foremost as a language designer. He listed the many Ruby implementations being developed currently: YARV, JRuby, Rubinius and IronRuby, and said that this allowed him to focus on language issues rather than on implementation. But on the other hand he really liked to implement his language designs as well, so he had mixed feelings towards it all.
Following this, the Japanese language designer went through a historical walkthrough of programming languages, and how Ruby was – of course – at the top of chain of evolution, taking the best from Lisp, Smalltalk and Perl. He explained how he started the project of Ruby in early 1993. The regression in Japan meant that Matz – while not unemployed – didn’t have many assignments at work, so he secretly started to hack away at Ruby at the office.
The goal with Ruby was, and still is, to enjoy programming. Matz enjoyed designing and implementing Ruby, and we all enjoy coding in Ruby. He released the first version of Ruby by the end of 1995 – almost 3 years after he began his project. Ruby achieved enough success as an open source project to get Matz a job as a full open source software developer at a large Japanese company 1997, and in 1999 Matz released the first book on Ruby, with the obvious title “Ruby”. By this time the world really started to notice Ruby, and the Japanese book attempted to translate the book from Japanese to English, but since they were only used to translate the other way, the translation efforts failed miserably.
This was when they approached Dave Thomas, asking him to write an English Ruby book from scratch, and out of that came – in 2000 – “Programming Ruby”, or – as it is simply known as by friends – “Pickaxe”, named after the cover illustration. Since no other books on Ruby existed at the time, it was necessary to make it both a reference and a tutorial book. Matz had tried to do that himself, he explained, and was not very satisfied with the result, but Dave Thomas pulled it off!
Matz then asked: Why use Ruby? Well, we have Rails of course, no need to explain that, Matz said, but the two real reasons to use Ruby is productivity and joy. Productivity is emphasized more and more; the IT markets grow, but the budgets stay fixed and the schedules shrink! To accommodate this, we need our tools to allow higher productivity, and the programming language is one such tool. The language, however, also determines the way we think, and thus shapes the entire project, Matz said with a reference to the Sapir-Whorf hypothesis.
The second reason to use Ruby is joy. “Joy is the primary goal of Ruby”, Matz said. “I designed Ruby for myself to make me feel better and enjoy programming more. I want programmers all over the world to feel the same way.” You just got to love this guy! He also compared Ruby to Python, and said that one big difference is that Python seeks the one true way of doing things and wants everything to be organized, while Ruby people mostly care about how they feel about programming.
Matz went on to review the current status of Ruby. When looking at the current Ruby implementations, he admitted that JRuby was definitely faster than MRI (Matz’s Ruby Interpreter) and some times even faster than the current implementation of YARV (Yet Another Ruby VM, the “official” Ruby 1.9 VM). On the other hand he said that YARV was the fastest Ruby implementation on Earth, and that some benchmarks proved it to be 20 times faster than MRI! And, he added, it can get even faster.
When it comes to Ruby 1.9, Matz is busy clarifying the edges and corners of the language, and making the lives of Ruby implementors miserable by adding new features. He explained of few of the new features in Ruby 1.9. The first was enumerators: “Loop” methods such as each, map and find now returns enumerators. This has several benefits. For one thing, a method such as each_with_index would also be handy in other “loop” methods, i.e. it would be nice to have map_with_index and find_with_index. It would not, however, be very DRY to implement each of these methods seperately, so instead, the new feature of return an enumerator allows us to build up a chain of enumerators:
ary.map.with_index { |x, i| .. }
ary.find.with_index { |x, i| .. }
Both map and find returns enumerators, which support the with_index method amongst many others. This also allow us to use enumerators as external iterators, storing a the enumerators in variables and i.e. do this:
e1 = [1, 2, 3, 4].each
e2 = [10, 11, 4].each
loop {
p e1.next+e2.next
}
# prints 11, 13, 7
Notice how the e1 iterator has one more element than e2. The loop construct catches the exception that is thrown when next is called the fourth time on e2 and silently exits the loop.
Another very interesting addition in Ruby 1.9 is fibers. Matz explained fibers to be cooperative, light-weight threads that switches context explicitly. I wish I could explain this new concept in Ruby better, but I just haven’t really understood it yet. Hold no doubts, however, that fibers is an upcoming buzzword in the Ruby community!
He went to explain the huge efforts that has gone into full support for multilinguinization (M17N) in Ruby 1.9. Matz is a man with very strong opinions on Unicode, and he explained in detail how UTF-8, UTF-16 or UTF-32 was all far from being perfect. Encoding is a tradeoff between liability and performance, but they seem to have found a well-working extensible encoding model for Ruby 1.9. Matz didn’t go into details about that, because as he said: “Probably I talked too much about Unicode – it makes me angry every day.”
Matz finished off his keynote with a look into the future of Ruby. Unfortunately he was almost out of time by that point, so we were taken very fast through some slides some very exiting thoughts and future prospects for Ruby. I didn’t catch too many of them, but one thing I should mention is what Matz called method combination in his slides. It is a kind of aspect-oriented programming that allows pre and post hooks around a method, instead of using alias_method to achieve this end.
And then … Goruby?
Update: The slides from the keynote has been made available. They should allow us to take a closer at look at points about Ruby’s future.
Hello, I'm Casper Fabricius. I have developed for the web for 9 years, and have been enjoying Ruby on Rails for the past 4.
My experience covers communities, shopping solutions, multi-language sites, heavy back-end lifting and a wide selection of more traditional websites. I like to integrate Ruby with Java and .NET through JRuby and IronRuby when it makes sense. I am passionate about test- and behavior-driven development, but at the same time I am pragmatic and believe in getting things done.
I am based in Copenhagen, Denmark, but I take assignments from across the globe. Feel free to study my resumé, featured projects and - of course - to hire me.
buy paxil canada
buy viagra without a prescription
cheap levitra online
cheap discount soma
buy viagra pharmacy online
cheap discount levitra online
premarin
buy viagra now online
buy legal fda approved viagra
cheaper viagra levitra cyalis
buy medved viagra
discount viagra brand drug
discount viagra in the usa
buy viagra softtabs
buy viagra on line
buy cheap generic viagra
buy online viagra securely
buy viagra next day delivery
cheap online pill viagra
buy lasix
viagra canada prescription
viagra and cialis and
buy discount zoloft
cheap crestor online
buy buy cheap viagra
cheapest price for viagra
cheap pill viagra
buy sildenafil viagra
buy in online uk viagra
cheap cialis viagra
cheap drug retin viagra wellbutrin
order viagra licensed pharmacies online
buy viagra from brazil
cheapsest viagra online
cheap order prescription viagra
buy form generic viagra
buy viagra at safeway
cheap deal discount viagra viagra
cheapest viagra online in the uk
cheapest viagra uk
buy hgh now
buy crestor now
buy viagra in the philippines
buy generic online viagra
cheapest online viagra
order forms for buying viagra
cheapest generic silagra viagra
buy caverta
buy cheap cialis
buy now online viagra
buy cialis canada
buy viagra online 350
order prescription viagra
discount viagra sale
buy viagra from an online pharmacy
order generic viagra
cheap cheap viagra
cheap cheap herbal viagra viagra viagra
viagra by mail order
buy viagra low cost
order viagra usa
cialis 32
buy cheap soma
buy viagra cialis
cheapest viagra in uk cheap
buy online online pill viagra viagra
buy internet viagra
cheap online pharmacy viagra viagra
buy cheap discount levitra
cheap online purchase viagra
buy viagra onlines
buy real viagra pharmacy online
cheapest cialis
buy viagra and cilas usa
buy viagra online order
over the counter viagra in europe
cheap viagra online uk
viagra bullshit
buy viagra online 35008 buy
buy drug satellite tv viagra
viagra breathing
cheap generic india viagra
buy discount viagra online
cialis 1
buy crestor online
discount viagra cialis
buy viagra meds online
buy viagra ups
buy online viagra viagra
soma online
buy generic viagra online pharmacy online
buy viagra online without prescription
cheap viagra kamagra
cheap quality viagra
cheep viagra from indea
buy viagra inte
buy viagra online u
order viagra on line
buy pharmaceutical viagra
viagra and discovery
buy viagra levitra alternative lavitra
cheapest in uk viagra
buy herbal viagra
order viagra onlines
viagra buying online
buy viagra and overseas
buy cheap viagra on the net
cheapest brand viagra
cheap levitra online
buy hgh canada
buy cheap deal pill viagra
order viagra buying viagr
buy plavix
discount viagra generic
viagra buy viagra
buy viagra for cheap
buy viagra in england
buy deal herbal viagra viagra
cheap referrers total viagra
buy cheap cialis generic levitra viagra
order site viagra
cheapest viagra us pharmacy
buy viagra online australia
buy viagra for women
buy kamagra
discount viagra mastercard
cheap discount viagra
cheep generic viagra
buy isoptin
cheap viagra discount viagra buy viagra
buy cialis without prescription
cheap viagra uk
cheapest viagra world
discount viagra viagra
buy viagra in the uk
buy viagra per pill
discount viagra or cialis
cheap overnight viagra
buy viagra now
discount viagra drug
buy lipitor
order order viagra
buy viagra order viagra
discount viagra offers
buy p viagra
cheap kamagra uk viagra
cheapest viagra online plus zenegra
cheap viagra 25mg
buy viagra without prescription
buy in uk viagra
buy generic viagra pharmacy online
buy levitra viagra online
cheap molde ticket viagra
cheapest price viagra
cheapest viagra us licensed pharmacies
viagra and coupon
buy viagra viagra online
order viagra with mastercard
cheap no prescription viagra
cialis online
buy viagra online web meds
viagra buy uk
cheapest price for viagra and cialis
viagra and cialis cheap
generic soma
buy cheao cgeap kamagra uk viagra
buy levitra online viagra
buy prescription viagra without
buy viagra no prescription
buy cheapest online place viagra
buy viagra online online pharmacy
purchase levitra
buy levitra now
purchase levitra online
order levitra online
cheap viagra no presrciption 50mg
buy viagra where
buy online p viagra
buy online purchase viagra
buy viagra 100mg
cheapest generic viagra caverta veega
buy cheap viagra 32
buy online viagra in the uk
viagra by mail
purchase tramadol online
discount viagra prescription drug
buy cheap site viagra
buy viagra zenegra
buy softtabs viagra
over the counter viagra substitute
order viagra online consumer rx
cheap levitra viagra href foro forum
viagra buy it
buy cheap crestor
buy viagra or cilas
order mexican viagra
buy now viagra
buy crestor
buy viagra australia
cheap mexico viagra
buy viagra online india
order viagra online a href
cheap viagra canada
cheapest generic viagra and cialis
buy viagra online no prescription
cialis 20mg
allegra d
cheap deal pill pill viagra
buy viagra online now buy viagra
viagra buy now pay later
buy lexapro
buy viagra alternative
cheap phizer viagra
viagra buy in uk online
order crestor
cheap drug online prescription viagra
generic zoloft
imitrex
buy deal deal price viagra
buy viagra in uk
viagra and deafness
buy viagra cheap through online sales
cheap prescription viagra without
cheap viagra in uk
buy viagra 32
cheap testosterone viagra href foro
buy keyword viagra
order zoloft online
cheap generic viagra substitutes
buy discount soma
buy viagra contact us page
buy canada viagra
buy viagra in mexico
buy australian viagra
cheapest line viagra
order discount viagra
cheap pharmaceutical viagra
order 50mg viagra
viagra buy contest
buy levitra
buy viagra online discount
tramadol cod
cheapest generic viagra and cialis pills
buy viagra online alternative viagra
order crestor online
buy viagra over the counter
buy dot phentermine viagra
buy deal viagra
cheap online generic viagra
buy online sale viagra
buy viagra cheap fed ex
buy avandia
buy glucophage
buy viagra in spain
cheapest prices on generic viagra
buy non prescription generic viagra paypal
zoloft online
cheap meltabs viagra
buy cheap discount lexapro
order viagra softtabs
buy viagra buy cheap viagra index
buy cipro
cheap genric viagra online
generic levitra
buy viagra toronto
cheaper viagra
buy depakote
buy free viagra viagra
buy cheap uk viagra
viagra buy general
cheap viagra cialis
cheap discount soma online
cheap generic viagra from usa
purchase crestor online
buy cheap discount pill viagra viagra
seroquel
cheapest viagra on line
buy viagra safeway pharmacy
buy cheap viagra online uk
cheap soft tab viagra
order status viagra
cheap testosterone viagra href foro forum
cheap drugs viagra cialas
buy now soma
buy crestor
cheap discount cialis
order pfizer viagra with mastercard
cheap viagra credit
cheapest generic substitute viagra
viagra buy australia
cheap viagra online order viagra now
buy viagra in bangkok
buy viagra over the counter us
buy cheap viagra online now uk
buy cheap purchase uk viagra
cheapest viagra and regalis
cheapest generic viagra 99 cents
buy cailis viagra singapore
cheapest viagra prices uk
cheap crestor
purchase crestor
order viagra prescription
viagra and flomax
buy followup post viagra
buy generic viagra online
buy online online viagra viagra
viagra buy
purchase paxil online
order viagra now
cheap viagra
buy carisoprodol no prescription
purchase nexium online
order viagra online in wisconsin
buy in spain viagra
cheap viagra index
over the counter viagra alternative
buy sublingual viagra on the internet
buy imitrex
order viagra overnight shipping
cheap viagra online prescription
buy cheap p viagra
buy viagra with paypal
viagra canada price
buy viagra line
cheap cheap viagra viagra
buy viagra in london
viagra by money order
discount viagra overseas
viagra by phone
buy viagra in toronto
buy cheap levitra
cheapest place to buy viagra online
check generic order pay viagra
buy uk viagra
cheap viagra from pfizer
buy online pill viagra
buy generic viagra si br
buy pill price price viagra
buy generic viagra usa
cheap gerneric viagra
buy cheap online prescription viagra
cheaper viagra levitra apcalis
buy cheap viagra online here
buy viagra phentermine online pharmacy
buy discount price sale viagra viagra
buy discount crestor
buy viagra online cheap
viagra buy do nu
buy viagra by pill
over the counter viagra
buy cheap viagra online now
buy evista
cheap herbal sale viagra viagra
buy cheap lexapro
buy viagra online 35008 buy viagra
buy viagra without prescription pharmacy online
lexapro side effects
buy cheap free online viagra viagra
buy cheapest viagra
cheap discount levitra
cipro 20
cheap viagra fast shipping
relafen
buy online prescription viagra without
buy can reply viagra
buy site viagra
cheap deal viagra
buy online order viagra
cheapest uk supplier viagra
buy viagra in amsterdam
cheapest viagra in uk che
buy cheap sale viagra
order viagra online no rx prescription
buy soma
discount viagra
buy diet viagra online
buy neurontin
buy viagra new york
buy now hgh
cheap discount crestor online
buy online viagra viagra viagra
cheap paxil online
buy levitra canada
buy prescription viagra
discount viagra perscription drug
cheap herbal viagra viagra viagra
buy cheap online uk viagra
buy viagra in united kingdom
buy cheap viagra viagra
buy coumadin
viagra and cialas
cheapest viagra on the internet
cheap discount crestor
cheapest generic viagra sent overnight
buy viagra online get prescription
buy locally viagra
viagra by mail catalog
cheapest viagra overnight