It would be the same story with network stuff. The source of randomness is the disk seeking or networking, or memory pressure, and it gets compounded by the concurrency and the recursion.
On Mon, Mar 11, 2013 at 6:55 PM, codepilot Account <[email protected]>wrote: > Running concurrent recursive asynchronous file system stuff > should guarantee random order due to disk seeking. Caching should limit the > randomness because it removes the disk seeking. > > > On Mon, Mar 11, 2013 at 4:21 PM, Frank Wilson <[email protected]> wrote: > >> >> Hi, >> >> I tried to write a "streaming" implementation of a file system tree >> traversal last weekend. I found that the order that the directories get >> printed out is non-deterministic on windows (v0.8.22 and v0.10.0). On Linux >> the order is arbitrary but consistent between runs (v0.8.22) or >> alphabetical with respect to directory entries (v0.10.0). >> >> Here is a link to a github gist with my code: >> >> https://gist.github.com/zenlambda/5138747#file-ls-tree-js >> >> What is causing the variation in behavior between platforms and versions? >> Is my code not written in a portable way? >> >> Thanks, >> >> Frank >> >> -- >> -- >> 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 >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
