I've been tinkering with some garbage collection approaches for a toy language.
Comparing refcounting with mark-and-sweep, the latter seems less error-prone. 'Values in list X but not in Y' is less scary to implement than 'every incref should have a decref'. Agree/disagree?
Wilfred Hughes
Shared words: DECREF, refcounting, languages
Score: 181
The vast majority of PLs are either self-hosted or implemented in a systems language (one without GC).
The only exceptions I can think of are PureScript, Elm (both written in Haskell), Hack (partly uses OCaml) and Clojure (Java). Are there others? Is it a good tradeoff?
Wilfred Hughes
Shared words: languages, without, GC, one
Score: 62.9
I've been playing with https://github.com/orium/rpds as a replacement for im in difftastic, and it's a significant speedup! I saw a 30% runtime reduction in one case.
im is great but sadly seems unmaintained. I suspect its 'small vector as a vec' design doesn't suit my use case.