I have already looked in different corners of the Internet and found a
javascript.toRuby converter [1].
why said both language are pretty similar [2].
So.. do you perhaps know if there is a ruby to javascript converter
out there ?
If you want to know why I need this, well... I'm doing a lot of stuff
that's duplicated under ruby and javascript. DRY, you know.. :-p
JSON is nice for that, but it isn't enough since I also need to
replicate methods.
"zimba" <zimba.tm@gmail.com> wrote in message
news:4344221D.5010001@gmail.com...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello ruby-talk,
I have already looked in different corners of the Internet and found a
javascript.toRuby converter [1].
why said both language are pretty similar [2].
So.. do you perhaps know if there is a ruby to javascript converter
out there ?
If you want to know why I need this, well... I'm doing a lot of stuff
that's duplicated under ruby and javascript. DRY, you know.. :-p
JSON is nice for that, but it isn't enough since I also need to
replicate methods.
Something like this could be really useful. You'd need to have at least some
parse-tree representation of the Ruby code. http://rubyforge.org/projects/parsetree/
Smells like a not-small project, depending on how much Ruby you want to include. Modules and mixins? You won't be able to use existing JS objects with .prototype chains in a simple 1-1 relationship for your runtime ruby instances, but instead parse ruby code and manually traverse arrays of hierarchies.
···
On Oct 5, 2005, at 10:21 PM, itsme213 wrote:
So.. do you perhaps know if there is a ruby to javascript converter
out there ?
Something like this could be really useful. You'd need to have at least some
parse-tree representation of the Ruby code. http://rubyforge.org/projects/parsetree/