# Off the wall question

**URL:** <https://www.ruby-forum.com/t/off-the-wall-question/101695>\
**Category:** Ruby\
**Created:** [August 7, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/off-the-wall-question/101695 "2006-08-07T15:06:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [August 7, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/off-the-wall-question/101695/1 "2006-08-07T15:06:29Z")

</div>

I found myself wondering if anyone has written any kind of rubyinline  
in reverse.

What I’m talking about is a tool that could process some of the core  
ruby source files like array.c, hash.c etc., and produce equivalent  
ruby code.

Of course this wouldn’t work for arbitrary c code, or even arbitrary  
ruby extensions, but…

---

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [August 8, 2006, 12:01am UTC](https://www.ruby-forum.com/t/off-the-wall-question/101695/2 "2006-08-08T00:01:25Z")

</div>

On Aug 7, 2006, at 6:03 AM, Rick DeNatale wrote:

> I found myself wondering if anyone has written any kind of rubyinline  
> in reverse.
> 
> What I’m talking about is a tool that could process some of the core  
> ruby source files like array.c, hash.c etc., and produce equivalent  
> ruby code.
> 
> Of course this wouldn’t work for arbitrary c code, or even arbitrary  
> ruby extensions, but…

There’s a lot of pure-C-ness in the Ruby stdlib that this isn’t  
workable. See String#split’s implementation.

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
