Re: [go-nuts] Re: Golang and WebAssembly

2016-10-18 Thread bob
+1 for 'Web-assembly is still some time in the *feature*' On Sunday, July 12, 2015 at 8:15:41 AM UTC+1, Axel Wagner wrote: > > Tarrant Rollins > writes: > > My understanding, and I could be wrong, is that web assembly is > > largely a binary pre-parsed tree of asm.js source. I imagine it is > >

Re: [go-nuts] Go present installation

2018-01-29 Thread Bob Hancock
That is it. Thank you for the rapid reply. On Mon, Jan 29, 2018 at 4:00 PM Ian Lance Taylor wrote: > On Mon, Jan 29, 2018 at 12:49 PM, wilson wrote: > > > > On a Mac with go version 1.9.3 with a GOPATH=$HOME/go with the subdirs > src, > > pkg, and bin, I ran: > > > > go get golang.org/x/tools

[go-nuts] Debug high GC pause frequency issue

2018-02-06 Thread Bob Cao
I have a program whose GC pause frequency will quickly go from 40 calls per minute to 2000 calls per minute in a matter of hours, and the issue is kind of random on production. Is there any advice on how to spot the cause of the issue? -- You received this message because you are subscribed to

Re: [go-nuts] Debug high GC pause frequency issue

2018-02-06 Thread Bob Cao
wrote: > > On Tue, Feb 6, 2018 at 12:58 AM, Bob Cao > wrote: > > > > I have a program whose GC pause frequency will quickly go from 40 calls > per > > minute to 2000 calls per minute in a matter of hours, and the issue is > kind > > of random on produ

[go-nuts] Re: [golang-dev] Go 1.10 Beta 2 is released

2018-01-17 Thread bob . hiestand
port, but using 1.10 beta 2 on windows I received an error running 'go test' that I haven't encountered before: >go test -c open C:\Users\...\api.test.exe: The process cannot access the file because it is being used by another process. It has only occurred once in many (dozens, at

Re: [go-nuts] Elastic Search with GO lang

2019-06-10 Thread Bob Strecansky
The olivere/elastic package will help you filter these events in a way that's helpful. See: https://github.com/olivere/elastic for more details. There are a couple great examples within that repo that should help. On Mon, Jun 10, 2019 at 10:45 AM wrote: > Hi guys. > > I want push the s

[go-nuts] SetDeadline for io.Writer - is this right?

2016-11-06 Thread bob . hiestand
The simplest answer to the question as written is to change line 46 to make the response channel buffered: result: make(chan resp, 1), However, you don't have to worry about leaking open channels. For channels, close() is a signal, not resource management. Open channel

[go-nuts] Go-Routine, Concurrency Doubt

2016-11-06 Thread bob . hiestand
of 'i': go func(i int) { ... }(i) It would be better still to call the goroutine's parameter something other than 'i'. Bob -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

[go-nuts] CPU Profiling on Mac OS Sierra

2016-11-08 Thread bob . ziuchkovski
660ms 1.90% 61.46% 660ms 1.90% runtime.procyield Is there anyone else running Mac OS Sierra who can check/confirm correct profiling functionality on Go 1.7.3? Thanks, Bob -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] Re: CPU Profiling on Mac OS Sierra

2016-11-08 Thread bob . ziuchkovski
That explains it. Thank you very much for the info. I've confirmed that does indeed resolve the issue. Bob -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, se

Re: [go-nuts] Requesting help with the code

2020-02-17 Thread Bob Strecansky
If you haven't gone through "A tour of Go", I'd suggest it - it is pretty practical and helpful in learning the language: https://tour.golang.org/welcome/1 "Go by Example" has a bunch of good resources too for practical use: https://gobyexample.com/ Hope this hel

[go-nuts] Non-alphanumerics in template field names?

2020-07-31 Thread Bob DuCharme
name (e.g. {{."foo:bar"}}, {{.foo%3Abar}} ) with no luck. Does anyone know a way to allow non-alphanumeric characters (besides the underscore, which I know works) in names that get referenced in templates? Thanks, Bob -- You received this message because you are subscribed to the Go

