Ruby Inline is my quick attempt to create an analog to Perl’s
Inline::C. It allows you to embed C external module code in your ruby
script directly. The code is compiled and run on the fly when
needed. The ruby version isn’t near as feature-full as the perl
version, but it is neat!
FEATURES/PROBLEMS:
- Quick and easy inlining of your C code embedded in your ruby script.
- Rudimentary automatic conversion between ruby and C basic types
(char, unsigned, unsigned int, char *, int, long, unsigned long). - Only recompiles if the C code has changed.
- Pretends to be secure.
- Only uses standard ruby libraries, nothing extra to download.
- Simple as it can be. Less than 350 lines long… um… sorta simple.
- Currently doesn’t munge ruby names that aren’t compatible in C (ex:
a!())
Changes:
···
---------- Forwarded message ----------
Date: Thu, 12 Dec 2002 20:44:17 -0800
From: Ryan Davis ryand-ruby@zenspider.com
Reply-To: ruby@zenspider.com
To: Ruby Announce announce@rubynet.org
Cc: Seattle Ruby Brigade! ruby@zenspider.com
Subject: RubyInline 2.0.0 released
########################################################################
#######
2002-12-12 2.0.0 00 major / 00 minor / 02 bug
- Minor fix to get working on MacOS X (.so vs .bundle).
- Downgraded typemap to be compatible with 1.6.x.
Paired w/ Doug Beaver
########################################################################
#######
2002-11-22 2.0.0 beta 01 major / 02 minor / 03 bug
! Added inline_c, a "compile-time" version of
inline. Massively enhanced, this version has a limited form of
C function parsing.
+ Deprecated Inline#inline for Module#inline_c. To be removed by 2.1.0.
+ Extended example.rb to include a fully written inlined C function.
- Updated README.txt and improved some of the documentation.
- Added test and clean rules to Makefile.
- Removed the copious warnings if running ruby < 1.7.2.
Paired w/ Doug Beaver