News for hackers. Stuff that matters.
Re:Why Discord is switching from Go to Rust by nabla9 on Tuesday February 04, 2020 @02:17PM (#22239763)
I wonder if they attempted manual memory allocation in Go?

In many languages with GC you can actually do manual memory management relatively easily with few helper functions. You write your own allocate() and free() functions/methods. When you allocate, you check the free list first, if nothing is available, you do normal allocation. When you call free you add the object into a free list. If you memory management leaks, it triggers GC.

Usually you need to do that kind of stuff to only in few places and few data structures to cut GC 90%.

There are no comments on this comment yet.