Subject:
[ruby-ffi] Re: FFI core concepts wiki documentation
From:
Bryan Kearney
Date:
11/10/09 1:20 PM
To:
ruby-ffi@googlegroups.com


On 11/10/2009 02:15 PM, Jon wrote:

Let me write up what I did, and if it is the best practice I will be
happy to add to the wiki.

Just curious, what OS/Ruby/FFI versions did you run things run under?

Fedora 11 and 12. Which is roughly Ruby 1.8.6 with libffi 3.0.5.


Did it work under JRuby?

I dont know. I ran a series of unit tests which worked. No long running soak tests.


The reason I ask is there's a consideration regarding string memory allocation due to how the JVM and JRuby handles strings via Java heap memory.

I've got to consolidate Wayne's summary of the issue and put it on the wiki, but looking over the aug_get and aug_match sigs (the :string param (Ruby 'path') in particular) I can't tell whether this would even be a concern.

I will hold off adding anything. The rest of the examples from Augeas were pretty vanilla input only parameters.

-- bk