dragon-lang / dc

D Compiler
Boost Software License 1.0
8 stars 0 forks source link

Remove dependency on GNU Make/BASH #12

Open marler8997 opened 5 years ago

marler8997 commented 5 years ago

GNU Make and BASH are very difficult to get working on Windows. I wasn't able to get it working after hours of trying. It had so many issues and finding help online was almost non-existent and when there was help it didn't work.

Alternatives:

  1. D (can be a bit verbose for some things, this can be mitigated by good libraries though but is still more verbose than things like BASH)
  2. Python (easy to get working on linux and windows)
  3. Custom scripting language. We could include a small shell interpreter that contains a minimal set of features.
wilzbach commented 5 years ago

FYI build.d has almost gained support for Windows.

wilzbach commented 5 years ago

A huge disadvantage of D is that compiling and running all D scripts might take quite some time (i.e. add overhead). Though I don't have any numbers on how fast compiling & running ~ 1000 simple D files would be.

If the overhead is reasonable low, then I think we should use D as we can easily add library sugar for things that are currently would be a bit too verbose.

marler8997 commented 5 years ago

After thinking about it, I think we should go with D here. rund can mitigate performance issues along with careful usage of certain libraries in druntime/phobos (mostly phobos).