Re: [go-nuts] aafaf

2019-03-11 Thread T L
got it. Thanks! On Tuesday, March 12, 2019 at 12:55:42 AM UTC-4, Ian Lance Taylor wrote: > > On Mon, Mar 11, 2019 at 8:35 PM T L > > wrote: > > > > It says "the go tool will verify that https://example.org/?go-get=1 > contains the same meta tag ". > > Maybe I misunderstood it? > > Oh, I see.

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Ian Denhardt
Quoting Lucio (2019-03-12 02:13:00) >specially in IM, because screenshots are a lot more informative (think >graphics) and, these days, very easily accomplished. The context of the discussion was screenshots *of text*, so this doesn't really apply. >The CoC should penalise only wanto

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Lucio
On Monday, 11 March 2019 13:04:03 UTC+2, kortschak wrote: > > There is an increasing culture of this in many places. Many students > often post screen shots in place of reproducers and textual error. I > invariably reply that they need to post code and text. I am not sure I > am winning here.

[go-nuts] sorty tuning on non-X86 platforms

2019-03-11 Thread Serhat Şevki Dinçer
Hi, If you have access to non-x86 platforms (ppc, mips, etc), I would like to know tuned parameter values and performance info of sorty on those platforms. Readme file has info on how to run the tests. I would appreciate if you paste test outputs here. Thanks a

Re: [go-nuts] aafaf

2019-03-11 Thread Ian Lance Taylor
On Mon, Mar 11, 2019 at 8:35 PM T L wrote: > > It says "the go tool will verify that https://example.org/?go-get=1 contains > the same meta tag ". > Maybe I misunderstood it? Oh, I see. It doesn't double check that the top level domain has the same meta tag. It double checks that the import-pr

Re: [go-nuts] aafaf

