From: Paul Battley Date: 2006-08-02T18:08:28+09:00 Subject: Re: [ANN] Replicant 0.2 (Ruby -> Javascript) On 01/08/06, Brian Palmer wrote: > What it is: Replicant is a Ruby library for automatically converting > methods on Ruby classes to Javascript classes, and serializing > instances of those classes from Ruby to Javascript using #to_json. > I've been developing it mostly in conjunction with some Rails > projects, but it works just fine outside of Rails, too, as long as > Prototype.js is available. > > Replicant is in a pre-alpha state, though I'm using it in a couple > production apps online already. I've been doing a bit of work on the something similar. Did you see this? http://po-ru.com/diary/convert-ruby-to-javascript/ http://po-ru.com/diary/thoughts-on-ruby-to-javascript-conversion/ That was a quick hack that pointed out some obvious shortcomings (the languages are similar, but not *that* similar), so I decided to take another tack and implement something close to Ruby's object model in JS, so that a wider range of idiomatic Ruby code will work: http://rb2js.rubyforge.org/ I'll take a closer look over your code later on. Perhaps we might be able to collaborate...? Regards, Paul. Paul.