I want to give RubyInline a try, and I would like to know how to:

* get self and use it to
** get member variables
** call (ruby) methods
* handle ruby strings
* handle ruby arrays

.. in ruby inline C/Ruby C API.

Cheers,

Thomas

On Tue, 2002-09-10 at 20:55, Pat Eyler wrote:
> Woohoo!  another cool new toy to play with!
> 
> -pate
> ---------- Forwarded message ----------
> Date: Tue, 10 Sep 2002 11:15:00 -0700
> From: Ryan Davis <ryand / zenspider.com>
> Reply-To: ruby / zenspider.com
> To: Seattle Ruby Brigade! <ruby / zenspider.com>,
>      ruby-developers / lists.ruby-support.com
> Subject: RubyInline 1.0.4 Released!
> 
> RubyInline 1.0.4 has been released!
> 
> Ruby Inline is my quick attempt to create an analog to Perl's
> Inline::C. The ruby version isn't near as feature-full as the perl
> version, but it is neat!
> 
> Here is the output from the example bundled with the package (factorial
> 5):
> 
> <507> ./example.rb slow
> RubyInline 1.0.4
> Type = Native, Iter = 1000000, time = 24.01048500 sec, 0.00002401 sec /
> iter
> <508> ./example.rb
> RubyInline 1.0.4
> Building /tmp/Mod_MyTest_fastfact.so with 'cc -shared -O -pipe  -fPIC
> -I /usr/local/lib/ruby/1.6/i386-freebsd4'
> Type = Inline, Iter = 1000000, time = 5.40564900 sec, 0.00000541 sec /
> iter
> <509> ./example.rb
> RubyInline 1.0.4
> Type = Inline, Iter = 1000000, time = 5.27179200 sec, 0.00000527 sec /
> iter
> 
> I'd love feedback and fixes for other platforms! The project is on
> sourceforge at http://sourceforge.net/projects/rubyinline/
>