[antlr-interest] Antlr v4 - C++ target
Gokulakannan Somasundaram
gokul007 at gmail.com
Tue Jan 24 09:38:24 PST 2012
>
>
> Don't know why you even mention compile time ...
>
> RUNTIME time -- the only thing to worry about :-)
>
>
> Hmm... then why do you object to templates? Template Meta programming
costs compile time, but will produce code that can be optimized by a
compiler. Virtual functions/ Function pointers provide a run time
indirection, which cannot be optimized by a C++ compiler, so something like
method inlining cannot be achieved there( as compiler doesn't have that
info)
Compile Time is important for large project, as a developer will get
frustrated with long compile times. I grew frustrated with Boost Spirit for
the same reason. But i have high regards for the rest of the Boost library.
Thanks,
Gokul.
More information about the antlr-interest
mailing list