Le 03/08/2012 05:41, Andrei Alexandrescu a écrit :
On 8/2/12 11:08 PM, Jonathan M Davis wrote:
You're not going to get as fast a lexer if it's not written
specifically for D.
Writing a generic lexer is a different problem. It's also one that
needs to be
solved, but I think that it's a mistake to think that a generic lexer
is going
to be able to be as fast as one specifically optimized for D.
Do you have any evidence to back that up? I mean you're just saying it.
Andrei
I think it can be as fast if the lexer is compile time created. I'd also
argue that it is better to have a D lexer ASAP, even if it isn't as
configurable as it could be.
Better something now that something better later. We can make it better
later anyway.