D parser in tango or phobos

Bill Baxter wbaxter at gmail.com
Mon Sep 8 01:03:53 PDT 2008


On Mon, Sep 8, 2008 at 4:47 PM, Bruce Adams <tortoise_74 at yeah.who.co.uk> wrote:
> On Mon, 08 Sep 2008 04:38:34 +0100, David Wilson <dw at botanicus.net> wrote:
>
>> 2008/9/6 Bruce Adams <tortoise_74 at yeah.who.co.uk>:
>>
>>> Python has a python parser written in python. The main interpreter is
>>> written in C for portability.
>>> That is a good reason and the same reason applies for D. Why in this day
>>> and
>>> age C++ isn't considered
>>> portable by most such project is beyond me.
>>> I particularly like gcc's approach of bootstraping itself to full
>>> functionality. Its a shame the insides
>>> are so gnarly.
>>
>> FYI, one of the GCC maintainers (Ian Lance Taylor) recently created a
>> branch of GCC that begins to introduce template usage in the GCC
>> source itself.
>>
>> http://www.airs.com/ian/cxx-slides.pdf
>>
>>
>> David
>>
> Its been suggested before. I even wanted to do it myself but I never had
> sufficient
> time or inclination. I, probably like many others, went for a roll your own
> approach instead
> before being distracted. Someone at google might actually have the resources
> to do it.

The funny thing to me is that the difference in code shown in that
presentation doesn't really strike me as much of an improvement.   If
that's the best one can come up with as a justification for moving to
C++, then perhaps it's not really worth the effort.

--bb



More information about the Digitalmars-d mailing list