Jun
29
Rhino on Rails
June 29, 2007 |
Steve Yegge wrote a blog post about his work on porting the Rails framework to JavaScript (Rhino). It is definitely an interesting project and I would like to see it open-sourced. Here are a few interesting quotes from the text:
* On Jython
Jython seemed like the obvious choice at first, except that it hasn’t had much momentum since around 2001. It used to be arguably the best non-Java JVM language around; Jim Hugunin did an amazing job with it. Unfortunately it’s had almost no love in the past six years, and it’s now lagging the Python spec by several major versions (2.2 vs. soon-to-be 2.6).
* On Rhino
The Rhino code base reads almost like C code: it avoids allocation and does as much as possible with jump tables to avoid the overhead of virtual method lookups. It has two code paths: a bytecode interpreter that runs in a tight loop, and an optimizing Java bytecode compiler that turns many expensive-ish JavaScript property lookups into Java local or instance-variable lookups. It’s a pretty serious piece of software.
* On open-sourcing the framework
We’ve talked about open-sourcing our “Rhino on Rails”, but so far it’s been no more than idle chit-chat. For one thing, work on the framework plays second fiddle to work on the actual application, so it’s progressing slowly, mostly as 20% work. For another, we’re dependent on various other Google infrastructure components that are themselves in the process of being open-sourced, although I don’t know if any of them have been announced yet.
Comments
News
- November 13, 2007
Code samples for Chapter 10 demonstrating the Web Scripting Framework are available for download. Also, as this is the last chapter of the book you can download the archive containing code samples for all chapters from here. Now that I finally sorted out all these examples, it’s time to move on with new projects and resources related to the topic, so stay tuned.
- October 26, 2007
Code samples for Chapter 7 demonstrating Practical scripting in Java are available for download. Enjoy.
- October 24, 2007
I will be speaking on Scripting with balance at Irish Java Technology Conference in Dublin (IJTC) on November 9th, 2007. The full announcement could be found here
- October 12, 2007
Code samples for Chapter 6 demonstrating Bean Scripting Framework are available for download. Enjoy.
- October 5, 2007
Code samples for Chapter 5 demonstrating Groovy modules and advanced programming techniques are available for download. Enjoy.
- September 21, 2007
java.net has published an article titled Scripting with Balance in Design and Performance
- September 18, 2007
I will be speaking on Scripting in Java in Novi Sad on September 19th, 2007. The full announcement could be found here (in Serbian)
- September 5, 2007
Code samples for Chapter 4 demonstrating Groovy syntax and basic features are available for download. Enjoy.
- August 25, 2007
Code samples for Chapter 3 are available for download
- August 2, 2007
JavaWorld published the second excerpt from Chapter 1.
Community
- March 6, 2008
Jython revived
Jython was one of the first successful dynamic language projects on the JVM. The project faded in the later years because of the lack o ...
- February 19, 2008
News and links
It’s been an interesting period for “dynamic languages on JVM” technologies. Here’s a couple of news and interesting articles:
- ...
- January 2, 2008
Dealing with large code bases
There’s an interesting discussion in community these days on issues of dealing with large code bases and how dynamic languages can help Java projects in that manner. I summarized some of thes ...
- December 12, 2007
Groovy 1.5 released
Groovy 1.5 has been released. It’s practically 1.1 release, but due to volume of changes introduced by the release it has been re-branded. Some of the most important features of the new Groov ...
- October 17, 2007
Multi-Language VM
OpenJDK community has a new project, Multi-Language VM (or just mlvm). It is announced by John Rose, from Sun, on the ...
- September 28, 2007
Groovy meta-programming
Graeme Rocher explains new meta-programming API improvements added to Groovy 1.1.
... - September 26, 2007
Groovy 1.1 beta 3
Groovy 1.1 beta 3 has been released a few days ago, bringing emplacements like Java5 enums, new shortcut replacement for ternary operator, Groovy shell and Swing console emplacements and more. Full ...
- August 24, 2007
JRuby and Jython releases
It seems like today is dynamic JVM languages release day. First, JRuby 1.0.1 version is released and ...
- June 29, 2007
Rhino on Rails
Steve Yegge wrote a blog post about his work on porting the Rails framework to JavaScript (...
- June 12, 2007
JRuby 1.0 released
JRuby 1.0 has been released. Here are some notes made by Charles Nutter about futur ...

