Re: [go-nuts] Re: json.number in struct

2020-11-04 Thread Urjit Singh Bhatia
Yeah, iirc JSON doesn't really have a clear distinction between float and int because it has to sort of stay parallel to javascript. Found this link that explains a bit more... Excerpt: ```The precise treatment of the “integer” type may depend on the implementation of your JSON Schema

Re: [go-nuts] schedule a job executing in future

2020-10-21 Thread Urjit Singh Bhatia
Hi James, I had a similar need a few years ago and wrote this https://github.com/chronomq/chronomq We've been using it in production for more than 2 years now and the project is fairly stable. On Tuesday, October 20, 2020 at 1:40:59 AM UTC-7 gzh...@gmail.com wrote: > Hello Uday and Jesper, >

[go-nuts] Re: Capture Outgoing Port for a HTTP Request

2020-10-14 Thread Urjit Singh Bhatia
It depends on how far down the connection process it reached before timing out... What is the timeout setting your http client? Try this example: func main() { req, _ := http.NewRequest("GET", "https://deelay.me/300/https://google.com;, nil) trace := { GetConn: func(hostPort string) {

Re: [go-nuts] Deleting map entry from the top level of a nested map doesn't clean the underlying memory

2020-05-07 Thread Urjit Singh Bhatia
Hi Naveen, Your expectations about the program immediately giving up memory on deleting an object are wrong. If there is a need for you to have very tight memory controls, you could look into turning GC off entirely and managing memory yourself - See

[go-nuts] Re: Is there some kind of a MaxHeapAlarm implementation?

2020-01-20 Thread Urjit Singh Bhatia
since that would fit my use case slightly better. On Monday, January 20, 2020 at 8:03:14 AM UTC-8, Urjit Singh Bhatia wrote: > > Hi folks, > > I am trying to figure out if someone has a decent solution for max memory > usage/mem-pressure so far. I went through some of the github

[go-nuts] Is there some kind of a MaxHeapAlarm implementation?

2020-01-20 Thread Urjit Singh Bhatia
Hi folks, I am trying to figure out if someone has a decent solution for max memory usage/mem-pressure so far. I went through some of the github issues related to this (SetMaxHeap proposals and related discussions) but most of them are still under review: -

[go-nuts] Re: causal profiling in Go

2019-10-02 Thread Urjit Singh Bhatia
Hi, I just ran coz on a project of mine a few days ago. Building it properly was a little bit of trail and error to figure how out how get the build to play nice with the profiler but eventually I got it working. For builds, use go build -o -ldflags=-compressdwarf=false So that coz can