# Ruby Inline

**URL:** <https://www.ruby-forum.com/t/ruby-inline/73410>\
**Category:** Ruby\
**Created:** [October 24, 2006, 3:36pm UTC](https://www.ruby-forum.com/t/ruby-inline/73410 "2006-10-24T15:36:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![unni.tallman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/f04885/32.png) [@unni.tallman](https://www.ruby-forum.com/u/unni.tallman)\
**Post date:** [October 24, 2006, 3:36pm UTC](https://www.ruby-forum.com/t/ruby-inline/73410/1 "2006-10-24T15:36:38Z")

</div>

How to pass an integer array to a C function, in RubyInline???

---

<div class="post-metadata">

**Author:** ![unni.tallman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/f04885/32.png) [@unni.tallman](https://www.ruby-forum.com/u/unni.tallman)\
**Post date:** [October 24, 2006, 4:25pm UTC](https://www.ruby-forum.com/t/ruby-inline/73410/2 "2006-10-24T16:25:09Z")

</div>

Hi Unni

On 10/24/06, unni.tallman [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> How to pass an integer array to a C function, in RubyInline???

This might help:

> **[RubyInline: Going a bit Further](http://on-ruby.blogspot.com/2006/07/rubyinline-going-bit-further.html)**
>
> Last time around, I wrote about RubyInline and profiling, and raised a couple of questions. This time around I'm going to talk about RubyIn...

It passes an array into an RARRAY in a C function, but you can  
probably extrapolate from there. There’s a second (previous) article  
about RubyInline here:

[http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.htm](http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.htm)

Good luck!

---

<div class="post-metadata">

**Author:** ![unni.tallman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/f04885/32.png) [@unni.tallman](https://www.ruby-forum.com/u/unni.tallman)\
**Post date:** [October 24, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/ruby-inline/73410/3 "2006-10-24T16:47:22Z")

</div>

pat eyler [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.htm](http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.htm)

for this one :

Not Found

---

<div class="post-metadata">

**Author:** ![unni.tallman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/f04885/32.png) [@unni.tallman](https://www.ruby-forum.com/u/unni.tallman)\
**Post date:** [October 24, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/ruby-inline/73410/4 "2006-10-24T17:01:26Z")

</div>

On 10/24/06, Une Bévue [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> pat eyler [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > [http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.htm](http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.htm)
> 
> for this one :
> 
> Not Found

> **[RubyInline, Making Making Things Faster Easier](http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.html)**
>
> Today on ruby-talk, I caught a thread called "For Performance, Write it in C" . I'd like to present a slight amendment to that thesis. Le...

(sorry, I dropped an l off the end. sloppy cut-n-paste)

---

<div class="post-metadata">

**Author:** ![unni.tallman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/f04885/32.png) [@unni.tallman](https://www.ruby-forum.com/u/unni.tallman)\
**Post date:** [October 24, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/ruby-inline/73410/5 "2006-10-24T17:11:29Z")

</div>

Une Bévue wrote:

> pat eyler [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > [http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.htm](http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.htm)  
> > for this one :  
> > Not Found

The trailing ‘l’ got lost. Should be:

> **[RubyInline, Making Making Things Faster Easier](http://on-ruby.blogspot.com/2006/07/rubyinline-making-making-things-faster.html)**
>
> Today on ruby-talk, I caught a thread called "For Performance, Write it in C" . I'd like to present a slight amendment to that thesis. Le...
