Why many programmers don't like GC?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu Jan 14 13:22:47 UTC 2021


On Thursday, 14 January 2021 at 13:16:16 UTC, Ola Fosheim Grøstad 
wrote:
> 1. Use "shared" to prevent GC allocated memory from entering 
> other threads and switch to thread local GC. Then use ARC for 
> shared.
>
> 2. Redefine language semantics/type system for a different GC 
> model. This will break existing code.

3. Keep the existing GC for existing code and introduce ARC 
across the board for new code. Add a versioning statement that 
people can add to their libraries to tell the compiler which 
models they support.





More information about the Digitalmars-d-learn mailing list