2019-03-11 Thread T L
It says "the go tool will verify that https://example.org/?go-get=1 contains the same meta tag ". Maybe I misunderstood it? On Monday, March 11, 2019 at 7:50:43 PM UTC-4, Ian Lance Taylor wrote: > > On Mon, Mar 11, 2019 at 12:17 PM T L > > wrote: > > > > The page (https://golang.org/cmd/go/#h

Re: [go-nuts] goreadme - automate Github Go projects readme files.

2019-03-11 Thread Sameer Ajmani
Any of the above :-) On Mon, Mar 11, 2019 at 1:13 PM Eyal wrote: > > > On Sunday, March 10, 2019 at 12:10:23 AM UTC+2, Sameer Ajmani wrote: >> >> Very nice. As a point of interest, I wrote something similar for Go >> packages inside Google called "writeme". It worked with multiple languages >> (t

Re: [go-nuts] sync/atomic and zero-initialization

2019-03-11 Thread 'Keith Randall' via golang-nuts
The garbage collector ensures that after it has zeroed memory, it does proper synchronization to hand off that memory to an allocator. That allocator (and the goroutine on whose behalf it is working) is then guaranteed to see the zeroed memory. That's how heap memory works. Stack memory is a sp

Re: [go-nuts] Re: How to retain environment in SSH

2019-03-11 Thread Tom Mitchell
On Mon, Mar 11, 2019 at 9:16 AM wrote: > Perhaps someone will magically understand your problem. > Yes please, source.. or link to the source. Do tell us what: $ go env returns. I suspect that. your source is conservative and does not pass env variables to the remote shell as that is a d

Re: [go-nuts] aafaf

2019-03-11 Thread Ian Lance Taylor
On Mon, Mar 11, 2019 at 12:17 PM T L wrote: > > The page (https://golang.org/cmd/go/#hdr-Remote_import_paths) mentions > >> For example, >> >> import "example.org/pkg/foo" >> >> will result in the following requests: >> >> https://example.org/pkg/foo?go-get=1 (preferred) >> http://exa

Re: [go-nuts] Performance comparison of Go, C++, and Java for biological sequencing tool

2019-03-11 Thread 'Isaac Gouy' via golang-nuts
On Wednesday, March 6, 2019 at 7:22:41 PM UTC-8, Michael Jones wrote: > > …make the compiler's rewrite rules and register assignments be able to > express that two 32-bit variables are "roommates" in a 64-bit register. > Kind-of like Automatic Vectorization

Re: [go-nuts] Debugging & breakpoints in Go compiler source code

2019-03-11 Thread Ian Lance Taylor
On Mon, Mar 11, 2019 at 4:00 PM Mohit Verma wrote: > > Thanks Ian. This helped me to identify what processes are launched when go > build is called. > I then ran gdb just for the process that compiled the file for which I wanted > to debug the compilation: > > gdb --args /home/administrator/Work

Re: [go-nuts] Debugging & breakpoints in Go compiler source code

2019-03-11 Thread Mohit Verma
Thanks Ian. This helped me to identify what processes are launched when go build is called. I then ran gdb just for the process that compiled the file for which I wanted to debug the compilation: gdb --args /home/administrator/Work/go/src/go/pkg/tool/linux_amd64/compile -o /tmp/go-build037119929/b

Re: [go-nuts] Re: Performance comparison of Go, C++, and Java for biological sequencing tool

2019-03-11 Thread 'Isaac Gouy' via golang-nuts
On Wednesday, March 6, 2019 at 5:44:21 AM UTC-8, Robert Engels wrote: > > As I pointed out long ago on stackoverflow the benchmark games are > seriously flawed and should not be used for language performance > comparisons. > > As a simple example, look at binary trees. In all of the “fast” > im

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Dan Kortschak
My approach to dealing with these it that I set my mail client to text only display. This means that I see plain text where IDE coloured text is pasted, and I don't see images unless I go out of my way to do so. Dan On Mon, 2019-03-11 at 08:36 -0500, Robert Engels wrote: > I think you are confusi

Re: [go-nuts] Re: Should IP.DefaultMask() exist in today's Internet?

2019-03-11 Thread John Dreystadt
Yes, I was mistaken on this point. I got confused over someone's discussion of RFC 1918 with what the standard actually said. I should have checked closer before I posted that point. But I still don't see the reason for this function. In today's networking, the actual value you should use for a

Re: [go-nuts] Re: Packaging a Go module for Nix

2019-03-11 Thread thepudds1460
Hi Wael, Sorry, I am not quite following what you have and have not tried yet, and which issues you have hit with which techniques. Is one of the issues that the 'vcs' cache directory changes, even if the actual code you need for your build has not changed? If so, I wonder if you might be able

[go-nuts] Doc mistake?

2019-03-11 Thread T L
The page (https://golang.org/cmd/go/#hdr-Remote_import_paths) mentions For example, > > import "example.org/pkg/foo" > > will result in the following requests: > > https://example.org/pkg/foo?go-get=1 (preferred) > http://example.org/pkg/foo?go-get=1 (fallback, only with -insecure)

[go-nuts] aafaf

2019-03-11 Thread T L
The page (https://golang.org/cmd/go/#hdr-Remote_import_paths) mentions For example, > > import "example.org/pkg/foo" > > will result in the following requests: > > https://example.org/pkg/foo?go-get=1 (preferred) > http://example.org/pkg/foo?go-get=1 (fallback, only with -insecure)

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Ian Lance Taylor
On Mon, Mar 11, 2019 at 5:22 AM Wojciech S. Czarnecki wrote: > > On Mon, 11 Mar 2019 07:39:40 -0400 > Sameer Ajmani wrote: > > > I believe calling fellow community members lazy or incompetent > > violates our Code of Conduct. > > Q.E.D. > > > Please endeavor to restate your concern in a way that

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Ian Denhardt
Right, I understood what you were saying, but the fact is people *are* posting *screenshots* to the list. (I imagine others are *also* pasting from an IDE, but like you say a screen reader should have no trouble with those, so I assume a blind user wouldn't even notice anything off about those mes

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Robert Engels
That’s not exactly what I meant. I meant that copy and pasting from an IDE will often result in colored formatted text like looks like a screenshot but it is not, and a screen reader should have no problem with it. > On Mar 11, 2019, at 12:49 PM, Ian Denhardt wrote: > > Quoting Robert Engels

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Ian Denhardt
Quoting Robert Engels (2019-03-11 09:36:40) > I think you are confusing screenshots and copy and paste as html. The latter > works with screen readers and still gives colored text because most likely > the person is using an IDE. I suspect Wojciech is not confusing these two, seeing as just now

Re: [go-nuts] How to properly set an http.Client limits and monitor connection pool

2019-03-11 Thread Robert Engels
You need to reuse the client http transport or you will run out of connections at the os level due to them being in a closed wait state. > On Mar 11, 2019, at 4:56 AM, Javier wrote: > > Hi > > I am load testing a simple application that calls an echo service with a GET. > My application is te

Re: [go-nuts] How to retain environment in SSH

2019-03-11 Thread Manuel Amador (Rudd-O)
I can think of one thing which may be the case: If you SSH via the terminal, some bashrc/bashprofile thingie might run on the server that would not otherwise run in batch mode (noninteractively, which is what your Go code is likely doing). Try this: ssh -o "BatchMode yes" host sh -c 'echo $VARIA

Re: [go-nuts] goreadme - automate Github Go projects readme files.

2019-03-11 Thread Eyal
On Sunday, March 10, 2019 at 12:10:23 AM UTC+2, Sameer Ajmani wrote: > > Very nice. As a point of interest, I wrote something similar for Go > packages inside Google called "writeme". It worked with multiple languages > (the ones used inside Google), but had to be run manually. Your hook > int

[go-nuts] How to properly set an http.Client limits and monitor connection pool

2019-03-11 Thread Javier
Hi I am load testing a simple application that calls an echo service with a GET. My application is tested with ab tool and the load is 500 concurrent connections with 5 requests. The application is failing after a while because i/o errors that I assume are related to the client connection

Re: [go-nuts] Re: Packaging a Go module for Nix

2019-03-11 Thread Manlio Perillo
On Monday, March 11, 2019 at 4:22:04 PM UTC+1, Wael Nasreddine wrote: > [...] > On Sunday, March 10, 2019 at 6:59:07 PM UTC-7, Manlio Perillo wrote: On Monday, March 11, 2019 at 12:30:02 AM UTC+1, Wael Nasreddine wrote: > > TL;DR Given a Go module, assuming that I have already

Re: [go-nuts] Module replacement forks and Artifactory

2019-03-11 Thread Marcin Romaszewicz
I've been beating my head into this recently as well, and I'm not done yet so I can't say this works for sure, but the workaround appears to be a virtual Go repository in Artifactory. You would create a Go repository for github.com and another for , then create a virtual repository on top of those

[go-nuts] Module replacement forks and Artifactory

2019-03-11 Thread David Riley
Hi all, We're running into a bit of an interesting problem with modules. A month or two ago, we finally converted our project over to using modules, partly because it was The Right Thing To Do and partly because Artifactory supports module repositories (but not dep). The process hasn't exactl

[go-nuts] Re: How to retain environment in SSH

2019-03-11 Thread jake6502
Perhaps someone will magically understand your problem. But in general I would say that you should post more information if you want a good chance of a useful reply. Some tips: Please never post screenshots unless there is an overwhelming reason to do so. This is not one of those cases. Instead

Re: [go-nuts] Re: Packaging a Go module for Nix

2019-03-11 Thread Wael M. Nasreddine
On Mon, Mar 11, 2019 at 3:02 AM Manlio Perillo wrote: > On Monday, March 11, 2019 at 6:12:05 AM UTC+1, Wael Nasreddine wrote: >> >> On Sunday, March 10, 2019 at 6:44:10 PM UTC-7, Manlio Perillo wrote: >>> >>> On Monday, March 11, 2019 at 2:06:44 AM UTC+1, Wael Nasreddine wrote: >>>

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Shulhan
On Mon, 11 Mar 2019 14:11:32 +0100 Reto Brunner wrote: > On Mon, Mar 11, 2019 at 07:46:27PM +0700, Shulhan wrote: > > I like to read email before sleep, keeping up-to-date with recent > > discussion and what not. > > How are you able to cope with mailing lists? > I find list messages seriously

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Manlio Perillo
On Monday, March 11, 2019 at 1:02:54 PM UTC+1, Reto Brunner wrote: > > On Mon, Mar 11, 2019 at 04:36:32AM -0700, Manlio Perillo wrote: > > I consider polite to use the interleaved reply style and to trim the > > original message as much as possible. It requires time and thinking, > > something

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Robert Engels
I think you are confusing screenshots and copy and paste as html. The latter works with screen readers and still gives colored text because most likely the person is using an IDE. > On Mar 11, 2019, at 7:21 AM, Wojciech S. Czarnecki wrote: > > On Mon, 11 Mar 2019 07:39:40 -0400 > Sameer Ajman

[go-nuts] Re: Is it possible to cache Javascript function references and then Invoke() them ? (WebAssembly)

2019-03-11 Thread Daniel Salvadori
I'm also interested in this. On Friday, March 8, 2019 at 12:40:21 PM UTC-3, Elemer Pixard wrote: > > Hi, > > > The recommended way to call a Javascript function through syscall/js seems > to be: > > doc := js.Global().Get("document") > div := doc.Call("createElement", "div") > > > Why is not poss

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Reto Brunner
On Mon, Mar 11, 2019 at 07:46:27PM +0700, Shulhan wrote: > I like to read email before sleep, keeping up-to-date with recent discussion > and what not. How are you able to cope with mailing lists? I find list messages seriously unreadable with the gmail app, due to the lack of threading. -- Yo

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Shulhan
On Mon, 11 Mar 2019 13:02:28 +0100 Reto Brunner wrote: > On Mon, Mar 11, 2019 at 04:36:32AM -0700, Manlio Perillo wrote: > > I consider polite to use the interleaved reply style and to trim the > > original message as much as possible. It requires time and > > thinking, something that seems to b

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Wojciech S. Czarnecki
On Mon, 11 Mar 2019 07:39:40 -0400 Sameer Ajmani wrote: > I believe calling fellow community members lazy or incompetent > violates our Code of Conduct. Q.E.D. > Please endeavor to restate your concern in a way that doesn't insult others. > I expect they simply do not know why sending screensh

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Reto Brunner
On Mon, Mar 11, 2019 at 04:36:32AM -0700, Manlio Perillo wrote: > I consider polite to use the interleaved reply style and to trim the > original message as much as possible. It requires time and thinking, > something that seems to be rare nowadays. And yet you are right now also not doing it, ad

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Manlio Perillo
I would say lack of culture. One of the thing I don't like with golang-nuts is that there is not an unique quoting rule. People here use both top and bottom posting. Coming from usenet I feel a bit uncomfortable like now when I'm replying to this thread. I consider polite to use the interleave

Re: [go-nuts] sync/atomic and zero-initialization

2019-03-11 Thread shivaram via golang-nuts
Thanks very much. For my own edification, could you give me some pointers (pun not intended) as to how the current runtime implementation ensures that uninitialized memory is never visible to any goroutine, even if the only synchronization used to read it is a sync/atomic primitive? On Monday,

Re: [go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Dan Kortschak
There is an increasing culture of this in many places. Many students often post screen shots in place of reproducers and textual error. I invariably reply that they need to post code and text. I am not sure I am winning here. Dan On Mon, 2019-03-11 at 11:17 +0100, Wojciech S. Czarnecki wrote: > T

[go-nuts] [CoC] screenshot images. Lazines or incompetence?

2019-03-11 Thread Wojciech S. Czarnecki
There is an emerging issue with screenshots of logs or code being posted to the programming mail lists just because posters either are too incompetent to learn how to copy/paste text, or are too lazy to mark relevant parts and then press a few keys more than PrtSc. Meanwhile asking others to give t

[go-nuts] Re: Packaging a Go module for Nix

2019-03-11 Thread Manlio Perillo
On Monday, March 11, 2019 at 6:12:05 AM UTC+1, Wael Nasreddine wrote: > > On Sunday, March 10, 2019 at 6:44:10 PM UTC-7, Manlio Perillo wrote: >> >> On Monday, March 11, 2019 at 2:06:44 AM UTC+1, Wael Nasreddine wrote: >>> >>> >>> >>> On Sunday, March 10, 2019 at 5:01:01 PM UTC-7, Manlio Perillo wr

[go-nuts] Re: Go playground to support none-standard modules

2019-03-11 Thread Subramanian Sridharan
Try repl.it . I think you can upload the non-standard modules as folders and them import them in your code. On Sunday, March 10, 2019 at 8:20:15 AM UTC+5:30, Tong Sun wrote: > > I know Go playground does not support none-standard modules. > Is there any online site t

[go-nuts] Re: Implementing an EventBus in Go

2019-03-11 Thread Amnon Baron Cohen
https://github.com/nats-io/go-nats On Monday, 11 March 2019 04:41:25 UTC, Kasun Vithanage wrote: > > Hi all, > > I've experience implementing event buses in Java. > In Java, I used a singleton where I can register callbacks to methods and > fire event from a publisher(maybe from another thread)

[go-nuts] How to retain environment in SSH

2019-03-11 Thread Subramanian Sridharan
Hi guys! I would like to know how to keep the environment variables over SSH using Go. I find that several environment variables are missing when I SSH using Go. For instance, the proxy environment variables are not present when I SSH using Go, but they're present when I SSH using an actual t