Re: [go-nuts] Go 1.18 beta1: Embedding Type Parameter in struct definition is an error

2021-12-14 Thread Ian Lance Taylor
On Tue, Dec 14, 2021 at 4:02 PM Kristoffer Semelka wrote: > > See above. This is mentioned in the appendix of the type parameters proposal > but doesn't work in this beta release. Was this marked out of scope for 1.18 > and if so where can I find a github issue for it? > > Minimal example: https

[go-nuts] Go 1.18 beta1: Embedding Type Parameter in struct definition is an error

2021-12-14 Thread Kristoffer Semelka
See above. This is mentioned in the appendix of the type parameters proposal but doesn't work in this beta release. Was this marked out of scope for 1.18 and if so where can I find a github issue for it? Minimal example: https://gotipplay.golang.org/p/YeMs-iAQwkr -- You received this message bec

[go-nuts] Go 1.18 Beta 1 is released

2021-12-14 Thread Cherry Mui
Hello gophers, We have just released go1.18beta1, a beta version of Go 1.18. It is cut from the master branch at the revision tagged go1.18beta1. Please try your production load tests and unit tests with the new version. Your help testing these pre-release versions is invaluable. Report any prob

Re: [go-nuts] Why runtime force gc every 2 minutes?

2021-12-14 Thread peterGo
Getting to Go: The Journey of Go's Garbage Collector Rick Hudson 12 July 2018 https://go.dev/blog/ismmkeynote Peter On Tuesday, December 14, 2021 at 9:05:09 AM UTC-5 peterGo wrote: > There is no right answer to your question. Optimiation is often a > balancing act between competing goals, fo

Re: [go-nuts] Why runtime force gc every 2 minutes?

2021-12-14 Thread peterGo
There is no right answer to your question. Optimiation is often a balancing act between competing goals, for example, cpu vs menory, speed vs memory safety, different workloads, avoiding worst cases, and so on. Here's a peek at the problem in 2018: https://go.dev/blog/ismmkeynote.Since then, th

Re: [go-nuts] Why runtime force gc every 2 minutes?

2021-12-14 Thread Kurnia D Win
oh, maybe they just trying random configuration (1min, 5min, or something else) and 2min is the best result On Tuesday, December 14, 2021 at 4:13:05 PM UTC+7 Kurnia D Win wrote: > okay, thanks for the explanation, > suggesting me to change language to rust/c is not answering my curiosity > I as

Re: [go-nuts] Why runtime force gc every 2 minutes?

2021-12-14 Thread Kurnia D Win
okay, thanks for the explanation, suggesting me to change language to rust/c is not answering my curiosity I ask it because I'm trying to learn the runtime, and the "why" behind some decision that already made for now, I will just follow it blindly, because the go developers already made that de

Re: [go-nuts] Why runtime force gc every 2 minutes?

2021-12-14 Thread Brian Candler
On Tuesday, 14 December 2021 at 03:28:26 UTC kurnia...@gmail.com wrote: > the problem with it, when you have a large live heap but with efficient > code (most of the hot code is zero alloc), the runtime will be wasting CPU > time every 2 minutes just to find out that there is no garbage to colle