[go-nuts] Re: Java to Go converter - 2

2022-05-17 Thread Henry
Kudos to you. Java to Go is a lot of work. Java is a more complex language. It has more features and more possibilities for expressing the same model/algorithm. You need to identify all these possibilities, parse, and convert them to Go. I could be wrong about this, but it may be easier to conv

Re: [go-nuts] crypto/X509 checkSignature: why the loop doesn't `break` after finding `algo`?

2022-05-17 Thread Kurtis Rader
On Tue, May 17, 2022 at 8:24 PM atomic wrote: > I am contributing code to golang for the first time, what do I need to do? > Is it like this: I start an issue on github and then a pr? Read https://github.com/golang/go/blob/master/CONTRIBUTING.md > 在2022年5月18日星期三 UTC+8 10:31:39 写道: > >> >> I'm

Re: [go-nuts] crypto/X509 checkSignature: why the loop doesn't `break` after finding `algo`?

2022-05-17 Thread atomic
I am contributing code to golang for the first time, what do I need to do? Is it like this: I start an issue on github and then a pr? 在2022年5月18日星期三 UTC+8 10:31:39 写道: > > I'm happy to fix this > > 在2022年5月18日星期三 UTC+8 05:38:46 写道: > >> On Tue, May 17, 2022 at 8:19 AM atomic wrote: >> > >> >

Re: [go-nuts] crypto/X509 checkSignature: why the loop doesn't `break` after finding `algo`?

2022-05-17 Thread atomic
I'm happy to fix this 在2022年5月18日星期三 UTC+8 05:38:46 写道: > On Tue, May 17, 2022 at 8:19 AM atomic wrote: > > > > crypto/X509 checkSignature: why the loop doesn't `break` after finding > `algo`? > > > > code: > https://github.com/golang/go/blob/aedf298daf508b564e4dddc7687fff8822315a5e/src/crypt

Re: [go-nuts] crypto/X509 checkSignature: why the loop doesn't `break` after finding `algo`?

2022-05-17 Thread Ian Lance Taylor
On Tue, May 17, 2022 at 8:19 AM atomic wrote: > > crypto/X509 checkSignature: why the loop doesn't `break` after finding `algo`? > > code: > https://github.com/golang/go/blob/aedf298daf508b564e4dddc7687fff8822315a5e/src/crypto/x509/x509.go#L818-L829 Looks like a tiny performance bug. We're in a

[go-nuts] crypto/X509 checkSignature: why the loop doesn't `break` after finding `algo`?

2022-05-17 Thread atomic
hi~ crypto/X509 checkSignature: why the loop doesn't `break` after finding `algo`? code: https://github.com/golang/go/blob/aedf298daf508b564e4dddc7687fff8822315a5e/src/crypto/x509/x509.go#L818-L829 -- You received this message because you are subscribed to the Google Groups "golang-nuts" gro

[go-nuts] Re: Java to Go converter - 2

2022-05-17 Thread alex-coder
In Go, multithreading is one of the main features, respectively, the ability to convert Java code using multithreading into Go code automatically, which uses channels, is very important. I found a suitable example of ProducerConsumerExample from Oracle there:Oracle sample

Re: [go-nuts] Re: Blog: Calculating type sets is harder than you think

2022-05-17 Thread 'Axel Wagner' via golang-nuts
On Tue, May 17, 2022 at 11:44 AM Peter Galbavy wrote: > I am neither enough of a Go expert ("yet) - I hope) or good enough in real > math to say much apart from that is actually one of the clearest > explanations of P/NP problems and the actual meaning of CNF/DNF that I have > had the pleasure to

[go-nuts] Re: Blog: Calculating type sets is harder than you think

2022-05-17 Thread Peter Galbavy
I am neither enough of a Go expert ("yet) - I hope) or good enough in real math to say much apart from that is actually one of the clearest explanations of P/NP problems and the actual meaning of CNF/DNF that I have had the pleasure to read. Even setting aside the importance to the design decis