Also, PHP can be ran in different threads as v8. They're not different 
processes, but the two environments are different enough that they can be 
completely isolated from each other. At this point I have two ways of 
calling PHP in worker threads, which then place data in shared zend_tables 
accessible to node.

On Tuesday, December 25, 2012 4:49:15 PM UTC-8, JSON wrote:
>
> I'm finishing up a php sapi/api for v8. The original taget server is a 
> boost asio based game server, but I will also be making a port for node.js 
> (yes, the node port will be free and open). What type of features would you 
> be most interested in? At the current state, php invocations are made from 
> v8 at run time. the invocation is done like such:
>
> var invocation = {
>
>         host:"domain"
>
>         user:"username",
>
>         pass:"password"
>
>     method:"mysql_connect"
>
> }
>
>
>  var link = php.commit(invocation);
>
>
> Commits take under 2 millionths of a second on low end equipment (thats 
> the function invocation, not the function execution) and type conversion is 
> done transparently and directly, without JSON parsing. commit also has an 
> async variant which handles functions in threads outside of v8 (though 
> still part of the same process) and a proxy variant that sends invocation 
> into php userspace rather than invoking them at core level. This is slower 
> but provides more flexibility to PHP/javascript developers. Proxy calls 
> still happen within the same thread if it not called asynchronously.
>
>
> What features would you be most interested in? encryption? gd/image magic? 
> database connectivity? Any input would be very helpfull.
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to