[go-nuts] Re: Why Discord is switching from Go to Rust

2020-02-07 Thread Amnon Baron Cohen
https://twitter.com/_rsc/status/1224802726774812672?s=20 https://twitter.com/_rsc/status/1224802727773065221?s=20 On Friday, 7 February 2020 12:24:50 UTC, Everton Marques wrote: > > I think Go is way better than Rust, but it is amusing to see why people > pick one over another. > > "Remarkably,

[go-nuts] Re: Why Discord is switching from Go to Rust

2020-02-09 Thread ffm2002
They have very strict latency requirements. So they can't use a language with a GC. That's fine, no language is totally universal. You have to pick the right tool for the job. Aside from that it would be nice if that 2-minutes GC trigger, that is mentioned in the text, could be removed or less

Re: [go-nuts] Re: Why Discord is switching from Go to Rust

2020-02-10 Thread Kevin Chadwick
On 2020-02-09 14:52, ffm2...@web.de wrote: > > Aside from that it would be nice if that 2-minutes GC trigger, that is > mentioned > in the text, could be removed or lessened. runtime.GC()? Though I recall that they found an alternative from the text? -- You received this message because you a

Re: [go-nuts] Re: Why Discord is switching from Go to Rust

2020-02-10 Thread Jake Montgomery
runtime.GC() would not work for them. According to the docs - " GC runs a garbage collection and blocks the caller until the garbage collection is complete. It may also block the entire program." So that would be very counter productive in this case. On Monda

Re: [go-nuts] Re: Why Discord is switching from Go to Rust

2020-02-10 Thread t hepudds
They had said they were generating almost no garbage. If that is true, I suspect they could have avoided the 2-minute forced GC by running with GOGC=off, or alternatively executed SetGCPercent(-1) (https://golang.org/pkg/runtime/debug/#SetGCPercent) to disable the GC programmatically after reac

Re: [go-nuts] Re: Why Discord is switching from Go to Rust

2020-02-10 Thread t hepudds
Sorry, sending again after correcting a couple of typos. (That's what I get for trying to walk and chew gum at the same time or typing while distracted ;-) They had said they were generating almost no garbage. If that is true, I suspect they could have avoided the 2-minute forced GC by running