ruby2c 1.0.0 beta 5 released

| | Comments (2)

After almost a year, I'm pleased to announce that another beta of ruby2c is available. The project stagnated for a bit, but is coming back in force! We've solidified this release by gemifying it, splitting up our tail end translator to convert to either ANSI C or ruby internals C, and making it much more happy with other tool-chains (like our obfuscator).

ruby2c translates a static ruby subset to C. Hopefully it works.

Enough Propaganda! Just install it!

sudo gem install RubyToC

CHANGES:

+ 6 minor enhancements:
+ Split RubyToC to RubyToRubyC and RubyToAnsiC.
+ Extended Environment to be more flexible for various situations.
+ Removed propaganda (bloat) from release.
+ Gemified and reorganized things. Support still needs splitting up.
+ Flipped a lot of internal naming to use Unique.
+ Added ruby_to_c_show (like parse_tree_show).

+ 4(ish) bug fixes:
+ Use ivars instead of cvars so inheritance won't bugger the translator.
+ Corrected unsupported node lists in pipeline.
+ Fixed bugs for splat args, iters, optional args, method name map.
+ Fixed many other bugs.

2 Comments

Would this allow you to compile a Rails application to native code?

Kris, no, ruby2c is not meant to translate a rails app. It works with too small of a subset of ruby and requires static typing for the type inference to work. ruby2c requires this because it focuses on optimization.

However, we are working on an obfuscator as well that will be capable of doing much more dynamic code. We don't know yet if we can do rails apps but it is a goal.

Leave a comment

About this Entry

This page contains a single entry by zenspider published on May 12, 2006 3:45 AM.

"so simple it can't be wrong" was the previous entry in this blog.

PSA is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.32-en