Why D is not popular enough?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 12 14:26:32 PDT 2016


On 08/12/2016 03:55 PM, Walter Bright wrote:
> On 8/12/2016 12:14 PM, Shachar Shemesh wrote:
>> On 12/08/16 22:07, Walter Bright wrote:
>>> On 8/12/2016 7:41 AM, Shachar Shemesh wrote:
>>>> That table was not expensive to compute, and its constantness wasn't
>>>> crucial
>>>> enough even for me to put a wrapper pointer and only access it through
>>>> it. Had
>>>> that not been the case, and had that table been more expensive to
>>>> computer, I'd
>>>> probably compute at compile time with an external tool.
>>>
>>> What I do (and is done in building DMD) is write a program (optabgen.c)
>>> to generate the tables and write a C++ source file, then compile the
>>> generated file into DMD.
>>
>> Yes, I'm sorry. I meant to say "build time" instead of "compile time".
>> That is
>> precisely what I meant.
>
> I'm surprised that I've never seen anyone else use such a technique.

It's a matter of frequenting the appropriate circles. The technique is 
in wide use.

Andrei



More information about the Digitalmars-d mailing list