thanks for the feedback ben. as for process isolation. i agree it's a better way of doing things for most scenarios but if you want to build a low latency system there is a lot of overhead in having to serialise objects and pass them across a process boundary. at some stage, it would be nice to be able to build a system in node.js that used many cores on one machine and is able to efficiently share objects/data between them without a lot of locking and contention. as far as i can see the only way of being able to do this REALLY fast is to use threads and manage contention using volatile variables or something like that. i have been doing a lot of reading around the LMAX disruptor pattern which is able to get orders of magnitude better performance than a traditional process or thread/mutex based solution. i'd love to see node.js/v8 support for something like this in the future, although i can see that it would be very difficult to achieve.
more info on distruptor here: http://code.google.com/p/disruptor/ On Tuesday, April 3, 2012 5:40:52 PM UTC+1, Ben Noordhuis wrote: > > On Tue, Apr 3, 2012 at 18:30, billywhizz <[email protected]> wrote: > > personally i would like to see javascript get proper support for 64 bit > > numbers and would like to see node.js/v8 with better support for > processing > > binary data. from the testing i have done, it's a major bottleneck when > > compared with c# or java. > > Yes. It's something we're working on or at least thinking about. > Consider it an ongoing effort. > > > JSON.stringify/parse is still very slow for serialisation of js objects > > (understandably so) and would be good to see some way of sharing/passing > > objects efficiently between processes. > > Ditto, except for object passing. Non-scientific sampling (IRC, ML, > the bug tracker) suggests that object passing is not a bottleneck - or > even an issue - to most people. > > > would also be good to see libuv and the c++ parts of node.js be able to > > fully support multi threading and isolates somewhere down the line. is > not > > something i'm particularly interested in right now, but i can see why > people > > keep bringing it up. > > Those people simply haven't seen the light that's process isolation. > Don't worry, it will come to them. > > -- 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
