[go-nuts] Re: How can I debug high garbage collection rate cause high CPU usage issue in golang

2019-06-05 Thread Inada Naoki
There are two reason GC is heavy: a) Many garbages are created very frequently. b) There are many (living) objects GC need to scan every time. (Because Go's GC is not generational) Finding bottleneck of (a) is easy. `pprof -alloc_objects ...` tell you where many objects are allocated. (b)

[go-nuts] Re: How can stop a Read of net.Conn without closing it

2019-06-05 Thread Inada Naoki
conn.SetReadDeadline(time.Now()) -- 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 discussion on the web

Re: [go-nuts] Re: How can stop a Read of net.Conn without closing it

2019-06-05 Thread Kurtis Rader
On Tue, Jun 4, 2019 at 11:53 PM Inada Naoki wrote: > conn.SetReadDeadline(time.Now()) > Did you test that solution? Setting a deadline only affects "future Read calls" according to the documentation. It cannot be used to timeout an extant read. Which is what I would expect given the available

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

2019-06-05 Thread jelena
Any Frech developer or France-based developers wanting to work on GO or willing to gain those skills ? Contact me if so, Best, GOGOphers! Le jeudi 23 mai 2019 15:18:25 UTC+2, lgo...@gmail.com a écrit : > > https://utcc.utoronto.ca/~cks/space/blog/programming/GoIsGooglesLanguage > -- You

Re: [go-nuts] Re: net.InterfaceAddrs() error and returned addr slice

2019-06-05 Thread Vasiliy Tolstov
чт, 16 мая 2019 г. в 19:04, : > > > > On Wednesday, May 15, 2019 at 5:00:26 PM UTC-4, Vasiliy Tolstov wrote: >> >> Hi! I have error from net.InterfaceAddrs() like route ip+net: no such >> network interface >> i think that error happened because i have docker running that >> creates/deletes

Re: [go-nuts] Pattern Syntax in Golang

2019-06-05 Thread Michael Jones
Nadim, from what you have written I sense that you appreciate (or will enjoy learning about) the style of programming that emerged with SNOBOL some time ago. The notion of programming not just by saying "do this, then this, then..." but at a higher and more conceptual level of *matching*

[go-nuts] Re: How can I debug high garbage collection rate cause high CPU usage issue in golang

2019-06-05 Thread Rick Hudson
When you say "set up GC rate(10%) to reduce memory usage down to normal" what exactly did the program do? Compute (CPU) costs money and heap memory (DRAM) costs money. Minimizing the sum should be the goal. This requires one to have a model of the relative costs of CPU vs. RAM, HW folks

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Ian Lance Taylor
On Wed, Jun 5, 2019 at 10:47 AM Randall O'Reilly wrote: > > It’s great to see that so many people share my considerable enthusiasm for > this proposal! Seriously, nobody is willing to take a look and provide any > feedback? > > - Randy > > > On Jun 3, 2019, at 2:53 AM, Randall O'Reilly wrote:

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Randall O'Reilly
It’s great to see that so many people share my considerable enthusiasm for this proposal! Seriously, nobody is willing to take a look and provide any feedback? - Randy > On Jun 3, 2019, at 2:53 AM, Randall O'Reilly wrote: > > I wrote up a coherent proposal based on the core of the idea

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Randall O'Reilly
On Jun 5, 2019, at 12:03 PM, Ian Lance Taylor wrote: > > On Wed, Jun 5, 2019 at 10:47 AM Randall O'Reilly wrote: >> >> It’s great to see that so many people share my considerable enthusiasm for >> this proposal! Seriously, nobody is willing to take a look and provide any >> feedback? >> >>

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Robert Engels
-Original Message- >From: Randall O'Reilly >Sent: Jun 5, 2019 1:58 PM >To: Ian Lance Taylor >Cc: Michal Strba , golang-nuts > >Subject: Re: [go-nuts] Go 2 generics counterproposal: giving up restricting >types > >On Jun 5, 2019, at 12:03 PM, Ian Lance Taylor wrote: >> >> On

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Randall O'Reilly
That is a good point of clarification about the specific limitation of this proposal: it specifically reifies the existing Go type system and does NOT enable the generic-ification of arbitrary novel types. If you can build a specialized type out of generic versions of existing Go types, then

Re: [go-nuts] Pattern Syntax in Golang

2019-06-05 Thread Nadim Kobeissi
Hello, and thank you for your response. I never intended to suggest that adding pattern matching would allow Go computational capabilities that it did not previously have. I agree that switch can be wielded to achieve the same logic in a syntax and structures that roughly resembles my suggestion.

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Michal Strba
Ian, have you had the time to evaluate the improvements to my proposal (the original one in this thread)? I'd love to hear if it has some more significat shortcomings and know what to think about. Or, if it has no perspective, I'd love to hear why. I know you're busy, so responding with "I

Re: [go-nuts] [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-06-05 Thread dolanor
Him Source Hut actually requires me to create an account to read the mailing list. Hmph. Anyway, I tried to run it on android and web (don't have wayland), and they work! It's just weird to interact within a canvas on the web and not get all the niceties of the classic html controls. And on

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Burak Serdar
On Wed, Jun 5, 2019 at 11:47 AM Randall O'Reilly wrote: > > It’s great to see that so many people share my considerable enthusiasm for > this proposal! Seriously, nobody is willing to take a look and provide any > feedback? This reminds me of a proposal I wrote some months ago that uses

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread lgodio2
Michael, Considering all improvements you've made to the original, is the current version of your proposal clear to all following this thread ? On Wednesday, June 5, 2019 at 6:03:12 PM UTC-4, Michal Strba wrote: > > Ian, have you had the time to evaluate the improvements to my proposal > (the

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Robert Engels
-Original Message- >From: Randall O'Reilly >Sent: Jun 5, 2019 2:33 PM >To: Robert Engels >Cc: Ian Lance Taylor , Michal Strba , >golang-nuts >Subject: Re: [go-nuts] Go 2 generics counterproposal: giving up restricting >types > >That is a good point of clarification about the

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Ian Lance Taylor
On Wed, Jun 5, 2019 at 3:02 PM Michal Strba wrote: > > Ian, have you had the time to evaluate the improvements to my proposal (the > original one in this thread)? I'd love to hear if it has some more significat > shortcomings and know what to think about. Or, if it has no perspective, I'd >

Re: [go-nuts] Go 2 generics counterproposal: giving up restricting types

2019-06-05 Thread Randall O'Reilly
On Jun 5, 2019, at 8:36 PM, Burak Serdar wrote: > > On Wed, Jun 5, 2019 at 11:47 AM Randall O'Reilly wrote: >> >> It’s great to see that so many people share my considerable enthusiasm for >> this proposal! Seriously, nobody is willing to take a look and provide any >> feedback? > > This

Re: [go-nuts] Pattern Syntax in Golang

2019-06-05 Thread Ian Lance Taylor
On Tue, Jun 4, 2019 at 10:22 PM Nadim Kobeissi wrote: > > Two more examples to show off some more cool ways match could be useful. > Here, I just demonstrate how we can have logic inside matches thanks to > anonymous functions: > > result = match getDayAndDate() { > "tuesday", _: "wow looks

Re: [go-nuts] Re: How can stop a Read of net.Conn without closing it

2019-06-05 Thread Ian Lance Taylor
On Wed, Jun 5, 2019 at 12:10 AM Kurtis Rader wrote: > > On Tue, Jun 4, 2019 at 11:53 PM Inada Naoki wrote: >> >> conn.SetReadDeadline(time.Now()) > > > Did you test that solution? Setting a deadline only affects "future Read > calls" according to the documentation. It cannot be used to timeout

[go-nuts] Re: Fabric Upload DSYM

2019-06-05 Thread Steeve Morin
Thank you! On Friday, February 26, 2016 at 2:03:55 PM UTC+1, Paulo Coutinho wrote: > > Hi, > > I have developed a tool to upload ios DSYM to Fabric/Crashlytics. I want > share to help someone that need it: > https://github.com/prsolucoes/fabric-upload-dsym > > Thanks. > -- You received this