mleku
· 1d
so, been working hard on #moxie compiler for the last couple of weeks, and the current issue i'm dealing with is memory management.
as up to now, it's been one foot in GC world and one foot in owners...
actually, i have a set of 5 rules that are easy to apply to whether copy or reference are the right strategy. "does this mean this resource is owned by two parties" - if the answer is yes, then the strategy is wrong. one party, one property. basic preschool level logic. two people cannot control one resource without a mechanism for resolving disagreements, and if 50/50 deadlocks are possible, then the sharing is not possible to have without warfare.