<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 16 September 2014 00:51, Andrei Alexandrescu via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 9/15/14, 3:30 AM, bearophile wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Andrei Alexandrescu:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Walter, Brad, myself, and a couple of others have had a couple of<br>
quite exciting ideas regarding code that is configurable to use the GC<br>
or alternate resource management strategies.<br>
</blockquote>
<br>
An alternative design solution is to follow the Java way, leave the D<br>
strings as they are, and avoid to make a mess of user D code. Java GC<br>
and runtime contain numerous optimizations for the management of<br>
strings, like the recently introduced string de-duplication at run-time:<br>
<br>
<a href="https://blog.codecentric.de/en/2014/08/string-deduplication-new-feature-java-8-update-20-2" target="_blank">https://blog.codecentric.de/<u></u>en/2014/08/string-<u></u>deduplication-new-feature-<u></u>java-8-update-20-2</a><br>
</blockquote>
<br></div></div>
Again, it's become obvious that a category of users will simply refuse to use a GC, either for the right or the wrong reasons. We must make D eminently usable for them.</blockquote><div><br></div><div>I still think most of those users would accept RC instead of GC. Why not support RC in the language, and make all of this library noise redundant?</div><div>Library RC can't really optimise well, RC requires language support to elide ref fiddling.</div></div></div></div>