InfoQ

News

Ruby Implementations Roundup: Ruby Spec, New Design Meetings, Rubinius uses C++

Posted by Werner Schuster on Apr 29, 2008 10:46 AM

Community
Ruby
Topics
Technology,
Language,
Runtimes,
Dynamic Languages
Tags
Google Summer of Code,
RubySpec,
Rubinius,
JRuby,
Ruby1.9,
IronRuby
With Ruby 1.8.x, Ruby 1.9.x, Rubinius, JRuby, IronRuby and other Ruby implementations, a lot of developers are working on Ruby runtimes. To coordinate compatibility and the future of the Ruby platform, Ruby design meetings have been set up.

The first design meeting took place 21st April (see the IRC log for the first Ruby design meeting). The topics discussed included: The next design meeting in scheduled for 30th April - see the Ruby Design Wiki for the agenda and the details for the next Ruby design meeting.

The work on a Ruby specification is also the topic of two Ruby Google Summoer of Code (GSoC) 2008 projects: A project that puts great emphasis on a RubySpec is the Rubinius project, whose developers spend a great amount of time writing executable specifications for Ruby. A recent development in Rubinius was Evan Phoenix' port of the core VM ('shotgun') from C to C++. As a reminder, while the aim of Rubinius is to write a Ruby implementation in (mostly) Ruby, the core VM was written in C - and now C++. Despite this C++ VM, Evan Phoenix explains why the Rubinius team sticks with the Ruby in Ruby motto:
Rubinius today has around 150 people who have received commit rights. The vast, vast majority of their work has been in the kernel, because this is the largest part of the whole system. And probably 95% of that work has been writing Ruby code. This means that for pretty much all contributers, helping with Rubinius means writing Ruby code. And thus to them, it is Ruby in Ruby.

Brian Ford, also of the Rubinius project, provides some more information:
In the new C++ VM (which is not yet complete but substantially implemented), we have 12,619 lines of C++, and in our kernel directory, we have 23,882 lines of, what now, oh, right Ruby code.
 [..]
The C VM (named shotgun) was not our last word. Nor is the next generation C++ VM. They are both pragmatic steps toward a higher goal. And, let’s be very clear. We have not recently implemented a bunch of core methods in C. I’ve done two major pieces of rework recently that introduced a number of primitives (chunks of C code that access the VM directly). One was LookupTable, which was written in C because it is used heavily in the VM. However, it is exposed to Ruby code as well because, oh yes, we write a ton of stuff in Ruby, like stuff related to method and constant lookup. LookupTable acts a lot like a Hash, but separating it from Hash actually made Hash more clear and enabled writing even more of Hash in Ruby.
Note: Both Evan's and Brian's blog posts were written in reply to a post by JRuby's Charles' Nutter, in which he takes issue with Rubinius' "Ruby in Ruby" motto.

No comments

Reply

Exclusive Content

Tapestry for Nonbelievers

A new article by I. Drobiazko and R. Zubairov introduces v. 5 of the Apache Tapestry component-oriented web framework. The tutorial shows how to create a component and covers IoC in Tapestry and Ajax.

Pete Lacey on REST and Web Services

In this interview, Burton Group consultant Pete Lacey talks to Stefan Tilkov about his disillusionment with SOAP, his opinion on REST, and addresses some of the perceived shortcomings REST vs. WS-*.

Business Natural Languages Development in Ruby

Jay Fields presents his concept of Business Natural Languages - a type of Domain Specific Languages geared towards being readable by domain experts.

Distributed Version Control Systems: A Not-So-Quick Guide Through

Adoption and interest for Distributed Version Control Systems is constantly rising. We will introduce the concept of DVCS and have a look at 3 actors in the area: git, Mercurial and Bazaar.

Segundo Velasquez and Agile as Seen Through the Customer's Eyes

Deborah Hartmann interviewed Segundo Velasquez about his experience as customer with an Agile team during the initial phase of software design of a product.

Fine Grained Versioning with ClickOnce

David Cooksey shows how to fine grained versioning to a ClickOnce deployment using an HttpHandler written with ASP.NET, making partial rollouts to a test audience much easier.

Implementing Manual Activities in Windows Workflow

Windows workflow (WF) is an excellent framework for implementing business processes, but lacks support for human activities. This article describes a completely generic approach for changing this.

Markus Voelter about Software Architecture Documentation

In this interview taken during OOPSLA 2007, Markus Voelter talks about the importance of documenting the software architecture, and gives some good and also bad examples on how it could be done.