Want to stay on top? Ruby Weekly is a once-weekly e-mail newsletter covering the latest Ruby and Rails news.
     Feed Icon

Stone: Dead-Simple Ruby Data Persistence

By Peter Cooper / April 20, 2008

stone.png

Stone is a new Ruby library developed by Nick DeMonner that seems to have got a nice bit of buzz in the last week. It's a data persistence library that provides "plug and play data persistence for any application or framework," and it boasts speed and simplicity. Rather than use a database and an ORM like ActiveRecord, Stone takes care of everything in an abstract manner. Data is "persisted" to files within a directory underneath your app.

The official Stone homepage gives some interesting examples, including replacing ActiveRecord with Stone in a Rails application. It is surprisingly simple, but by its own admission Stone is "extremely immature." It certainly looks well developed though, but if you're already happy with SQLite 3 and ActiveRecord (a surprisingly proficient combination) there might not be any compelling reasons to switch just yet.

Comments

  1. Nick C says:

    The concept reminds of Prevayler in Java - persisting/marshalling object graphs to the HDD (and cached in memory). I seem to remember that project proving controversial back when it was released (2004?)...

  2. Anonymous Coward says:

    Nick's great work aside, can we all agree that "dead-simple", as a phrase, is overused and done, especially when it comes to anything Ruby?

    http://www.google.com/search?q=dead+simple+ruby

    I'm hoping the marketing and business school folks will adopt it so that developers will shun it forever.

  3. Garth says:

    Maybe 'Super-Easy' Ruby data Persistence instead ?

  4. Bob Aman says:

    Perhaps no compelling reason... unless, like me, you really hate ActiveSupport and by extension, ActiveRecord.

Other Posts to Enjoy

Twitter Mentions