Re: Anyone seen an Inline::C implementation in php
| From: | Lux | Date: | Wed, 18 Sep 2002 23:20:19 +0000 |
| Subject: | Re: Anyone seen an Inline::C implementation in php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9186@lists.php.net to get a copy of this message | ||
On Wednesday, September 18, 2002, at 05:40 PM, George Schlossnagle wrote:
I'm considering implementing something like perl's Inline::C in php, but I want to avoid re-inventing the wheel. Anyone see anything thike this? Basically the goal would be able to write something like: <?pseudocode $function_def = <<<EOF php_function(times){No, but this would be awesome!int i,j; return if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, &i,&j) = FAILURE)RETURN_LONG(i*j); } EOF Inline_C($function_def); times(2,2); ?> Inline_C would take the block of code, wrap it in module glue, compile it, cache the binary somewhere, the call dl() on it. Anyone seen anything like this for php?
-- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- John Luxford Simian Systems _______________________ phone : 204.946.5955 email : lux@simian.ca web : www.simian.ca _______________________ web content management application development consulting and training