DConf 2014 Day 1 Talk 4: Inside the Regular Expressions in D by Dmitry Olshansky

dennis luehring via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Jun 12 04:04:38 PDT 2014


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


More information about the Digitalmars-d-announce mailing list