John Lam 1997 — 2026

OSCON Day 3 and a Better Ruby IDE

Today was a long, but tremendously fun day at OSCON.

I did my RubyCLR talk at OSCON today. It was a fun talk. While all of the talks at OSCON are only 45 minutes long, I was able to squeeze nearly everything that I wanted to talk about into the session. I was also able to finally show off the thing that I’ve been working on: a better IDE for Ruby:

This is an interactive Ruby session a’la irb, but with the beauty of the Calibri and Consolas fonts that were rendered using this WPF application. The IDE is all black, and full screen. No title bar, no status bar, no scroll bars. What you see here is exactly what you get.

I have a crude version of IntelliSense working, syntax coloring of code that you have added, and the ability to retrieve online docs by typing in a this:

/recipe 2.7

This pulled out Recipe 2.7 from Lucas Carlson’s most excellent Ruby Cookbook and displayed it inline with the rest of the code.

The idea here is to bring the online help directly into your coding environment without forcing a context switch into an overlapping window.

I have experimental integration with the MSDN Documentation Web Service as well. All you need to type is:

/docs System.IO.File

All in < 300 lines of Ruby code. Not bad, huh?

Jim Hugunin of IronPython fame was in my talk, and we had a fun chat afterwards about the difficulties in getting dynamic languages to interop with the statically typed languages on the CLR. While we were chatting, Guido van Rossum came up to chat with Jim, and it was an honor to be introduced to one of the really great innovators in the open source space.

That’s one of the fun things about being at OSCON – a lot of the folks who created the technologies were present and interacting under the umbrella of OSCON. These folks would probably never all be under the same roof without something like OSCON to bring them all together. And that’s a really good thing.

In the evening, the Ruby folk organized FOSCON, and I had a chance to hang out with Obie Fernandez, my new arch nemesis Luke Kanies, Ryan Davis, Eric Hodel, and Lucas Carlson.

Lucas gave me some excellent ideas about how to make my new IDE idea suck less, and showed me some really sweet code that lets you do cross-domain AJAX calls. I know that Danny Thorpe is working on stuff in the same area. I think that client-side mash-ups will be one of the next big things to happen in the web world.

At the end of the evening, I found myself at a Sun Microsystems party (and I have the t-shirt to prove it!) Met lots of new people, and had a great time.

I have lots more things to blog about, but I’d better call it a night.

11 archived reader comments

Sam Smoot (2006-07-27)

That IDE looks really nice! Can’t wait to give it a spin when you release it.

Cream/vim finally got tabs, so I’m back on that for now, but the tab management and close tab/file activities are a little wonky.

I don’t know what you’re using for syntax highlighting and formatting, but if I could suggest a benchmark of things I personally look for: Three things vim gets right that a lot of Ruby/Rails editors don’t seem to is:

  • Syntax highlighting inside of string interpolation areas. Not because you need the syntax highlighting so much, as that it makes it really easy to pick out those areas just scanning your eyes over a file
  • Proper HEREDOC formatting, highlighting, indenting. Lots of editors want to try to auto-format HEREDOC content, which is annoying, or they don’t detect a HEREDOC until you close it, or the don’t detect it (like SCiTE), if you don’t add/remove a newline on the line before it. It’s nice when it just works
  • case/when/end block formatting. Lots of editors just get completely lots in case statements for some reason

Rob (2006-07-27)

Have you seen what the Steel guys are doing with embedding a ruby IDE in VS2005?

When do we get to play with yours?

Mark (2006-07-27)

Awesome. That’s really great.

Brian Eng (2006-07-27)

John, this is amazing. Looking forward to it being released into the wild.

Kyle Heon (2006-07-28)

Yeah, when do we get to play with it? Sounds really cool.

Sam MacCutchan (2006-07-28)

John, you need to come out to another TRUG meeting and demo this for us! :)

jared (2006-08-02)

Wow.

Just remember: release early, release often! ;-)

Vasudev Ram (2006-08-12)

Yes, that IDE does look very good. Hoping to be able to try it out soon …

Just a suggestion (you may already have or be working on such features): you might want to check out the IDE features in PyCrust / PyShell etc., for possible implementation of similar ones in your IDE.

Vasudev http://www.dancingbison.com

Eric Promislow (2006-08-15)

Looks cool, John. Especially the integration with the online doc repositories.

Sam, I agree with you so much on your three points that I made sure all three made it into Komodo. In fact, proper syntax-highlighting of interpolated expressions in strings came out of a suggestion John made.

One thing I like to see in heredoc processing is that the editor temporarily sets the left margin to 0. Then when the heredoc target is entered, indentation snaps back to the value it had at the line before the heredoc. I’ve always felt a feature like the ‘-’ before the target name is a concession to the way heredoc-unaware editors work, and not related to the actual meaning of the program you’re trying to write.

This feature made it into ActiveState’s belated Visual Perl integration in Visual Studio .Net (as well as a similar adjustment for the contents of text nodes in Visual XSLT), but not in Komodo. When you request that an editor do no auto-indenting on heredocs, could you elaborate? When we’re writing an editor, all handling of a newline sequence is in effect an auto-indent decision, since we have to do something.

John, thanks for lending the space to talk about the product I work on.

Will (2006-10-07)

When will you release this? It looks like a nice IDE for Ruby and I would definitely use something like this.

John Lam (2006-10-07)

The code is checked into subversion. This is just a proof of concept though, and there are currently problems running it on computers that don’t have the Ruby source code installed and on the path (I rely on part of irb to do my Intellisense parsing).