Nim - Introducing --gc:arc
user7892 at vlognet.ch
Fri Dec 27 06:27:42 UTC 2019
On Friday, 27 December 2019 at 02:30:32 UTC, Walter Bright wrote:
> On 12/25/2019 5:27 PM, JN wrote:
>> Some folks may find it interesting, Nim is introducing a new
>> memory management scheme:
>> "So ... this feature has been in development for quite some
>> time now, Nim is getting the "one GC to rule them all".
>> However calling it a GC doesn't do it justice, it's plain old
>> reference counting with optimizations thanks to move
> D gave up on ARC for the time being because it was too easy to
> free an ARC object while retaining a live pointer to its
> innards (as pointed out by Timon Gehr). The solution to this is
> ownership/borrowing, which I am working on.
I have the feeling that their ARC is more like if in D you'd pass
the arg to the compiler and then at compile another family of
template hooks from druntime would be used.
Is that the plan to in D or people will have to mix the two
More information about the Digitalmars-d