Rethink: Announcing RubyFringe. unspace is running it’s own ruby conference. “Deep nerd tech with punk rock spirit.” i shall definitely be in attendance.

Rubiverse::Podcast.new(”Zed Shaw on Leaving Ruby”). tech communities are way too self consumed.

Nimble Method: Guerrilla’s Guide to Optimizing Rails Applications. in case you really care about rails perf.

Nimble Method: Garbage Collection is Why Ruby on Rails is Slow: Patches to Improve Performance 5x. for some types of ActiveRecord methods. hopefully this will get into core soon enough.

Thin - yet another web server. takes mongrel parser, event machine, and rack to make yet another fast ruby webserver. via paul.

merb + datamapper + noob: quick start. i should give this a whirl.

the mod_ruby debate

So the other week Zed Shaw wrote a post on his blog calling rails a ghetto. His post has some very valid points but most of that gets lost in the vitriol of one very angry man. Then Dreamhost, a major discount shared hosting company, put up a post somewhat akin to one of Zed’s complaints saying rails is a pain to deploy and should have an equivalent to mod_php such that deployment is just a matter of moving files. This is why wordpress and vbulletin (written in php) are the default blog and message board apps. Installation is just a matter of copying some files onto a shared hosting webspace. DHH, the inventor of rails, then made a post saying that the reason such a thing doesn’t exist is that the most of the people working on rails don’t have a need for it because they don’t use shared hosting environments. As I agree with the “scratch your own itch” philosophy of software development, I think this makes sense. People who use shared hosting are probably best suited to develop a rails solution that works in a shared hosting environment.

That said, I actually am a rails developer but I still use wordpress for my blog because I’ve yet to see a reason to pay slicehost $240/year for a virt that can run a rails-based blogging engine (like Typo, Mephisto, or SimpleLog) when my $50/year shared host running wordpress works just fine. But here’s the thing: if you’re an actual developer who has any familiarity with *nix (and not a webdev hobbyist), setting up rails on a shared host really isn’t that hard. Sure you can make it complicated if you’re trying to setup the latest and greatest bleeding edge stack, but something that “just works” isn’t very hard to setup. Hell, slicehost has tutorials for 5 OS variants which are only a couple of command lines. On top of that, let’s say that I finally did implement one of the 10 web-app ideas I’ve been kicking around for far too long. I’d surely do it in rails (or merb) and the time I would spend on it would easily outstrip the $190/year I could save with shared hosting. Even at minimum wage I would only have to work 30 hours to make out the price difference.

On the topic, a post came up on Ruby Inside asking why a viable mod_ruby doesn’t exist. Though the post doesn’t add much to the debate, the comments are actually quite interesting. Here’s the ones worth looking at:

  • #13: topfunky mentions how rack might help as an alternative to mod_ruby
  • #25: why ruby’s threading issues cause havoc for any mod_ruby, mod_mongrel, or tomcat like solution
  • #50: links on how django does it with mod_python
  • #56: Dr. Nic points out that deprec makes slicehost setup a breeze (which gets argued later in the thread)
  • #65: more reasons why mod_ruby won’t work because of threads, an argument for a better fcgi solution, and why hosting is moving away from shared hosting
  • #72: how ironruby (microsoft’s dlr version of ruby) could make IIS the easiest rails install
  • #99: Ezra mentions how the Rubinius Ruby VM currently supports “multiple instances of it’s VM within one process, each VM on it’s own native thread. [...] Each VM has it’s own heap and so each VM could load different apps that wouldn’t interfere with each other.” and they have plans for a “mod_rubinius for apache that takes full advantage of this feature.”

RubyGems 1.0.0 Released. and ‘require_gem’ is no longer supported.

Ruby Web-Services with Facebook’s Thrift - igvita.com. intro to using thrift in ruby. looks nicer than soap or corba. though that’s not saying much.

DataMapper is an ORM written in Ruby which is fast, thread-safe and feature rich.. some interesting ideas in there. via ram.

Gems On Rails. get your ruby gems into your rails vendor directory for easier deployments.

RDDB: RESTful Ruby Document-Oriented Database. pure Ruby version of CouchDB and it can use S3 as it’s datastore (latencies must be nuts but whatever).

eigenclass - Changes in Ruby 1.9. a detailed list of changes currently pending in ruby 1.9.

Long running tasks in Rails: Backgroundrb - Warpspire. setting up scheduled backgroundrb tasks and integrating with rails events.

Fun With the Y Combinator in Ruby : Nex3. Nathan is easily the smartest 17 year old I’ve ever met.

Getting Started with SOAP4R. a good intro for ruby’s standard soap library. also, don’t use soap unless you absolutely have to.

Scaling Twitter: Making Twitter 10000 Percent Faster. interesting topic, terrible speaker. via paul.

Rubular: a Ruby regular expression editor. for all your regex double-checking needs.

YouTube - Ruby on Rails vs .NET Commercial. “let me tell you about free. i saw this post on craigslist for a ‘free’ ipod…”

Rails Plugin: Custom Benchmarks. also handy.