CSC/ECE 517 Fall 2010/ch3 3i MM: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 3: Line 3:


= Using C from Ruby =
= Using C from Ruby =
== C Extensions to Ruby ==
Following are some overviews and examples of ways to create C or C++ extensions to Ruby.
 
== Ruby C API ==
=== README.EXT ===
=== README.EXT ===



Revision as of 01:48, 7 October 2010

Introduction

Ruby is dynamic language that is useful for everything from short scripting assignments, to entire web applications and desktop GUI applications. However, there are inherent limitations in what Ruby can do because of its interpreter.

Using C from Ruby

Following are some overviews and examples of ways to create C or C++ extensions to Ruby.

Ruby C API

README.EXT

RubyInline

SWIG

SWIG is a popular wrapper generator that can produce wrappers for C and C++ code in several high level programming languages, including Perl, Python, and Ruby.

Using Ruby from C

Conclusion

References

External Links

RubyInline

Ruby C Extension in Under 5 Minutes

Ruby C Extension Overview