Tasks, actors and garbage collection
Paulo Pinto
pjmlp at progtools.org
Wed Apr 21 06:37:21 UTC 2021
On Tuesday, 20 April 2021 at 16:45:38 UTC, russhy wrote:
> C++ could have went with a GC, they decided to go against and
> encourage the use of smart pointers
>
> That was smart, actually
Kind of, there are C++/CLI, C++/CX, C++ Builder and what many
keep forgeting when talking about game developers and tracing GC,
Unreal C++.
Also in regards to Objective-C and Swift, Objective-C did went
with a tracing GC, the pivot into RC as compiler assisted help
for Cocoa retain/release patterns, only happend due to C's memory
model borking the whole idea.
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/GarbageCollection/Introduction.html
Swift naturally needed to use the same model, otherwise a
translation layer like .NET RCW for COM would be needed had they
gone with tracing GC.
More information about the Digitalmars-d
mailing list