News for hackers. Stuff that matters.
Re:Combining Golang and PHP can solve real-world development... by perpetualcrayon on Monday December 10, 2018 @04:45PM (#18651420)
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/manual/en/book.event.php

There are no comments on this comment yet.