Update on the D-to-Jai guy: We have real problems with the language
Guillaume Lathoud
gsub at glat.info
Tue Nov 29 14:00:58 UTC 2022
On Sunday, 27 November 2022 at 09:29:29 UTC, FeepingCreature
wrote:
> ...
> - To be fair, his computer isn't the fastest. But it's an 8core
> AMD, so DMD's lack of internal parallelization hurts it here.
> This will only get worse in the future.
Hello, I'm far from being a D compilation specialist, but in case
this is of any use or inspiration: I've been using parallel
compilation for a few years now, recompiling only the new files,
one-by-one, distributed over the available cores, then linking.
Here it is, just one bash script:
https://github.com/glathoud/d_glat/blob/master/dpaco.sh (So far
used with LDC only.)
The result is far from perfect, sometimes the resulting binary
does not reflect a code change, but 80-90% of the time it does.
And I don't have to maintain a build system at all. Overall this
approach saves quite a bit of time - and improves motivation,
having to wait only a few seconds on a project that has grown to
about 180 D files. My use of templating is limited but happens
regularly.
If there is, or would be a 100% reliable solution to do parallel
compilation without a build system, that'd be wonderful. Not just
for me, I guess.
Best regards,
Guillaume
More information about the Digitalmars-d
mailing list