[go-nuts] Re: Windows 'Access is denied' for os.Remove after exec.Output()

2020-08-15 Thread Bob Alexander
Here's what I think is really going on: At the end of a process's execution, 2 things happen: - The process's code finishes its execution -- wait returns. - The OS closes the executable file. The second item always "comes after" the first. On Windows the delay might be a few milliseconds, wh

Re: [go-nuts] Re: Windows 'Access is denied' for os.Remove after exec.Output()

2020-08-16 Thread Bob Alexander
few times that it is necessary. On Sat, Aug 15, 2020 at 9:31 AM Bob Alexander wrote: > Here's what I think is really going on: > > At the end of a process's execution, 2 things happen: > - The process's code finishes its execution -- wait returns. > - The OS cl

Re: [go-nuts] Re: Windows 'Access is denied' for os.Remove after exec.Output()

2020-08-16 Thread Bob Alexander
costs an inevitable short delay *only* in the less common case. On Sun, Aug 16, 2020 at 11:27 AM Bob Alexander wrote: > Note that the "retry loop for deleting the executable" technique has zero > wait time if the delete succeeds. > > A year or so ago I submitted a bug report b

[go-nuts] Contrary to popular opinion...

2021-02-25 Thread Bob Alexander
GOPATH mode does *not *limit your Go code to a single directory. I've seen this misunderstanding stated in probably hundreds of various posts. $GOPATH allows specification of multiple directories. I've used that capability for several years to distribute my Go code to my personal general library

Re: [go-nuts] Contrary to popular opinion...

2021-02-25 Thread Bob Alexander
t; code. > > On Feb 25, 2021, at 3:08 PM, Bob Alexander wrote: > >  > GOPATH mode does *not *limit your Go code to a single directory. I've > seen this misunderstanding stated in probably hundreds of various posts. > > $GOPATH allows specification of multiple d

Re: [go-nuts] Contrary to popular opinion...

2021-02-27 Thread Bob Alexander
t;>> >>>>> Given the writing on the wall that GOPATH is going away, what I have >>>>> done is created a single module where I keep all my own code, each >>>>> different experiment in its own subdirectory. I named it " >>>>> git

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread Bob Alexander
I never have understood the *serious* hatred of Python's "indentation as syntax" approach. I've used lots of bracketed and begin/end languages (C/C++, Algol & relatives, Ruby, and most other programming languages), and when I write code in those languages I usually indent as I write. Obviously, ind

[go-nuts] Alternate implementations of regular expression matching?

2021-04-01 Thread Bob Alexander
I have a use of regular expressions where I need the "atomic" matching features that I can get for several other languages, such as atomic matching groups and "possessive" quantifiers. I'm willing to forego the blazing performance of Go's standard library dfa matcher for this particular case. I can

[go-nuts] Re: Iterator handling error

2024-08-30 Thread Bob Glickstein
I like: ```go func Iter(ctx, data) (iter.Seq[Object], *error) ``` There are some examples of this pattern in https://pkg.go.dev/github.com/bobg/seqs Cheers, - Bob On Thursday, August 29, 2024 at 5:41:47 AM UTC-7 Dmitriy P wrote: > What is the best way to handle errors with iterators? >

[go-nuts] Understanding some gotchas with linking slices together via indexing

2022-11-01 Thread Brian, son of Bob
Can anyone explain these gotchas (demo )? I've tried reading articles on this [one , two ] but they don't go into enough detail. *Slight gotcha #1

Re: [go-nuts] Understanding some gotchas with linking slices together via indexing

2022-11-02 Thread Brian, son of Bob
Thanks! This has been super informative! On Thursday, November 3, 2022 at 1:48:49 AM UTC+8 Marvin Renich wrote: > * Brian, son of Bob [221102 00:49]: > > Can anyone explain these gotchas (demo < > https://go.dev/play/p/g40KMK-zsNk>)? > > I've tried reading ar