How do people feel about putting source compiler directives inside rdmd?
Tue Dec 3 09:10:16 UTC 2019
On Monday, 2 December 2019 at 21:43:17 UTC, bachmeier wrote:
> On Monday, 2 December 2019 at 20:04:17 UTC, aliak wrote:
>> Dub is painfully slow for scripting
On the contrary, I think it's great for what it offers.
I just made a quick test and it contributed to to 0.3sec slow
down, compared to `dmd -run` of minimal D script (0.21sec vs
0.51sec). I think that could be improved, but still it's a small
price to given its feature set. There's no alternative tool for D
that empowers single-file scripts to use third-party libraries
with zero fiddling with import paths, dependency downloading,
build order, linking and so on.
> Dub is painful for everything else so I'm not surprised to hear
> it's painful for scripting.
Dub is probably the best thing that happened to D in the past 5
years. Yes, it has its share of problems, but I don't think any
of them are unfixable or by design. Instead of bashing it, I
think this discussion could be more productive if you shared your
criticism in a constrictive way.
More information about the Digitalmars-d