The forked elephant in the room

Paolo Invernizzi paolo.invernizzi at gmail.com
Tue Jan 30 08:24:43 UTC 2024


On Tuesday, 30 January 2024 at 04:02:30 UTC, bachmeier wrote:
> On Tuesday, 30 January 2024 at 01:59:47 UTC, max haughton wrote:
>
>> So what dstep has been doing for years?
>
> Not only that, but it does work well for that purpose, and it's 
> baked into the compiler.
>
>> The value of ImportC is in importing c, i.e. thats the thing 
>> that the others can't do.
>
> It works well for C code without a ton of dependencies. It can 
> also be used to compile C functions that aren't exported from a 
> library, or to modify parts of a C library without having to 
> maintain your own fork.

I'm just wondering how good it is to perform CTFE on C code ... 
humm
We are using a custom sql parser, imagine being able to use this 
[1] instead ... at compile time obviously.

[1] https://github.com/pganalyze/libpg_query

/P



More information about the Digitalmars-d mailing list