From: Brian Ingerson Date: 2000-12-31T09:10:02+09:00 Subject: [ruby-talk:8379] Re: Something like Perl's Inline module for Ruby? Phil Tomson wrote: > I sent an email to the author of Inline.pm to ask if he could create a > flavor for Ruby (to allow the insertion of Ruby code into a perl script) > and he replied that he was just looking into Ruby and was very > enthusiastic about the language so far. And in fact he is planning to do > the next flavor of Inline for Ruby! (Inline::Ruby). He raised an Hi all. My name is Brian Ingerson. As Phil stated, I have written a perl module called Inline.pm that lets you write Perl subroutines/methods in other languages like C, C++, and Python (so far). Inline handles all of underlying details so that you can write something like: #!/usr/bin/perl use Inline C => < interesting point: It would actually be much more useful to have a way to > inline perl code in your Ruby scripts - that way you could call your > legacy perl code from Ruby. Is there any facility for doing this now? Is > this kind of what the Perl.pm module does > (see: http://www.yoshidam.net/Ruby.html )? Ruby builds on Perl, as Perl builds on C. So it seems to me that having an Inline feature for Ruby would be more useful than Inline::Ruby for Perl. If there is anyone interested in writing an Inline (primarily for C extensions) facility for Ruby, I'd be glad to help out as well. Cheers, Brian