Re: [go-nuts] Re: Proposal to add Index operator methods

2020-10-04 Thread Raanan Hadar
It actually didn't change that much, I just applied your valuable feedback. Thanks alot! Its critical to communicate clearly. so I changed the before and after part of the proposal to be more approachable to people who are less familiar with numerical libraries in Go. Its not a trivial

Re: [go-nuts] Re: Proposal to add Index operator methods

2020-10-04 Thread jake...@gmail.com
The examples I was looking at are gone now. That section has been completely rewritten. So its kind of moot. Its possible that I was confusing the 'before' and 'after' examples, since they were not clearly labeled. In any case the rewritten version seems to make sense now. On Sunday, October

Re: [go-nuts] Go is easy to lean. But other languages are hard to forget

2020-10-04 Thread Tyler Compton
I wonder if mailing lists for all languages get posts like this :) Working in Go is great, but every language has sharp corners. Language design is a tricky balancing act of trade-offs, and I don't think Go or any other language is above that. On Sun, Oct 4, 2020 at 1:25 PM Amnon wrote: > Go is

Re: [go-nuts] Re: Proposal to add Index operator methods

2020-10-04 Thread 'Dan' via golang-nuts
On Sun, 2020-10-04 at 09:06 -0700, jake...@gmail.com wrote: > I stopped reading at the " Show example code before and after the > change " because many of the examples of "before the change" code > seem to be invalid in go, and the others do not do what you seem to > imply they do. Am I

[go-nuts] Re: certificates at /etc/ssl/certs/ getting ignored on FreeBSD

2020-10-04 Thread flynn boxing
I’m having a similar problem as the above guy so I made a root ca and an intermediate then a server cert for Nguni loader it in Nginx in nginxdir/ssl loaded the ca into Firefox and chromium as trusted cas it went fine visiting my site then distrowatch I went on the sight and it said that it’s

[go-nuts] Go is easy to lean. But other languages are hard to forget

2020-10-04 Thread Amnon
Go is a beautifully simple language. It is easy to learn. Most programmers can learn to write working production code within a day. But learning Go is the easy thing. It is much much harder to liberate yourself from the conceptual baggage that you have inherited from languages in your past.

[go-nuts] Re: Proposal to add Index operator methods

2020-10-04 Thread Raanan Hadar
So I may have jumped too far ahead in that section in order to keep the proposal short. The examples are typical of gonum and gorgonia/tensor. I have also implemented in my experience report a small library in that spirit to make sure that everything worked as well. So you are right, its

[go-nuts] Re: Proposal to add Index operator methods

2020-10-04 Thread jake...@gmail.com
I stopped reading at the " Show example code before and after the change " because many of the examples of "before the change" code seem to be invalid in go, and the others do not do what you seem to imply they do. Am I misinterpreting this section in some way? On Sunday, October 4, 2020 at

Re: [go-nuts] Proper way of mocking interfaces in unit tests - the golang way

2020-10-04 Thread Jesper Louis Andersen
On Thu, Oct 1, 2020 at 6:25 PM Krishna C wrote: > > For unit tests, we need to mock the dependent interfaces either by > creating our own mock implementation of the interface or by using third > party packages like *testify/mocks.* > > Is there any particular reason as to why you want to mock

[go-nuts] Re: Checking root login with ssh

2020-10-04 Thread Brian Candler
If the remote server offers password login then the ClientConfig Password AuthMethod is called (ditto KeyboardInteractive). By providing your own implementation of this callback, and recording whether it was called or not, I believe you

Re: [go-nuts] Checking root login with ssh

2020-10-04 Thread 'Dániel Görbe' via golang-nuts
Hi! I tried to modify my the https://pkg.go.dev/golang.org/x/crypto/ssh#example-Dial . I want to storno my question, because i forgot some other ssh settings. Best regards,     Daniel On 10/4/20 7:24 AM, Kurtis Rader wrote: > What does your question have to do with the Go language? Did you