Do everything in Java…

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 17 11:46:01 PST 2014


On 12/11/2014 2:05 AM, Araq wrote:
> On Wednesday, 10 December 2014 at 23:23:50 UTC, Walter Bright
> wrote:
>> On 12/10/2014 4:15 AM, Paulo Pinto wrote:
>>> I prefer the model used by the referred languages, where binary libraries and
>>> metadata is used, instead of the C toolchain model.
>>>
>>> For example, just shipping the .TPU/.DCU libraries in the Object Pascal world.
>>
>> If the metadata had enough info in it to do inlining, it might as well be the
>> source code.
>
> Er ... but you're the guy who stresses that lexers cannot be fast
> enough because they need to look at every input char. (And you're
> right.) You can at least cache the lexing step. Not that D's
> compiler is not fast enough anyway, I'm just saying that your
> statement is really weird.

You're right that a binary version of the token stream would be faster. But not 
enough to justify the implementation complexity and other issues with a binary 
format. A text format also has the major advantage of being able to look at it 
and edit it as necessary without special tools.


More information about the Digitalmars-d mailing list