[go-nuts] Re: Quick question about calling Set-Cookie twice in a row

2020-07-14 Thread B Carr
In my application, the most recent cookie value with the same name is returned on the next request. On Tuesday, July 14, 2020 at 1:54:56 PM UTC-6, atd...@gmail.com wrote: > > Hello, > > As I am writing some tests, I was wondering what should be the correct > behavior when http.SetCookie is calle

[go-nuts] Re: Go Time #100 with Robert Griesemer and myself

2019-09-26 Thread B Carr
This was interesting. Thank you! On Wednesday, September 25, 2019 at 5:14:51 PM UTC-6, Rob 'Commander' Pike wrote: > > It's now live: https://changelog.com/gotime/100 > > > -rob > > -- You received this message bec

[go-nuts] Re: Golang project ideas

2019-08-19 Thread B Carr
Lots of consumer devices do not have webGUIs for them (CLI access only). Example, pick a consumer network router/switch such as one that OpenWRT can use. Many have a webGUI for the switch side of the unit but not the router side. Write a webGUI for the router side with an eye toward eventually

Re: [go-nuts] Re: package-level structs vs package-level vars

2019-08-05 Thread B Carr
On Monday, August 5, 2019 at 9:33:08 AM UTC-6, burak serdar wrote: > > On Mon, Aug 5, 2019 at 9:20 AM B Carr > > wrote: > > > > Oh. I'm talking about env variables which a goroutine sets by using > os.Setenv() which to me implies OS env variables. Are those en

Re: [go-nuts] Re: package-level structs vs package-level vars

2019-08-05 Thread B Carr
On Monday, August 5, 2019 at 8:52:41 AM UTC-6, burak serdar wrote: > > On Mon, Aug 5, 2019 at 8:47 AM B Carr > > wrote: > > > > Is it safe to say that environment variables (accessible to all > goroutines) also live in the data segment? > > No. > > W

[go-nuts] Re: package-level structs vs package-level vars

2019-08-05 Thread B Carr
Is it safe to say that environment variables (accessible to all goroutines) also live in the data segment? -- 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, send an email to golang

Re: [go-nuts] package-level structs vs package-level vars

2019-08-04 Thread B Carr
Would that be where structs live as well? On Sunday, August 4, 2019 at 6:25:55 PM UTC-6, Robert Engels wrote: > > I’m pretty sure they will be in the data section, for non > interface/pointer types which is even better than the stack. > -- You received this message because you are subscribed

[go-nuts] package-level structs vs package-level vars

2019-08-04 Thread B Carr
Concept observation. Could use some amplification from the congregants, please... I'm learning about Go. My webserver program had lots of package level vars and only two, small structs. I set a dozen webpages to refresh very busy data calculations every 6 seconds. Over the course of an hour, l

[go-nuts] Re: go question about goroutines

2019-07-25 Thread B Carr
I think the answer to this is No and Yes. On Wednesday, July 24, 2019 at 2:18:07 PM UTC-6, joe mcguckin wrote: > > > If I have multiple go applications running, do they share the same > runtime? Or does each one have it's own runtime and set of threads, etc. > -- You received this message beca

Re: [go-nuts] Go http server

2019-07-24 Thread B Carr
On Wednesday, July 24, 2019 at 2:17:58 PM UTC-6, Burak Serdar wrote: > > On Wed, Jul 24, 2019 at 1:36 PM B Carr > > wrote: > > > > I'm mostly interested in the degree of insulation one goroutine has from > another. My extensive reading indicates that abs

[go-nuts] Goroutines & ENV

2019-07-24 Thread B Carr
Basic question: Do goroutines all share the same ENV? -- 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, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discu

Re: [go-nuts] Go http server

2019-07-24 Thread B Carr
On Wednesday, July 24, 2019 at 1:11:31 PM UTC-6, Burak Serdar wrote: > > On Wed, Jul 24, 2019 at 12:37 PM B Carr > > wrote: > > > > Am I correct in thinking that the unique goroutine is active for the > entirety of the connection session? Everything between the

[go-nuts] Go http server

2019-07-24 Thread B Carr
Neophyte here. Concept help again, please. This all relates to Go. http server waiting for requests... http GET request comes in ... goroutine spins up handler calls function which may call another function which ultimately services the GET request by providing a response (webpage) then retu

[go-nuts] Re: Build issues on FreeBSD ZoF "unexpected stale targets"

