[Q] What does Ruby/DL do?

G

Gavin Sinclair

The Ruby/DL website (http://google...) doesn't have much by way of
explanation. I've seen it claimed recently that it can be used _instead
of_ C library bindings, or some such. Can anyone elaborate?

Thanks,
Gavin
 
E

Emmanuel Touzery

Gavin said:
The Ruby/DL website (http://google...) doesn't have much by way of
explanation. I've seen it claimed recently that it can be used _instead
of_ C library bindings, or some such. Can anyone elaborate?
with ruby/DL, you describe the API of the C function that you wrap. You
give the location of the dll/so. and then you call the function. It's a
simple as that! Problem of course comes with structures and this kind of
things.
ruby/DL requires no compilation, no C external library, and is portable
across systems.

check the "Ruby/DL: Cross-platform Dynamic Linking" paragraph in
http://whytheluckystiff.net/articles/rubyOneEightOh.html

of course the problem is the severely lacking documentation.

emmanuel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top