Re: [go-nuts] Help! Same code, different results

2017-08-25 Thread Tong Sun
[resent to group, sorry Egon] On Fri, Aug 25, 2017 at 3:04 PM, Egon wrote: > Try to find the first place where the processes diverge: > > 1. maybe find lists files in different order > Oh, YES! BINGO! THANKS A LOT. find test/sim -type f* | sort* | ./fsimilar -i -d 12 -vv gave me the correct o

Re: [go-nuts] Help! Same code, different results

2017-08-25 Thread Tong Sun
Thanks a lot my friend. That's something I'm afraid of. On Fri, Aug 25, 2017 at 3:02 PM, wrote: > [mh-cbon@pc2 rendez-vous] $ cd ../../go-dedup/fsimilar/ > [mh-cbon@pc2 fsimilar] $ find test/sim -type f | ./fsimilar -i -d 12 -vv > [fsimilar] n='GNU - 2001 - Python Standard Library', e='.pdf',

Re: [go-nuts] Help! Same code, different results

2017-08-25 Thread Egon
Try to find the first place where the processes diverge: 1. maybe find lists files in different order 2. maybe something read input does things in different order 3. maybe some processing uses maps --> hence random order 4. etc... (of course run with -race, if you already haven't) On Friday, 25

Re: [go-nuts] Help! Same code, different results

2017-08-25 Thread mhhcbon
[mh-cbon@pc2 rendez-vous] $ cd ../../go-dedup/fsimilar/ [mh-cbon@pc2 fsimilar] $ find test/sim -type f | ./fsimilar -i -d 12 -vv [fsimilar] n='GNU - 2001 - Python Standard Library', e='.pdf', s='1', d= 'test/sim/' [fsimilar] +: Simhash of 55d4263ae1a6e6d6 added. [fsimilar] n='(eBook) GNU - Python

Re: [go-nuts] Help! Same code, different results

2017-08-25 Thread Tong Sun
Update, On Fri, Aug 25, 2017 at 11:39 AM, Tong Sun wrote: > Hi, > > I'm experiencing a *very very* strange problem now -- the same Go code is > producing different results *for me*. > I'm not kidding, I can't believe that myself, so I've spent *the past few > days* going back and forth to verif

Re: [go-nuts] Help! Same code, different results

2017-08-25 Thread Tong Sun
On Fri, Aug 25, 2017 at 12:09 PM, Konstantin Khomoutov wrote: > On Fri, Aug 25, 2017 at 08:39:29AM -0700, Tong Sun wrote: > > > I'm experiencing a *very very* strange problem now -- the same Go code is > > producing different results *for me*. > [...] > > Can someone verify for me what you get pl

Re: [go-nuts] Help! Same code, different results

2017-08-25 Thread Konstantin Khomoutov
On Fri, Aug 25, 2017 at 08:39:29AM -0700, Tong Sun wrote: > I'm experiencing a *very very* strange problem now -- the same Go code is > producing different results *for me*. [...] > Can someone verify for me what you get please? > > go get github.com/go-dedup/fsimilar > > then > > cd go-ded

[go-nuts] Help! Same code, different results

2017-08-25 Thread Tong Sun
Hi, I'm experiencing a *very very* strange problem now -- the same Go code is producing different results *for me*. I'm not kidding, I can't believe that myself, so I've spent *the past few days* going back and forth to verify everything. Now, after all these days, the only conclusion that I