2019-07-19 Thread B Carr
What does this part mean? "...with the ZFS rebased to ZFS on Linux..." On Friday, July 19, 2019 at 1:37:02 PM UTC-6, mat...@gmail.com wrote: > > I'm not sure where to ask this since this isn't actually a Go bug. Go > 1.12, 1.1, etc build fine on FreeBSD with ZFS in base. However, with the > ZF

[go-nuts] Re: About the Google logo on the new Go website

2019-07-15 Thread B Carr
Google has spent and is spending 10s of millions of $$$ on the development of Go and all while continuously giving it away without strings attached. And people have so much free time they complain about a tiny symbol in the upper left corner of the golang.org website? Thank you to the Go Develo

[go-nuts] Re: Go NaCl and C NaCl/libsodium

2019-07-13 Thread B Carr
Okay, I think I understand now. Ian intimates that support for "native client" is going away after Go v1.13. But support for the crypto/nacl package is remaining. Have I got that right? Thanks for explaining. -- You received this message because you are subscribed to the Google Groups "golan

Re: [go-nuts] Go NaCl and C NaCl/libsodium

2019-07-13 Thread B Carr
Ugh. Why is that? What is the recommended replacement? On Friday, July 12, 2019 at 10:34:10 PM UTC-6, Ian Lance Taylor wrote: > > > I'm just replying to make sure that you know > that we are dropping NaCl support from Go after the 1.13 release. > > Ian > -- You received this message because

Re: [go-nuts] Re: net/http and the GC

2019-07-08 Thread B Carr
On Monday, July 8, 2019 at 1:01:26 PM UTC-6, Burak Serdar wrote: > > > > I'll need to study this a bit more. Can you give me a pointer? > > I don't know really, other than the obvious ones like: > > http://devs.cloudimmunity.com/gotchas-and-common-mistakes-in-go-golang/ > https://golang.org/do

[go-nuts] Re: net/http and the GC

2019-07-08 Thread B Carr
Thank you, that means I'm thinking correctly about this and need to keep plugging along. >>"the total number of concurrent requests you can handle depends on how you handle your GET requests." I'll need to study this a bit more. Can you give me a pointer? -- You received this message because

[go-nuts] net/http and the GC

2019-07-08 Thread B Carr
Gophers - Trying to learn Go (I'm a hobbyist) and have a fundamental net/http question. I have a web server running with a web page set to refresh every 2 seconds. I have 3 different browsers making webserver GET requests. Each browser's refresh is spinning up a new goroutine on the server, rig

[go-nuts] Re: Cross-Compile Windows 10 -> FreeBSD

2019-06-12 Thread B Carr
Thank you. Probably too hard for me. On Tuesday, June 11, 2019 at 10:09:49 PM UTC-6, Tamás Gulácsi wrote: > > Not hopeless, just hard. You need a cross-C-compiler, and use that. > > It's easier to compile on native en. > But you can try github.com/karalabe/xgo if you have Docker. > -- You recei

[go-nuts] Re: Cross-Compile Windows 10 -> FreeBSD

2019-06-11 Thread B Carr
To reply to myself, I just found this comment under ADDENDUM: "Cgo has issues when cross compiling. If you depend on cgo then you’re probably going to be better off building on the native platforms. The go tool will disable cgo support by default. To explicitly enable cgo, set CGO_ENABLED=1."

[go-nuts] Cross-Compile Windows 10 -> FreeBSD

2019-06-11 Thread B Carr
Newb here. I'm in over my head. Using a Win10/amd64 PowerShell with Go v1.12.6. Trying to cross-compile to FreeBSD/amd64. go env = GOARCH=amd64 & GOOS=freebsd. Source includes calls to SQLite3. Compiles without errors. Resulting binary fails on FreeBSD with: "Can't connect to the SQLite DB Bina

[go-nuts] Re: Go 1.8 port to FreeBSD/PowerPC64

2019-06-03 Thread B Carr
I'm wondering what you are trying to do as well. Go (latest version) is already available in the ports collection for FreeBSD. Installs just fine. On Friday, May 31, 2019 at 7:54:55 PM UTC-6, Curtis Hamilton wrote: > > I’m porting Go 1.8 to FreeBSD/PowerPC64. I’ve successfully built > go-Free

[go-nuts] Re: Interesting public commentary on Go...

2019-05-23 Thread B Carr
I'm a hobbyist and make no money on the Go projects I write. This article seems a bit over-the-top, particularly Fred Fnord's comment. Doesn't Linus Torvalds have a stranglehold on the Linux kernel? Yet Linux flourishes. Rather than complaining about Google (via Go) why don't these folks simply