News for hackers. Stuff that matters.
Re:Rusty Ownership and the Lifecycle’s Stone by codedokode on Sunday November 27, 2022 @01:20PM (#33765177)
> The biggest of said problems is that the garbage collector has the annoying habit to “pause the world”.

I think that main problem of garbage-collected programs is that they usually allocate several times more RAM than they use. This causes excessive swapping which produces more noticeable lags than just garbage collection. I vaguely remember reading somewhere that the difference can be 6x, but I am not sure if this is the correct number. This means that garbage-collected software is great for large expensive servers stuffed with RAM sticks but not so great for a personal computer having just 4 or 2 Gb.

Re:Rusty Ownership and the Lifecycle’s Stone by ok123456 on Sunday November 27, 2022 @02:39PM (#33765975)
Go solved this problem with a three color garbage collector.
Re:Rusty Ownership and the Lifecycle’s Stone by kaba0 on Monday November 28, 2022 @04:22AM (#33771403)
It is a tradeoff. Most of Java’s GCs optimize for throughput (and they absolutely succeed at that), but that comes at a larger memory consumption.