2008/12/13

Ideas on a better Ruby stack

This week end I found myself using Ubuntu installed via Wubi. I admit there are weird things (don't care about Linux is a desktop thingie or not) but it seems OK at the moment. Since I started mungling Ruby and Rails, always wanted a stable (hahah) stack for myself so let me share some ideas.

I've chosen JRuby. It is fast enough to work with and/or deploy to production, truly platform independent (needs Java only) and has a great community (SUN in the background of course but that just an other reason in the turn). I tried the MRI implementation (1.8 and 1.9) several times both on Linux and Windows and I found it, erm, just OK, nothing else. Rubinius is great but not a platform independent VM so I dropped it for myself.

The thing is I don't like Java. I mean the style. I'm sure it is great and powerful as a language but uncomfortable in a way I cannot stand. On the other hand, JVM is absolutely amazing. Thanks to SUN (hey its kinda business decision for sure, but who cares) now it is open for scripting languages like Python, Lisp, Scala and Ruby of course (a hell more!). Its even distributable folks!

I'll try some tiny embeddable database engines written in Java, for purity's sake of course :) No, platform independence is the keyword. What I bloody hate around frameworks and Vms is the platform shit. Yes, Windows IS a real platform to develop on even if you wanna play with Open Source stuff. I just admire people like Luis Lavena fighting for a better acceptance of Windows around Ruby. That guy writes better installer/builder than you, *nix boy. A bit of rant :)

First I'll try this H2 database engine that is supposed to be faster than Derby, HSQLDB and SQLite. In fact I'm full with this SQLite engine. Rails (baaad ORM dependent) and Merb (goood ORM independent) frameworks' base choice. I'm dropping it because I have to build it and/or the adapter as well. No thanks. Java wins over any platform issue. Or if you have a better solution, show me, I'll gladly accept.

Java (the JDK) plus JRuby plus H2. So far so good, its working. No worries.

1 comments:

szabi said...

Soon you will see the power of Java, the JVM is just the first step! Forget Ruby and join the dark side! Anyway, it's good to see that you have found a comfortable development environment (one that doesn't get in the way), this may end up as an interesting presentation on the ruby meetup :)