On Wednesday, 5 August 2020 at 06:02:58 UTC, cy wrote: > Some way to import the compiler itself, instead of calling it > in a subprocess? Well, I did find this: https://dlang.org/blog/2017/08/01/a-dub-case-study-compiling-dmd-as-a-library/ But it's pretty advanced... probably just invoking dmd would be good...