21 Jun '12, 3pm

An oldie but a goodie: Jim Weirich’s Lisp 1.5 in Ruby

# Kernel Extensions to support Lisp class Object def lisp_string to_s end end class NilClass def lisp_string "nil" end end class Array # Convert an Array into an S-expression (i.e. linked list). # Subarrays are converted as well. def sexp result = nil reverse.each do |item| item = item.sexp if item.respond_to?(:sexp) result = cons(item, result) end result end end # The Basic Lisp Cons cell data structures. Cons cells consist of a # head and a tail. class Cons attr_reader :head, :tail def initialize(head, tail) @head, @tail = head, tail end def ==(other) return false unless other.class == Cons return true if self.object_id == other.object_id return car(self) == car(other) && cdr(self) == cdr(other) end # Convert the lisp expression to a string. def lisp_string e = self result = "(" while e if e.class != Cons result << ". " << e.lisp_string e = nil else result << car(e).lisp...

Full article: http://onestepback.org/index.cgi/Tech/Ruby/LispInRuby.red

Tweets

Learning Ruby and Rails:

everydayrails.com 18 Jun '12, 3am

I live in a town dominated by Python, PHP , and Java developers, so hiring someone who can come in and write Ruby code fro...

Ruby 程序设计语言官方网站:

ruby-lang.org 24 Jun '12, 2am

一直以来,Ruby 在中国都没有一个靠谱的社区,如今,Ruby China Group 出现了,Ruby China Group 是一个非营利组织,它旨在为中国的 Ruby 和 Rails 爱好者提供一个自由,开放的交流平台。 如果你: 爱 R...

Scout: A Ruby Powered Web Monitoring and Reporting Service:

Scout: A Ruby Powered Web Monitoring and Report...

rubyinside.com 19 Jun '12, 8pm

Disclaimer: Scout is a commercial service. I have received no compensation for mentioning this service and am posting abou...

“@rubygems: parse-ruby-client (0.1.0): A simple...

rubygems.org 22 Jun '12, 1am

parse-ruby-client 0.1.0 A simple Ruby client for the parse.com REST API install gem install parse-ruby-client Download Doc...

RubyForge: Ruby Linear Algebra Library: Project...

rubyforge.org 21 Jun '12, 11pm

linalg is a fast, LAPACK-based library for real and complex matrices. Current functionality includes: singular value decom...

Tutoriais para Ruby #14elw

ruby-br.org 18 Jun '12, 7pm

Página Inicial 1. O Básico Sobre este capítulo Ruby Interativo: primeiros passos Strings (texto) Nomes novos para coisas a...

Ubuntu 12.04 Ruby on Rails Development Environment

rubyflow.com 20 Jun '12, 4pm

I know I'm late to the party, but I just couldn't find a guide that documented a rails setup the way that I needed it to, ...

@martinkl Re: ruby 1.8.7, we've already "fixed"...

ruby-lang.org 18 Jun '12, 9pm

The situation is similar to the one found for Perl in 2003. In 1.8 series of Ruby, we use a deterministic hash function to...