Paul Krill
Editor at Large

Topaz aims to be the fastest Ruby implementation

news
Feb 14, 20132 mins

Now in development and expected to be ready in 'a year or two,' planned version of the language would feature quick interpreter

Developers could soon what have what is intended to be the industry’s fastest implementation of Ruby at their disposal.

Currently in development and called Topaz, this version of Ruby is written in Python atop the RPython translation tool chain. It will be based on Ruby 1.9.3, said founder Alex Gaynor, a software engineer at music streaming site Rdio, in a blog post. “We believe we’re going to be able to generate a very fast Ruby interpreter,” Gaynor said in an interview this week. He expects Topaz to be the fastest Ruby implementation available. “The key to achieving this performance is the fact that the RPython toolkit includes a high-performance just-in-time compiler as well as an advanced garbage collector.”

Gaynor hopes Topaz will be ready in a year or two, with Web applications and scientific computing expected to be the sweet spots for the language. He also wants Topaz to accommodate the popular Ruby on Rails Web framework: “That’s sort of the Holy Grail of compatibility for us.”

In developing Topaz, Gaynor sees C extensions for Ruby as probably the biggest question mark right now. Many database adapters are written in C, and compatibility is needed. While Topaz is missing many built-in methods and classes, it features elements of Ruby, including classes, blocks, built-in types, and method calls. “We don’t yet consider it stable, but it’s getting closer every day,” Gaynor writes in his blog last week.

Developers can try out Topaz using nightly builds, or they can build it themselves. Source code for Topaz is found on GitHub.

This article, “Topaz aims to be the fastest Ruby implementation,” was originally published at InfoWorld.com. Follow the latest developments in business technology news and get a digest of the key stories each day in the InfoWorld Daily newsletter. For the latest developments in business technology news, follow InfoWorld.com on Twitter.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author