News for hackers. Stuff that matters.
Re:Why Discord is switching from Go to Rust by kerkeslager on Tuesday February 04, 2020 @02:55PM (#22240197)
The article states specifically that part of the problem was heaps were never large.

EDIT: Actually, no it didn't, I misunderstood it.

Re:Why Discord is switching from Go to Rust by typical182 on Tuesday February 04, 2020 @03:48PM (#22240794)
Where does it say that?

It says things like:

“We were not creating a lot of garbage.”

... but that statement there doesn’t say anything about the heap size, including the size and count of live objects (i.e., not garbage).

It also says:

“There are millions of Users in each cache. There are tens of millions of Read States in each cache.”

Large is often in the eye of the beholder, but I missed it if it said anything specifically about not having a large heap size.

Re:Why Discord is switching from Go to Rust by kerkeslager on Tuesday February 04, 2020 @04:19PM (#22241105)
> ... but that statement there doesn’t say anything about the heap size, including the size and count of live objects (i.e., not garbage).

Not sure why you got downvoted, you're actually right, I'm wrong: I misread that and/or assumed one meant the other.

That said, this is a case that should be ideal for generational GC, which Go specifically eschewed at one point. I'm not sure this is still the case, however--I have yet to wade through this[1] to update my knowledge here.

[1] https://blog.golang.org/ismmkeynote