3 ms·
I had a similar idea a while back. The implementation I came up with (but never implemented) was to create a PHP extension that would link to a statically comp
by perpetualcrayon 8y ago
I had a similar idea a while back. The implementation I came up with (but never implemented) was to create a PHP extension that would link to a statically compiled GO module. Basically it would instantiate a network server on the GO side, and marshal the HTTP request/response data structures back and forth between PHP and Go. I imagined I would probably utilize a pthreads extension or one of the event loop extensions to handle each incoming request:
http://php.net/pthreads http://php.net/pthreads
http://php.net/manual/en/book.event.php http://php.net/manual/en/book.event.php