Type programming game

Basile B. b2.temp at gmx.com
Sat Oct 17 15:10:52 UTC 2020


On Saturday, 17 October 2020 at 13:37:20 UTC, Stefan Koch wrote:
> On Saturday, 17 October 2020 at 12:59:19 UTC, Basile B. wrote:
>> On Saturday, 17 October 2020 at 12:53:44 UTC, Stefan Koch 
>> wrote:
>>> On Saturday, 17 October 2020 at 12:46:44 UTC, Basile B. wrote:
>>>> On Wednesday, 14 October 2020 at 11:14:34 UTC, Stefan Koch 
>>>> wrote:
>>>>> On Wednesday, 14 October 2020 at 00:11:37 UTC, claptrap 
>>>>> wrote:
>>>>>> [...]
>>>>>
>>>>> Yes of course.
>>>>
>>>> So what's up with the benchmark you mentioned ? With four 
>>>> entries + your TF version we can have a podium now.
>>>
>>> Coming up. Fixes to accommodate claptrap's original version 
>>> have to be made first.
>>
>> yeah but his version is a TF one BTW. Maybe I missed the 
>> point, weren't we supposed to propose a version based on 
>> CTFE+template only ?
>
> You can propose a version using anything that you think will 
> work.
> As long as I can get a version of DMD that can compile it.

Actually, and even it's sure that TF version will be faster, I 
could propose a second version of my entry since the bounds of 
the dynamic array I use are tied to the length of the variadic 
template arg... So I can use static arrays and a variable to give 
the upper bound in the array of unique types.

Not sure if it is worth ;)


More information about the Digitalmars-d mailing list