Am 12.06.2014 11:17, schrieb Dmitry Olshansky:
This one thing I'm loosing sleep over - what precisely is so good in
CTFE code generation in_practical_  context (DSL that is quite stable,
not just tiny helpers)?

By the end of day it's just about having to write a trivial line in your
favorite build system (NOT make) vs having to wait for a couple of
minutes each build hoping the compiler won't hit your system's memory
limits.

And these couple of minutes are more like 30 minutes at a times. Worse
yet unlike proper build system it doesn't keep track of actual changes
(same regex patterns get recompiled over and over), at this point
seamless integration into the language starts felling like a joke.

And speaking of seamless integration: just generate a symbol name out of
pattern at CTFE to link to later, at least this much can be done
relatively fast. And voila even the clunky run-time generation is not
half-bad at integration.

Unless things improve dramatically CTFE code generation + mixin is just
our funny painful toy.

you should write a big top post about your CTFE experience/problems - it is important enough
  • Re: DConf 2014 Day 1 Talk 4... bearophile via Digitalmars-d-announce
    • Re: DConf 2014 Day 1 T... Atila Neves via Digitalmars-d-announce
      • Re: DConf 2014 Day... Adam D. Ruppe via Digitalmars-d-announce
        • Re: DConf 2014... Dmitry Olshansky via Digitalmars-d-announce
          • Re: DConf ... bearophile via Digitalmars-d-announce
          • Re: DConf ... Colin via Digitalmars-d-announce
            • Re: D... Dicebot via Digitalmars-d-announce
              • R... Colin via Digitalmars-d-announce
              • R... Timon Gehr via Digitalmars-d-announce
              • R... Dicebot via Digitalmars-d-announce
          • Re: DConf ... dennis luehring via Digitalmars-d-announce
            • Re: D... Andrei Alexandrescu via Digitalmars-d-announce
          • Re: DConf ... Artur Skawina via Digitalmars-d-announce
          • Re: DConf ... Dicebot via Digitalmars-d-announce
            • Re: D... Dmitry Olshansky via Digitalmars-d-announce
              • R... Dicebot via Digitalmars-d-announce
              • R... Andrei Alexandrescu via Digitalmars-d-announce
              • R... Dicebot via Digitalmars-d-announce
              • R... Dmitry Olshansky via Digitalmars-d-announce
              • R... Dicebot via Digitalmars-d-announce
              • R... Dmitry Olshansky via Digitalmars-d-announce

Reply via email to