Re: Anyone seen an Inline::C implementation in php
| From: | George Schlossnagle | Date: | Thu, 19 Sep 2002 03:48:32 +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-9188@lists.php.net to get a copy of this message | ||
Is there a PEAR-standard way for installing things outside of the regular objects? The Inline_C stuff needs to install a cache and build hierachy at install time. I can whip something up, but would prefer to keep the style consistent if it's been done before.
On Wednesday, September 18, 2002, at 06: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){// Principal Consultantint 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 // George Schlossnagle
// OmniTI, Inc http://www.omniti.com// (c) 240.460.5234 (e) george@omniti.com // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0