Virtual Surreality

It's too real to be true

Browsing Posts tagged ruby

A little “remember me later” for conditionally deploying a Rails 3 app running on Ruby 1.9 on Heroku. $ruby_version = `ruby –version`.split[1].to_f source :rubygems source ‘http://gems.github.com’ gem ‘rails’, ‘~> 3.0.0′ gem ‘bson_ext’ gem ‘decent_exposure’ gem ‘haml’ gem ‘mongoid’ group :development, :test do if $ruby_version < 1.9 gem ‘ruby-debug’ else gem ‘ruby-debug-base19′, “0.11.24″ gem ‘ruby-debug19′, “0.11.6″ [...]

WindyCityDB – great conference! I did a lightning talk on squealer, and here is the PDF of the slides (1.7MB) squealer Lightning Talk slides

Roy Singham’s gonna owe me a drink.

Object/Relational Mappings (ORM’s) are in the wrong place in the architecture.

An application should have minimal impedance mismatch with the persistence of its own data. External or ancillary systems should bear the cost of mapping between paradigms. If you want to access application data in a relational way for reports, do the mapping for the report.

Squealer is a simple, declarative language where the mapping from the tree structure of MongoDB to the tuple space in mySQL can be scripted.

If you want to develop Ruby applications that use the services in the Microsoft® .NET Services cloud, then this SDK is for you: http://www.dotnetservicesruby.com/

Charles Nutter has just written up a nice summary of the things in Thomas Enebo‘s announcement of RC2 of JRuby 1.1 He talks in general about the astoundingly improved performance characteristics, particularly when compared to the Ruby 1.8.6 and 1.9 native interpreters, as well as the better use of JVM resources. Let alone the 260 [...]

I suppose we Aussies might give up too easily, Ola Antonio Cangiano let everyone else who isn’t on the list know the disappointing news from earlier this afternoon.

Language ninja, Ola Bini made a remark that Ruby was strongly-typed. Without confusing “strong” with “static”, this still made me pause. I knew it was type-safe. I knew it was dynamically-typed. I knew it used Duck typing. I didn’t think about it in terms of strong types. I suppose arithmetic exceptions and array-bounds checking make [...]

Simplify constructor protection in Ruby. Protect new in Ruby.

Although they have a lame Rugby League team, those Queenslanders are a clever lot… We are pleased to announce the preliminary Beta release of the Gardens Point Ruby.NET compiler. Note: this is not just a Ruby/.NET bridge, nor a Ruby Interpreter implemented on .NET, but a true .NET compiler. The compiler can be used to [...]