Ruby support for PHP

Guys,

First of all, let me confess this - I am more a PHP fun than Ruby’s. But
this is probably because I started from PHP and because I use PHP on
most my projects, some of which are relatively large. I also work on PHP
itself, particularly I maintain its Oracle (OCI8) extension.

Nevertheless, I truly love Ruby and play with it whenever I got a free
time. I follow up quietly on this list and see Ruby gaining a greater
exposure to the world each message I read.

Said all that, I am thinking whether it would be wise to get a Ruby
extension into PHP. Something like the way Java and .NET work through
PHP. In other words, bridge PHP with Ruby so PHP users can access Ruby
directly from their PHP scripts.

This is an idea I was digging on for some time. I am not sure whether
this extension will finally get onto the official PHP5 release or will
remain as a “third-party” library. But, I truly think it is doable and
would be quite useful for both PHP and Ruby altogether.

What I’d like to know is, whether anyone had this idea before me?
Whether anyone has written or started to write anything similar to this?
What do others think? Would it be a relatively easy thing to write or
should I expect a lot of panic?

The goal is simple - to create C API (PHP extension) that interacts with Ruby.

Any comments and suggestions are welcome,

Regards,

···


Maxim Maletsky
maxim@php.net

Hi Maxim!

···

On Wed, Jan 29, 2003 at 10:28:31AM +0900, Maxim Maletsky wrote:

Said all that, I am thinking whether it would be wise to get a Ruby
extension into PHP. Something like the way Java and .NET work through
PHP. In other words, bridge PHP with Ruby so PHP users can access Ruby
directly from their PHP scripts.
Look at pruby:
http://www.ruby-lang.org/raa/list.rhtml?name=pruby


/ Alexander Bokovoy

In which level of metalanguage are you now speaking?