Escaping the Tyranny of the GC: std.rcstring, first blood

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 15 03:30:21 PDT 2014


Andrei Alexandrescu:

> Walter, Brad, myself, and a couple of others have had a couple 
> of quite exciting ideas regarding code that is configurable to 
> use the GC or alternate resource management strategies.

An alternative design solution is to follow the Java way, leave 
the D strings as they are, and avoid to make a mess of user D 
code. Java GC and runtime contain numerous optimizations for the 
management of strings, like the recently introduced string 
de-duplication at run-time:

https://blog.codecentric.de/en/2014/08/string-deduplication-new-feature-java-8-update-20-2

Bye,
bearophile


More information about the Digitalmars-d mailing list