Re: [go-nuts] Help with language change proposal

2023-03-15 Thread Landon Cooper
Thanks very much for the feedback, Axel. I didn't think it was harsh, this is just the kind of information I needed before burning needless effort on the idea. Getting started with these conversations is quite intimidating because there is so much information and history, it's hard to find what

[go-nuts] Re: what the asyncPreempt happens in flamegraph mean?

2023-03-14 Thread Landon Cooper
Hi Cheng, I'm not sure I understand your question, but here's what little I know about the preempt function. runtime.asyncPreempt is used to implement asynchronous preemption. Basically, the go runtime scheduler occasionally suspends the execution of a goroutine to check if it has been running

[go-nuts] Re: How to generalize parameters for a function

2023-03-14 Thread Landon Cooper
Hi Frank, the issue is that the compiler won't accept a map[string]float64 as a map[string]interface{} because they are defined as different types. It probably feels to you as though the code would work okay because you expect to take things out of the map, check their type and then use them