Why are dynamic languages on the CLR (and the JVM) such a hot topic these days? Jon Udell wrote a very insightful article on this very issue called Why argue about dynamic versus static languages when you can use both?.
With yesterday’s release of IronPython, the story of dynamically-typed programming languages comes more clearly into focus. A core virtue of such languages is that they enable individuals or small teams to work in a rapid and exploratory way. A core virtue of statically-typed languages is that they enable larger teams to work in a declarative way that’s friendlier to large-scale collaboration. Much virtual ink has been spilled debating the pros and cons of these two approaches, but why argue if you can have the best of both worlds?
If you have a VM that can run code written in dynamically typed and statically typed languages, you can focus on using the best tool for the job. Right now if you’re writing a Ruby application, you can write parts of it using a strong, dynamically typed language (Ruby) or a weak, statically typed language (C). If you’re using RubyCLR/IronRuby/Ruby.NET you now have the additional choice of a strong, statically typed language (C# / VB / F#).
You can and should write different parts of your application using the most suitable technology. Things get even better if your entire application can run inside the same virtual machine, since you can leverage the platform benefits that come ‘for free’ with the VM: tools, debuggers, performance, and security.
I for one believe that this is the way we’ll be writing our applications in the near future. And I’m doing everything that I can to make this happen for Ruby and the CLR as quickly as possible.

6 archived reader comments
Dr Nic (2006-09-07)
Say, like Smalltalk in the 70s :)
John Lam (2006-09-07)
I’m not up on my Smalltalk history - did folks use Smalltalk VMs to run statically typed languages as well?
schuur (2006-09-08)
I think you’re right; by mixing dynamic and static languages applications can evolve much easier.
Things would be even better when some good software distribution mechanism would be in place. Think ruby gems or apt-get. Using external libraries in .NET nowadays is a bit of a nuissance.
One of the strengths of Ruby is that you can easily mix it with C. This is not only because there’s a nice and clear Ruby to C interface; but also because in *nix environments compilation of C code is much better standardized than on win32. I would love to see this happen on Windows, but I have hard time figuring out how.
Thibaut Barrère (2006-09-08)
I wholeheartly agree! It’s just been a couple of months since I’ve been pointed out to RubyCLR while asking ‘how could I build a dotnet UI on top of Ruby ?’. Since then I’ve also discovered JRuby and IronPython, and it became quite clear to me that the future will be a mixture of all these (things like: creating a ruby testing DSL for non technical persons writing functional specs, integration of RSpec with RubyCLR, use of dotnet or swt UI, use of a Rails front-end for a j2ee/.net back-end, etc etc).
BTW: thanks John for making me discover Parallels. It just rocks!
John Lam (2006-09-08)
It would be great if MSFT would just ship a C++ compiler with Windows itself. Maybe things will get better since they now ship .NET with Vista. But time will tell …
I think that getting some kind of packaging system into Windows would also be a great improvement - especially in the non-professional programmer space. There are definitely interesting things going on at MSFT there - John Montgomery’s doing some cool things in his group.
schuur (2006-09-09)
Oh yeah indeed! It’s small things that make miracles. Just knowing you can rely on a C++ compiler in a standard location on your Windows box is one of them. Can’t begin to grasp the amount of time put into porting, building, packaging, configuring all those win32 versions of (open source) software.
I’m curious about the things going on in the non-professional area (the express editions of MSFT devtools, right?). If they do come up with some kind of packaging system for libraries and frameworks, why not promote it to the professional arena? I mean, “enterprise archictect visual studio templates” are quite laughable.
I walk around shops with 3-10 developers who invariably mess up their programming environments, and lose time figuring out what went wrong. I just recently ‘converted’ one group to check out ruby (internal project), and everyone (including me) was amazed at how smooth the whole thing went. After all, typing ‘gem install’ doesn’t need lots of explaining.