std.d.lexer requirements

deadalnix deadalnix at gmail.com
Thu Aug 2 04:47:20 PDT 2012


Le 02/08/2012 10:13, Walter Bright a écrit :
> On 8/2/2012 12:33 AM, Bernard Helyer wrote:
>> On Thursday, 2 August 2012 at 07:29:52 UTC, Walter Bright wrote:
>>> The lexer MUST MUST MUST be FAST FAST FAST. Or it will not be useful.
>>> If it
>>> isn't fast, serious users will eschew it and will cook up their own.
>>> You'll
>>> have a nice, pretty, useless toy of std.d.lexer.
>>
>> If you want to throw out some target times, that would be useful.
>
> As fast as the dmd one would be best.
>

That'd be great but . . .

lexer really isn't the performance bottleneck of dmd (or any compiler of 
a non trivial language). Additionally, anybody that have touched dmd 
source code can agree that usability/maintainability isn't as its best.

Sacrificing some perfs in a non bottleneck area to increase ease of use 
make perfect sense.


More information about the Digitalmars-d mailing list