How does Circle's CTFE compare to D?

Paulo Pinto pjmlp at progtools.org
Sat Dec 4 15:35:20 UTC 2021


On Saturday, 4 December 2021 at 14:44:10 UTC, Tejas wrote:
> On Saturday, 4 December 2021 at 14:00:22 UTC, Paulo Pinto wrote:
>> On Saturday, 4 December 2021 at 09:49:39 UTC, Ola Fosheim 
>> Grøstad wrote:
>>> On Saturday, 4 December 2021 at 08:43:14 UTC, Johannes 
>>> Riecken wrote:
>>>> [...]
>>>
>>> Circle is primarily interesting because it pushes the 
>>> boundaries for C++, but does it allow the execution of any 
>>> C++ function? I/O can make things very complicated as you 
>>> either have to impose a specific compilation order or use 
>>> some other ordering or constraining principle to avoid 
>>> dependency issues or feedback loops. This in turns makes it 
>>> impossible to accept the execution of any C++ function!
>>>
>>> ...
>>
>> Yes it does, have fun with Circle.
>>
>> https://github.com/seanbaxter/circle/blob/master/embed/embed.md
>
> That tone didn't sound very positive
>
> What do you think about Circle?
> I personally dislike the `@meta` everywhere :(
> Plus, C++ syntax D:

You are reading more than what it is there.

I think Circle is the right approach instead of constepxr, 
constinit, consteval, and whatever might still come up, like 
reflect.

C++ syntax, regardless how obtuse it might be, is available to me 
on my work computers as standard IT image.


More information about the Digitalmars-d mailing list