Follow-up: A world in a ref
I recently published Megaref a refined (and working) version of the idea described in A World in a Ref.
New and notesworthy:
- actual working code,
- the concurrency (number of guards) can be tuned at runtime,
- tuning happens through an uniform interface (
get-options
,set-option!
), subref
s (and backward compatible replacements for usual STM functions) allow to easily migrate “polyref” code to megaref (see the conversion of Rich Hickey’s ant demo — mind the typo in the commit message).
Feedback welcome!