On Mar 8, 2012, at 10:43 AM, Jann Horn wrote:
> Am Mittwoch, den 07.03.2012, 20:23 +0100 schrieb Jorge:
>> Today is the D day, finally: JavaScript threads for Node.js (using v8 
>> isolates):
>> 
>> https://github.com/xk/node-threads-a-gogo
>> 
>> npm install threads_a_gogo
>> 
>> Special thanks to: Bruno Jouhier and Liam Breck.
> 
> Whoah, that looks really cool! A few questions:

Thank you :-)

> - Is it possible to use require() inside those isolated things, for
> example by using fs.readFile from the root isolate and blocking the
> child until the callback fires?

Well, I think (I may be wrong) that the require() functionality can be emulated 
with a thread.load().

> - Is there a simple API for making events in the root isolate that get
> handled by the first free child isolate only?

Yes, when you create a pool, if you use pool.any.emit() it will emit() in the 
first thread of the pool that becomes idle.

> - Can I use Buffers in the child, and can I pass them between isolates?

Not yet...

> - How efficient would it be to use a proxy object inside of the isolate
> to access things outside?

That's in the roadmap.

> - Is there an API for catching uncaughtExceptions in the isolates?

yes, when you do an .eval(program, cb) you'll get any errors in the cb(err, 
result)

> - When an isolate in a pool fails really hard, will a new one be
> created automatically?

Nope.
-- 
Jorge.

-- 
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