Javascript and Friends: Scripting Ruby with JavaScript for Fun and Profit 3.83 http://spkr8.com/t/3183

Description:

When it comes to creating a host environment on browser or server alike, there is no language quite like JavaScript. From its dead simple object model to its lack of a standard library, it’s obvious that it’s been designed from day one let some other language do the heavy lifting. Conventionally, this other language has been C or Java, but why mess with those when you can use a real heavy hitter like Ruby? Using the V8 JavaScript extension for Ruby we’ll use these two dynamic languages in concert to * Define a domain specific language with javascript that can be interpreted by both the browser and by your Ruby code on the server. * Implement a simulated browser environment in Ruby which can be used for headless testing of Javascript code. (Hint, this is perfect for continous integration servers) * Allow callers to extend your web service at runtime with eval-safe javascript functions implemented in Ruby The discussion framed by these examples will show why having a JavaScript interpreter in your Ruby runtime is a such a valuable tool, and why its usefulness will only grow in the future.

Comments on this Talk

Present John Woodell, 06 May 03:47 PM

Very interesting talk. With HTML5 is coming, we need better frameworks and conventions for doing agile development in the browser. I'd like to see JRuby+Rhino can do the same tricks you describe with MRI+V8.

Have an account? Sign in or register.

Leave a Comment

8 Ratings: 3.83

Delivery: 3.69

Content: 3.96

Last Five Ratings