[go-nuts] Implementing a custom TCP client

2017-09-20 Thread newbgopher
Hi all! I already asked this on reddit , but I figured might as well ask it here. Im trying to implement a custom TCP client. This protocol allows request from both the client and the server Scenario

[go-nuts] Why bytes Buffer's ReadFrom method blocked when read from a UDP connection?

2017-09-20 Thread Ricky Zhang
UDP Server's code: package main import ( "fmt" "net" ) func main() { listener, err := net.ListenUDP("udp", {IP: net.ParseIP("127.0.0.1"), Port: 9981}) if err != nil { fmt.Println(err) return } fmt.Printf("Local: <%s> \n", listener.LocalAddr().String()) data :=

[go-nuts] Re: Why http header letter case changes?

2017-09-20 Thread Volker Dobler
The header keys are canonicalized. Unfortunately the standard canonical form of "ETag" is "Etag". The ETag header is the only HTTP header key which is not in the standard canonical form. Fortunately any compliant implementation will ignore capitalization of the header keys so this should never be

[go-nuts] Forcing multiple HTTP/2 connections to a single server?

2017-09-20 Thread Steven Hartland
We're looking to upgrade one of our services to enable TLS however as soon as we do that the services also going to switch to HTTP/2 which is good apart from for this service which requires multiple TCP connections to eliminate BDP issues when performing bulk downloads; think parallel

[go-nuts] Question regarding compiler internals

2017-09-20 Thread Jacob McCollum
All, This is my first time posting to the golang-nuts mailing list, but I've hit a wall and I'm not sure where else to reach out for some assistance. I'm knee-deep in a research implementation of parameterized types for Go. It started out as an experiment, but I really enjoyed working on it

[go-nuts] Re: Why bytes Buffer's ReadFrom method blocked when read from a UDP connection?

2017-09-20 Thread James Bardin
You shouldn't use bufio around a UDP connection. The reads are a fixed size, so there's no "batching" of reads that could happen, and you can't do a partial read of a UDP packet, so you're going to lose data as soon if the buffer attempts to top off with a read smaller than the next packet

[go-nuts] Golang, Google App Engine, Windows 10

2017-09-20 Thread Rob Shelby
Hi all. I'm having to make 2 transitions in my coding life. >From PHP to Go, which I'm happy about. >From Linux desktop to Windows 10, which I'm not as happy about. I love using Google's App Engine so I don't need to worry about servers etc. (Not Compute Engine) Anyways, any steps, advice,

Re: [go-nuts] Monads for Go Programmers

2017-09-20 Thread Walter Schulze
Thank you so much. That is great to hear :) On Wed, 20 Sep 2017 at 22:30 Nyah Check wrote: > Nice article, I love it > > On Wed, Sep 20, 2017 at 1:32 PM, Walter Schulze > wrote: > >>

[go-nuts] Monads for Go Programmers

2017-09-20 Thread Walter Schulze
https://awalterschulze.github.io/blog/post/monads-for-goprogrammers/ -- 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.

Re: [go-nuts] Monads for Go Programmers

2017-09-20 Thread Nyah Check
Nice article, I love it On Wed, Sep 20, 2017 at 1:32 PM, Walter Schulze wrote: > https://awalterschulze.github.io/blog/post/monads-for-goprogrammers/ > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To

[go-nuts] Re: glog log rotate not working correctly

2017-09-20 Thread alexguo123
glog library does not delete log files. It only creates new log files. Btw, not sure if you actually modified that "line", but note that you only need to modify the variable. Here's a rough example import ( "github.com/golang/glog" ) func main() { glog.MaxFileSize = 250MB } On Wednesday,

Re: [go-nuts] Go on ARM 32bit and 64bit resources and groups

2017-09-20 Thread Mandolyte
Slightly different question... would this ARM approach work on a Samsung Chromebook Plus which uses OP1 ARM, with Crouton installed? -- 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

[go-nuts] Re: Question regarding compiler internals

2017-09-20 Thread 'Keith Randall' via golang-nuts
On Wednesday, September 20, 2017 at 7:51:28 AM UTC-7, Jacob McCollum wrote: > > All, > > This is my first time posting to the golang-nuts mailing list, but I've > hit a wall and I'm not sure where else to reach out for some assistance. > > I'm knee-deep in a research implementation of

[go-nuts] Go jobs in Canada

2017-09-20 Thread Totoro W
Hi there, I'm now software developer in China and looking for a job in Canada. And I have worked with go for at least 5 years. Is there any opportunity there (i could relocate there if possible). I'd like to hear about them. My github: https://github.com/tw4452852 My blog: https://totorow.xyz

[go-nuts] Proposal: Just Use GitHub

2017-09-20 Thread Nate Finch
https://github.com/golang/go/issues/21956 Wherein I suggest that not using GitHub for PRs and Reviews for the Go Project itself is hurting the language and the community. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

Re: [go-nuts] Re: Go : Philosophy

2017-09-20 Thread Henry
I think pretty much of Python philosophy is transferrable to Go as the two languages seem to share a similar outlook. -- 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

[go-nuts] Implementing a custom TCP client

2017-09-20 Thread Tamás Gulácsi
I don't see anything obviously wrong, but using length-prefixed messages would simplify reading (no need to buffer) and wouldn't complicate writing. My 2¢ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Re: Go on ARM 32bit and 64bit resources and groups

2017-09-20 Thread Norbert Fuhs
Thanks for all the answers and replys it helped me a lot the thing that confuses me is that there are not many resources for using Go on Raspberry Pi although many Gophers seem to use Go on a Pi for pet projects... I will set up my own repo with resources and links I find it a bit hard for Go

Re: [go-nuts] Does golang support SystemTap well?

2017-09-20 Thread Aram Hăvărneanu
I would not use systemtap, its design is fundamentally flawed and requires special kernels. Linux supports now eBPF in mainline, which is a superior technical solution. Note that NO TRACER can support function return tracing in Go (including DTrace), for the reasons outlined above. In order to