On 21.09.2011 22:32, Sean Kelly wrote:
On Sep 21, 2011, at 12:59 PM, Andrei Alexandrescu wrote:
On 9/21/11 12:59 PM, bearophile wrote:
Andrei Alexandrescu:
which has enjoyed moderate audience and success. I uploaded the
slides at http://erdani.com/d/generic-programming-galore.pdf and
the video may be available soon.
In future talks I suggest to show some downsides too, like explaining
how much memory uses the D RE engine, how hard are to write, read,
modify and debug text-based mixins like the bitfields, etc.
I did mention the downsides in the talk: memory consumption during CTFE and the
compiler's inability to explain why a template didn't match.
If DMD cleaned up after itself, the memory consumption issue would be far less
significant though. Perhaps DMD could be fixed up to the point where GC could
be enabled? I recall the code being there, but that there were issues with
turning it on.
The CTFE memory consumption and slowness is not a gc issue.
It's copy-on-write:
http://d.puremagic.com/issues/show_bug.cgi?id=6498
I know how to fix this.