GCC is getting parallelization and so should DMD

Per Nordlöw per.nordlow at gmail.com
Fri Aug 21 13:16:45 UTC 2020

It's time we start thinking about preparing for parallelization 
in DMD now that GCC is getting it [1]. Andrei mentioned this in 
an interview as early 2014 [2].

A good start is to start moving the `__gshared` declarations into 
aggregates that are explicitly instantiated in mars.d and then 
passed as context references into functions constructors. That 
will be a lot of manual work. However this process can be 
directed by D's purity checks by adding `pure:` at module 
top-levels. I've already started experimenting with this at [3]

I reckon the greatest obstacle is to sync these changes with all 
the C/C++ mappings in dmd.

[2] https://www.youtube.com/watch?v=KuabN0z4hxg
[3] https://github.com/dlang/dmd/compare/master...nordlow:pureify

More information about the Digitalmars-d mailing list