# RubyJS 0.6 - pre-RubyConf version

**URL:** <https://www.ruby-forum.com/t/rubyjs-0-6-pre-rubyconf-version/118633>\
**Category:** Ruby\
**Created:** [October 29, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/rubyjs-0-6-pre-rubyconf-version/118633 "2007-10-29T17:05:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaeln](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b19c9b/32.png) [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Post date:** [October 29, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/rubyjs-0-6-pre-rubyconf-version/118633/1 "2007-10-29T17:05:48Z")

</div>

Hi all,

After 9 months, the second incarnation of RubyJS is out (a complete  
rewrite).  
RubyJS compiles Ruby to Javascript and tries to be as efficient as  
possible  
without sacrifying Ruby’s beauty.

This is a pre-release. I hope I can import some local code that lies  
here around  
till RubyConf.

A small example:

# hw.rb

require ‘rwt/DOM’

class HelloWorld  
def self.main  
out = DOM.getElementById(‘out’)  
DOM.setInnerText(out, ‘hello world’)  
end  
end

say hello

Compile it:

rubyjs\_gen --main HelloWorld hw.rb \> hw.js

And start index.html inside your browser.  
Oh, and don’t forget the optimization flags:

rubyjs\_gen --show-options

# What works?

- Most if not all Ruby constructs!
- Accessing/modifying DOM in your browser
- JSON

# What is missing?

- The port of Google Web Toolkit is not yet completed.
- Applications 😉
- A lot of methods in the core library

# DOWNLOAD

It’s available from:

[http://ntecs.de/hg-projects/rubyjs/](http://ntecs.de/hg-projects/rubyjs/)

Best use Mercurial ([www.selenic.com/mercurial](http://www.selenic.com/mercurial)) to check it out:

hg clone static-[http://ntecs.de/hg-projects/rubyjs/](http://ntecs.de/hg-projects/rubyjs/)

Have fun and see you at RubyConf!

Regards,

Michael

---

<div class="post-metadata">

**Author:** ![michaeln](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b19c9b/32.png) [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Post date:** [October 29, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/rubyjs-0-6-pre-rubyconf-version/118633/2 "2007-10-29T18:19:34Z")

</div>

Michael N. wrote:

> It’s available from:
> 
> [http://ntecs.de/hg-projects/rubyjs/](http://ntecs.de/hg-projects/rubyjs/)

Very cool!

> Best use Mercurial ([www.selenic.com/mercurial](http://www.selenic.com/mercurial)) to check it out:
> 
> hg clone static-[http://ntecs.de/hg-projects/rubyjs/](http://ntecs.de/hg-projects/rubyjs/)

Ah, Yet Another Mercurial User.

> Have fun and see you at RubyConf!

Looking forward to it.

–  
James B.

[www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
[www.risingtidesoftware.com](http://www.risingtidesoftware.com) - Wicked Cool Coding  
[www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
[www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys
