[go-nuts] Json and value

2018-12-11 Thread olivier . galeote
Hello, I trie to get value from api request i have this response

Re: [go-nuts] Pause failures, GC, & StopTheWorld

2018-12-11 Thread robert engels
You might want to review this https://github.com/golang/go/issues/10958 > On Dec 11, 2018, at 10:16 PM, robert engels wrote: > > Reviewing the code, the 5s of cpu time is technically the stop-the-world > (STW) sweep termination > > So, I think the cause of your problem is that you have a

Re: [go-nuts] Pause failures, GC, & StopTheWorld

2018-12-11 Thread robert engels
Reviewing the code, the 5s of cpu time is technically the stop-the-world (STW) sweep termination So, I think the cause of your problem is that you have a tight / “infinite” loop that is not calling runtime.Gosched(), so it is taking a very long time for the sweep termination to complete. >

Re: [go-nuts] Pause failures, GC, & StopTheWorld

2018-12-11 Thread robert engels
Btw, I only am guessing large stacks because the memory in use is not that great or expanding, and the CPU time is massive - meaning walking lots of stack or root objects. > On Dec 11, 2018, at 9:43 PM, robert engels wrote: > > Well, your pause is clearly related to the GC - the first phase,

Re: [go-nuts] Pause failures, GC, & StopTheWorld

2018-12-11 Thread robert engels
Well, your pause is clearly related to the GC - the first phase, the mark, is 5s in #17. Are you certain you don’t have an incorrect highly recursive loop that is causing the stack marking to take a really long time… ? > On Dec 11, 2018, at 8:45 PM, Eric Hamilton wrote: > > Of course. (I

Re: [go-nuts] How to build gollvm on arm platform

2018-12-11 Thread morefun . fang
Hi Than, I will start with CABIOracle as your suggestion. Thanks again. :) BR. -- 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

Re: [go-nuts] Pause failures, GC, & StopTheWorld

2018-12-11 Thread Eric Hamilton
Of course. (I forgot about that option and I'd collected those traces at a time when I thought I'd ruled out GC-- probably misread MemStats values). Here's the gctrace output for a repro with a 5.6 second delay ending with finish of gc17 and a 30+ second delay ending in SIGTERM (which

Re: [go-nuts] tools for testing transport over flakey networks

2018-12-11 Thread robert engels
That looks very good, and easy to use, but as I described, it won’t test the TCP flow control behavior due to dropped packets - it can inject delays, etc. but not drop IP datagrams. At the end of the day though, if you configure the delays correctly and randomly, you can simulate the most real

Re: [go-nuts] tools for testing transport over flakey networks

2018-12-11 Thread Rene Cunningham
On Wed, Dec 12, 2018 at 10:35:14AM +1030, Dan Kortschak wrote: > Is anyone aware of testing infrastructure for simulating flakey > networks without recourse to iptables on linux, i.e. a Go package/type > that can be used to to this? toxiyproxy maybe interesting?

Re: [go-nuts] tools for testing transport over flakey networks

2018-12-11 Thread robert engels
Yes, you can do it for UDP easily, but anything TCP/stream based you can “throttle”, but can’t simulate dropped packets by a router, etc. unless using a raw IP proxy and you need to perform packet manipulation, etc. - not trivial. What I’ve found is that using “delays” only test part of the

Re: [go-nuts] tools for testing transport over flakey networks

2018-12-11 Thread Dan Kortschak
Yeah, that's the kind of thing. On Tue, 2018-12-11 at 19:45 -0500, Ian Denhardt wrote: > Quoting robert engels (2018-12-11 19:39:46) > > > > > I am not sure you can do this at the application layer - you need > > kernel support to drop packets. > One could write a mock implementation of e.g.

Re: [go-nuts] tools for testing transport over flakey networks

2018-12-11 Thread Ian Denhardt
Quoting robert engels (2018-12-11 19:39:46) > I am not sure you can do this at the application layer - you need kernel > support to drop packets. One could write a mock implementation of e.g. net.Conn that does this kind of simulation; have a goroutine that calls time.Sleep at random intervals

Re: [go-nuts] tools for testing transport over flakey networks

2018-12-11 Thread robert engels
I am not sure you can do this at the application layer - you need kernel support to drop packets. You can however trivially create a TCP proxy that slows traffic simulating dropped packets / congested networks. You might be able to do a proxy in Go using raw packets, but a lot of work. Maybe

Re: [go-nuts] Pause failures, GC, & StopTheWorld

2018-12-11 Thread robert engels
I think it would be more helpful if you used gctrace=1 to report on the GC activity. > On Dec 11, 2018, at 3:37 PM, e...@kasten.io wrote: > > I am observing pause failures in an application and it appears to me that I’m > seeing it take from 5 to 28 seconds or more for the StopTheWorld to take

[go-nuts] tools for testing transport over flakey networks

2018-12-11 Thread Dan Kortschak
Is anyone aware of testing infrastructure for simulating flakey networks without recourse to iptables on linux, i.e. a Go package/type that can be used to to this? thanks Dan -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

[go-nuts] Pause failures, GC, & StopTheWorld

2018-12-11 Thread eric
I am observing pause failures in an application and it appears to me that I’m seeing it take from 5 to 28 seconds or more for the StopTheWorld to take effect for GC. In all likelihood the problem lies in the application, but before I start changing it or attempting to tune GC, I’d like to

Re: [go-nuts] Re: Generics

2018-12-11 Thread Tharaneedharan Vilwanathan
Thank you for the details! Regards dharani On Tue, Dec 11, 2018 at 2:13 AM wrote: > Here are some code generators that let you define template parameters: > > https://github.com/cheekybits/genny > https://github.com/taylorchu/generic > https://github.com/joeshaw/gengen >

Re: [go-nuts] Re: Plan9 reborn as a guest OS atop of Golang runtime

2018-12-11 Thread Rob Pike
Interesting list. It was actually done by Phil Winterbottom, Sean Dorward, and myself. Rog and Charles picked it up later and took on stewardship, which they did well. -rob On Wed, Dec 12, 2018 at 3:41 AM Christopher Sebastian wrote: > Also, don't forget about the pinnacle of human

Re: [go-nuts] build go in Intellij

2018-12-11 Thread robert engels
Thanks. I opened the issue. Looks like it is being fixed in IntelliJ 2019.1. > On Dec 11, 2018, at 9:56 AM, Florin Pățan wrote: > > Hi Robert, > > I would suggest creating an issue on our tracker so that the team can have a > look at the issue and help you out. > I pre-filled the issue for

[go-nuts] Re: Plan9 reborn as a guest OS atop of Golang runtime

2018-12-11 Thread Christopher Sebastian
Also, don't forget about the pinnacle of human achievement in OS design: Inferno. https://en.wikipedia.org/wiki/Inferno_(operating_system) http://www.vitanuova.com/inferno/ https://bitbucket.org/inferno-os/inferno-os Inferno was written in the early 90's by Ken Thompson, Rob Pike, Roger Peppé,

Re: [go-nuts] How to build gollvm on arm platform

2018-12-11 Thread 'Than McIntosh' via golang-nuts
Hi again, >>I am interested in contributing code to enable ARM port. I plan to spend some times on learning gofrontend firstly, then the bridge. That sounds great. I can certainly offer advice and help along the way. >>1, Is there any arch-specific code/IR in gofrontend? The frontend code

Re: [go-nuts] build go in Intellij

2018-12-11 Thread Florin Pățan
Hi Robert, I would suggest creating an issue on our tracker so that the team can have a look at the issue and help you out. I pre-filled the issue for you at this link https://goo.gl/ytk38S but you will have to attach the images/submit the issue so that you can get the updates on it. You will

[go-nuts] Re: ping binding to interface

2018-12-11 Thread Christian Joergensen
Check out: - https://godoc.org/golang.org/x/net/icmp - https://godoc.org/golang.org/x/net/ipv4 - https://godoc.org/golang.org/x/net/ipv6 Cheers, Christian On Tuesday, December 11, 2018 at 9:02:02 AM UTC+1, Naveen Neelakanta wrote: > > Hi All, > > I have an application in golang, which

[go-nuts] Re: Go 1.11.1 is released

2018-12-11 Thread Sascha Andres
Hi Khaled, he had two go binaries in his path with different versions. So he had multiple installations mixing up. Try to look if you have multiple go installations - if you uninstall one and then again put another on the system you still end up with two. On Linux you could have installed one

[go-nuts] Re: Generics

2018-12-11 Thread ffm2002
Here are some code generators that let you define template parameters: https://github.com/cheekybits/genny https://github.com/taylorchu/generic https://github.com/joeshaw/gengen https://github.com/clipperhouse/gen Making use of Go templates: https://github.com/ncw/gotemplate

Re: [go-nuts] Generics

2018-12-11 Thread Tharaneedharan Vilwanathan
Sorry for I was not clear in my first mail. People may be having some solution when they need generics in Go. For example, I see some details here: https://appliedgo.net/generics/ I was wondering if there is any solution that is popular that I can use. The reason why I am looking for is, I

[go-nuts] Re: Starlight - run python inside Go to extend your applications - easily

2018-12-11 Thread michal
On Tuesday, December 11, 2018 at 3:35:37 AM UTC+1, Jason E. Aten wrote: > > For full, actual python inside Go, one could combine: > > (a) https://github.com/iodide-project/pyodide has the python scientific > stack compiled to wasm (python + numpy + scipy + numplotlib) > > and > > (b) either

[go-nuts] ping binding to interface

2018-12-11 Thread Naveen Neelakanta
Hi All, I have an application in golang, which requires me to bind to interface and send ping request. Any help would be appreciated Thanks Naveen -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop