After 3 months of coding weekends, my attempt to create a relocating nonblocking garbage collector in C++ has failed. It works in theory, but in practice the read barrier is pervasive and costly, and the threading invariants are incredibly tricky to maintain.
-
-
I'm not sure i see why vanilla reference counting can't be used, is it the synchronisation cost?
-
ARC on Mac has a very high overhead unless a lot of manual tweaking is applied (which basically kills all advantages of ARC). for such code (with tons of refcounted refs) a GC is most likely faster and with less hassle
- 4 more replies
New conversation -
-
-
You might be interested in the hybrid approach extempore/xtlang employs: https://digego.github.io/extempore/memory.html … In fact, if you’re dealing w/ real-time audio and video, you might even like to just use extempore as is.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.