RubyInline

Write foreign code within your Ruby code
Download

RubyInline Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • RubyInline Team
  • Publisher web site:
  • http://www.zenspider.com/ZSS/Products/RubyInline/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 27 KB

RubyInline Tags


RubyInline Description

Write foreign code within your Ruby code RubyInline is an analog to Perl's Inline::C. Out of the box and it allows you to embed C/++ external module code in your ruby script directly. RubyInline automatically determines if the code in question has changed and builds it only when necessary. The extensions are then automatically loaded into the class/module that defines it. You can even write extra builders that will allow you to write inlined code in any language. Use Inline::C as a template and look at Module#inline for the required API.Just by writing simple builder classes, you can teach how to cope with new languages ( perl, fortran, whatever).NOTE: RubyInline is developed, provided and licensed under the terms of the MIT/X Consortium License. Here are some key features of "RubyInline": · Quick and easy inlining of your C or C++ code embedded in your ruby script. · Extendable to work with other languages. · Automatic conversion between ruby and C basic types: char, unsigned, unsigned int, char *, int, long, unsigned long · inline_c_raw exists for when the automatic conversion isn't sufficient. · Only recompiles if the inlined code has changed. · Pretends to be secure. · Only requires standard ruby libraries, nothing extra to download. Requirements: · C/C++ compiler · Ruby


RubyInline Related Software