Re: [go-nuts] Koazee vs Go-Linq vs Go-Funk

2018-12-04 Thread Iván Corrales Solera
No worries! ahaha It's ok On Tue, Dec 4, 2018 at 3:39 PM Robert Engels wrote: > Sorry, I see it is going from both ends... too early :) > > On Dec 4, 2018, at 8:33 AM, Robert Engels wrote: > > Shouldn’t this code be index = index+ 2 > > for index := 0; index < (len/2)+1; index++ { > outpu

Re: [go-nuts] Koazee vs Go-Linq vs Go-Funk

2018-12-04 Thread Robert Engels
Sorry, I see it is going from both ends... too early :) > On Dec 4, 2018, at 8:33 AM, Robert Engels wrote: > > Shouldn’t this code be index = index+ 2 > > for index := 0; index < (len/2)+1; index++ { > output[index], output[len-1-index] = input[len-1-index], input[index] > } > And the loop need

Re: [go-nuts] Koazee vs Go-Linq vs Go-Funk

2018-12-04 Thread Robert Engels
Shouldn’t this code be index = index+ 2 for index := 0; index < (len/2)+1; index++ { output[index], output[len-1-index] = input[len-1-index], input[index] } And the loop needs to go to Len - you are only copying half the elements > On Dec 4, 2018, at 5:27 AM, Iván Corrales Solera > wrote: >

Re: [go-nuts] Koazee vs Go-Linq vs Go-Funk

2018-12-04 Thread Iván Corrales Solera
I would also state that Koazee is the only one that doesn't force you to cast data in your filter functions nor sort... because I understand the argument as an interface instead of expect a function with arguments as the other 2 libraries do. On Tuesday, December 4, 2018 at 12:27:14 PM UTC+1, I

Re: [go-nuts] Koazee vs Go-Linq vs Go-Funk

2018-12-04 Thread Iván Corrales Solera
Thanks for reply Marko, Sure! I think the approach of making validation smarter and generating code for primitive types was the key. Actually when you ask me for benchmark the first time, the performance was terrible! If we have a look at how operation Filter is implemented: *Filter operat

Re: [go-nuts] Koazee vs Go-Linq vs Go-Funk

2018-12-04 Thread Marko Ristin-Kaufmann
Thanks, Ivan! These numbers are very helpful! Could you at least give us a hint why your library is faster than the other two? As far as I can see, all three libraries in the benchmark use reflection. On Tue, 4 Dec 2018 at 08:49, Iván Corrales Solera < ivan.corrales.sol...@gmail.com> wrote: > Hey

[go-nuts] Koazee vs Go-Linq vs Go-Funk

2018-12-03 Thread Iván Corrales Solera
Hey all, I am working on Koazee, a library to deal with slices in a functional way. Since I published the very first release I was asked me for publishing a benchmark comparison with other existing and matured frameworks. that provide similar functionality. I hope you find useful this article