GCC is getting parallelization and so should DMD
ibuclaw at gdcproject.org
Mon Aug 31 14:55:04 UTC 2020
On Friday, 21 August 2020 at 13:16:45 UTC, Per Nordlöw wrote:
> It's time we start thinking about preparing for parallelization
> in DMD now that GCC is getting it . Andrei mentioned this in
> an interview as early 2014 .
> 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 
> I reckon the greatest obstacle is to sync these changes with
> all the C/C++ mappings in dmd.
If the patches go in, gdc will get this feature for free. :-)
More information about the Digitalmars-d