Red gets and update to version 4
Red, the Ruby to Javascript syntax transliterator just got updated to version 4.0 and is now a full Ruby runtime for the browser. It runs Ruby code through a compiler and turns it into javascript that runs on top of a native port of the Ruby core classes. Give it a try!
Comments
Sounds good, but can we have more documentation, please? :) Example code, specs…
docs, although I agree they should be better advertised.
oh, and also some rdocs: http://red-js.rubyforge.org/red/rdoc/
tests/specs are tough for us to do. We can’t use RSpec because the runtime isn’t Ruby, it’s Javascript. Speccing the Red gem would really just be speccing ParseTree.
We can’t use JSSpec because native javascript equality is different than equality in Red (i.e. Red uses Ruby’s concept of equality, not JS’s).
We’ve been using a tiny testing library internally, but it’s fairly brittle. We’re about 90% done with a first stab at a new speccing library specifically for Ruby that turns into Javascript for use in our projects and other projects that use Red.
One of drawbacks of doing something new is the total lack of supporting tools. We’ve needed to bootstrap the entire process ourselves which is fun, but annoyingly time consuming.
Post a comment