NYCPHP Meetup

NYPHP.org

[nycphp-talk] Graph Data Structures

Jonathan hendler at simmons.edu
Wed Aug 17 11:42:01 EDT 2005


Doug,

I found these articles relating to using perl from within PHP. Not sure 
about performance.

http://wiki.cc/php/Perl
http://www.zend.com/php5/articles/php5-perl.php

Have you used these techniques?
Any idea if perl.so is cross platform?



Jonathan wrote:

>Hi Douglas,
>
>Perl is a perfectly rational choice and more proven for lower level 
>number crunching and data structures than PHP, I believe. Python would 
>also be a good choice. To reflect on language choice for certain 
>problems is important. There are also graph libraries in C 
>(http://www.cs.princeton.edu/~rs/) that could be used as 
>custom/dynamically loading modules in PHP . Can I make a feature request 
>for PHP 6 - a native and fast graph manipulation library?
>
>I chose PHP because it's so widely deployed in web hosting environments.
>Can I embed/call perl functions in php easily? (PHP doesn't run on 
>Parrot yet)
>
>- Jonathan
>
>PS
>
>I also choose PHP because I started using PHP long after you were using 
>Perl ;)
>
>
>Douglas Clifton wrote:
>
>  
>
>>Is it mandatory that you use PHP to solve your problem?
>>
>>If not, then I suggest you consider using Perl. Unless I'm
>>mistaken, there doesn't seem to be quite the codebase
>>in PHP for these sorts of abstract computer science
>>problems. Perl is another story. CPAN contains 1000s
>>of modules for this kind of thing, and a quick search
>>revealed this promising package: 
>>
>>http://search.cpan.org/~jhi/Graph-0.66/lib/Graph.pod
>>
>>Gasp! Someone posting a message about Perl to a PHP
>>mailing list? Let me tell you, I was using Perl long before
>>PHP was nothing but a bunch of CGI scripts (written in
>>Perl mind you, and later in C).
>>
>>Also, the languages are very similar, so you may be able
>>to port the Perl Graph library to PHP. HTH ~d
>>
>> 
>>
>>    
>>
>
>_______________________________________________
>New York PHP Talk Mailing List
>AMP Technology
>Supporting Apache, MySQL and PHP
>http://lists.nyphp.org/mailman/listinfo/talk
>http://www.nyphp.org
>  
>




More information about the talk mailing list