Re: [go-nuts] Go language should become an ANSI and ISO standard.

2018-10-10 Thread beoran
I understand very well what the risks of standardization can be. Look at how the C language was maimed during standardization by 104 instances of undefined behavior. But that is not what I am getting at. Five years ago I was somewhat involved in the effort to make Ruby an ISO standard language. Fr

[go-nuts] A concrete proposal re: using interfaces instead of contracts in Go 2 generics.

2018-10-10 Thread Ian Denhardt
I've seen a lot of folks expressing the sentiment "we should just use interfaces instead of this new contract thing." Most of the discussion I've seen around this jumps right to operator overloading without being terribly explicit about the general case; I've written a proposal focusing on the latt

Re: [go-nuts] Casting Back from nested Struct

2018-10-10 Thread Marvin Renich
* Chris Hopkins [181010 12:04]: > Hi, > I appreciate this is not possible, but realised I never understood why (so > have just been working around it). > Example code at: > https://play.golang.org/p/BgFL9T0KiC7 > > I can create a struct with other structs as a member. I then get all the > field

Re: [go-nuts] Re: Is it safe to run go build in parallel?

2018-10-10 Thread Yulrizka
It seems that after searching in google, I found couple of similar issue: most of them are related to parallel build with "GNU parallel" which is in our case as well. https://github.com/gravitational/teleport/issues/1708 https://github.com/grpc/grpc-go/issues/368 https://github.com/vmware/vic/is

[go-nuts] [Proposal] Goroutine Scoped Context

2018-10-10 Thread Eyal
Hi, I wrote a proposal about making the context goroutine scoped. Please read the current design problems and how I suggest to solve them: https://posener.github.io/goroutine-scoped-context Thanks, Eyal -- You received this message because y

Re: [go-nuts] async IO

2018-10-10 Thread Ian Lance Taylor
On Wed, Oct 10, 2018 at 10:00 AM, robert engels wrote: > > Ah, thanks. The read first, then possible deschedule/poll threw me. > > Doesn’t this mean though that as network traffic becomes very high, that the > connections might starve because the number of actual threads is capped > (GOMAXPROCS)

Re: [go-nuts] async IO

2018-10-10 Thread robert engels
Ah, thanks. The read first, then possible deschedule/poll threw me. Doesn’t this mean though that as network traffic becomes very high, that the connections might starve because the number of actual threads is capped (GOMAXPROCS) - it would seem you pair the scheduling penalty twice this way, o

Re: [go-nuts] Go language should become an ANSI and ISO standard.

2018-10-10 Thread Michael Jones
I was the engineering director for OpenGL’s birth and growth at SGI and have perspective on that process, and was for a long time a board member of the Open Geospatial Consortium (OGC) and have views from those ISO-related adventures. I’m with Ian on this—I quite deeply respect standards but see t

Re: [go-nuts] async IO

2018-10-10 Thread Ian Lance Taylor
On Wed, Oct 10, 2018 at 9:35 AM, robert engels wrote: > > It was my understanding that all IO in Go was async, and that behind the > scenes when you made a network read, it enqueued the fd, descheduled the Go > routine, and performed a select/poll on some other thread, then based on the > sele

[go-nuts] async IO

2018-10-10 Thread robert engels
It was my understanding that all IO in Go was async, and that behind the scenes when you made a network read, it enqueued the fd, descheduled the Go routine, and performed a select/poll on some other thread, then based on the select, it would rescheduled the proper Go routine to perform the rea

Re: [go-nuts] Casting Back from nested Struct

2018-10-10 Thread Burak Serdar
On Wed, Oct 10, 2018 at 10:04 AM Chris Hopkins wrote: > > Hi, > I appreciate this is not possible, but realised I never understood why (so > have just been working around it). > Example code at: > https://play.golang.org/p/BgFL9T0KiC7 > > I can create a struct with other structs as a member. I th

[go-nuts] Casting Back from nested Struct

2018-10-10 Thread Chris Hopkins
Hi, I appreciate this is not possible, but realised I never understood why (so have just been working around it). Example code at: https://play.golang.org/p/BgFL9T0KiC7 I can create a struct with other structs as a member. I then get all the fields and methods associated with that member. But yo

Re: [go-nuts] Go language should become an ANSI and ISO standard.

2018-10-10 Thread Ian Lance Taylor
On Wed, Oct 10, 2018 at 7:55 AM, Beoran wrote: > > In certain environments, such as for government contracting in certain > countries, or for certain large corporations, or for developing safety > critical applications using certain international standards, only programming > languages that are

[go-nuts] Visit London

2018-10-10 Thread Paul Jolly
Hi everyone, London is famous for many things: the Royal Family, Buckingham Palace, people standing in queues, Big Ben, the lack of air conditioning in theatres, musicals. We could go on. But did you know it's also famous for the Go London User Group (GLUG), aka London Gophers?? :) With over 250

[go-nuts] Go language should become an ANSI and ISO standard.

2018-10-10 Thread Beoran
In certain environments, such as for government contracting in certain countries, or for certain large corporations, or for developing safety critical applications using certain international standards, only programming languages that are officially standardized may be used. While Go would be an

[go-nuts] rplidar_sdk_go - controlling the RPLidar scanner from Go

2018-10-10 Thread Simon Ritchie
Slamtec's RPLidar scanner is used in robotics, SLAM and solid modelling applications. It's a small, light and cheap Lidar solution - versions are available for about $80. Slamtec publish what they describe as an SDK. Strictly it's just a C++ library of control methods and a few example applic