[go-nuts] Re: Best way to read image from URL into image.Decode()

2018-11-13 Thread ajkula
Awesome! I was just looking for the same answer! Thanks a lot guys. Le jeudi 12 avril 2012 16:08:52 UTC+2, Douglas Fils a écrit : > > Peter, > Thanks! works perfectly.. I'll check out newReader too. > Appreciate the help! > > Take care > Doug > > > On Thursday, April 12, 2012 8:54:56

Re: [go-nuts] [ANN] Koazee a library inspired by functional programming and lazy evaluation that takes the hassle out of working with arrays

2018-11-13 Thread Mark Volkmann
I don't get the impression that we are going to see generics in Go anytime soon. I'll be surprised to see it before 2020. So until then, I like having a library like this even if it uses reflection. On Tue, Nov 13, 2018 at 2:14 PM roger peppe wrote: > It's obvious that you've put a lot of effort

Re: [go-nuts] [ANN] Koazee a library inspired by functional programming and lazy evaluation that takes the hassle out of working with arrays

2018-11-13 Thread ivan . corrales
Thanks a million rog! I completely understand what you say. Regarding to the performance, I didn't expect as bad performance as I found yesterday when running my benchmark test and I will be focused on being able to improve it as much as I can. I found a way to improve performance in primitiv

Re: [go-nuts] [ANN] Koazee a library inspired by functional programming and lazy evaluation that takes the hassle out of working with arrays

2018-11-13 Thread roger peppe
It's obvious that you've put a lot of effort into this! Here's some feedback. I have to say this first: this *is* a very non-Go-idiomatic API. It's fundamentally based around reflection, and reflection in Go is generally considered to be best avoided apart from some core libraries. Calling a funct

Re: [go-nuts] Calling function with variadic arguments

2018-11-13 Thread Ian Lance Taylor
On Tue, Nov 13, 2018 at 1:29 AM, Sergey Kamardin wrote: > > Sorry for my previous misunderstanding. Now I realized that there no > ability in general to get the knowledge of how that slice of variadic > arguments will be used inside hidden interface method implementation. > > Also, is it correct t

Re: [go-nuts] Endlessly increasing CPU usage problem

2018-11-13 Thread Anon
Hi Ian, I am facing the same issue. The CPU usage on my servers increases from very low to 100% of CPU. Did you find the solution to your problem? go version : 1.10.1 OS : centOS Thanks, On Thursday, January 31, 2013 at 7:27:33 AM UTC+5:30, Ian Ragsdale wrote: > > Thanks Dave, those look like

[go-nuts] Re: failed to parse key: ASN.1

2018-11-13 Thread fifsky
golang 1.11.2 The problem is still 在 2011年11月22日星期二 UTC+8上午4:00:42,agl写道: > > On Nov 17, 10:40 am, agl wrote: > > But, yes, I'll change things so that we can parse both types of keys > > in crypto/tls. > > Done in > https://code.google.com/p/go/source/detail?r=4bec71996c9f00d1e1710e4094f6cbb7127

Re: [go-nuts] Calling function with variadic arguments

2018-11-13 Thread Sergey Kamardin
Hi again, Sorry for my previous misunderstanding. Now I realized that there no ability in general to get the knowledge of how that slice of variadic arguments will be used inside hidden interface method implementation. Also, is it correct to think about variadic arguments just like about regular

Re: [go-nuts] [ANN] Koazee a library inspired by functional programming and lazy evaluation that takes the hassle out of working with arrays

2018-11-13 Thread Bakul Shah
On Nov 12, 2018, at 5:28 PM, robert engels wrote: > > You can pretty much look at the Java8 streams source (from OpenJDK) and port > it to Go. It would need to use interface{} or reflect - the former probably > being faster, but both wouldn’t have the type safety - but I think the code > would