You give up some portability. Not “a lot” of portability. Compiling to C also makes things like proper debug info and stack maps/register maps for GC harder (and by “harder” I mean “impossible”)
Failure to understand this for decades is the main reason browsers are such buggy, memleaky crap.
-
-
Hey now, Firefox/Gecko has fully precise hybrid GC/refcounting, with a cycle collector :) Took a mountain of engineering work (
@graydon_pub did a lot of it, in fact!) -
(Runner up is Chromium, which is not fully precise GC, but it does precise collections once the event loop is done and there’s no native code on the stack, which is usually good enough.)
-
My kernel does precise GC at process boundary
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Agreed that targeting C limits GC algorithms. Really it's Boehm or do something else than C