Compiler scalability. Question inspired by OOM errors seen by Crystal language
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 30 09:34:13 PDT 2017
On Wed, Aug 30, 2017 at 02:53:42AM +0000, Nicholas Wilson via Digitalmars-d wrote:
[...]
> The problem with D is the memory hogging nature of CTFE and the sheer
> number of templates that get instantiated when compiling big
> codebases. Symbol length is also a problem but that eats you dose
> space not your RAM.
The symbol length problem has been greatly reduced by Rainer's recent
mangle PR, which is now in git master and will be in the following
release. There is still room for even more reduction but they will be
comparatively minor. Rainer's fix has eliminated the bulk of the symbol
length problem.
The CTFE problem will be fixed soon, once Stefan Koch finishes his
newCTFE engine.
Templates are still an area where a lot of improvement can be made. But
Stefan has indicated interest in visiting this area in the compiler
after the newCTFE project is done. So eventually we'll get there.
T
--
Famous last words: I *think* this will work...
More information about the Digitalmars-d
mailing list