November 12, 2021

On Thursday, 11 November 2021 at 02:03:22 UTC, Steven Schveighoffer wrote:

>

I don't think ImportC is that much of a game changer (you can already make C bindings with quite a small effort, and there are tools to get you 90% there), but a broken/not working ImportC will be a huge drawback to the language, so it's important to get it right.

The advantage I though of when I suggested something similar many years ago was that it would enable inlining of C functions, but since then LLVM has gotten whole program optimization over the IR, so now the advantage is more limited.

Maybe there are some metaprogramming advantages, but I cannot think of any.

November 12, 2021

On Friday, 12 November 2021 at 08:12:22 UTC, Ola Fosheim Grøstad wrote:

>

Maybe there are some metaprogramming advantages, but I cannot think of any.

Well, one advantage might be that it could be easier to do escape analysis of C code. Not really sure if there is a difference compared to doing it over the IR, though.

1 2 3
Next ›   Last »