News for hackers. Stuff that matters.
Re:Aminal: Golang terminal emulator from scratch by PavlovsCat on Wednesday November 28, 2018 @12:25PM (#18553419)
Sure, but almost free GC is free in the same way throwing away 3 cents is almost free. Once it adds up enough to cause lost frames, anyway. Just like a straw practically weighs nothing, except when it's the straw that causes the camel to miss a frame.

In this case, I also doubt it would make a difference by itself, but I haven't looked at all of the source, so I just mentioned it as something to maybe watch out for. Also, every bit of GC you can super easily avoid "buys" you room for GC that would make the code more complicated to avoid. Waste not, want not :)

Re:Aminal: Golang terminal emulator from scratch by eru on Sunday December 09, 2018 @09:09AM (#18640903)
Ok, drop the 'almost'. GC can be as 'free' as eg stack allocation (which nobody seems to mind to much).

See the comment by kibwen (https://news.ycombinator.com/item?id=18551218) for some good pointers to more concepts.