Why is D unpopular?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Tue May 17 06:14:16 UTC 2022
On Tuesday, 17 May 2022 at 05:55:16 UTC, Ola Fosheim Grøstad
wrote:
> On Tuesday, 17 May 2022 at 05:43:07 UTC, Araq wrote:
>>> Yes, many Cish codebases are dressed up as C++ these days.
>>
>> That doesn't mean anything...
>
> Sorry, but I’ve looked over both code bases. They make limited
> use of C++ abstractions, just like dmd did. And you would
> interface with D through the Z3 C interface, not C++.
In case that was unclear:
Modern C++ will typically present a template-heavy interface. D
cannot interface with that. Now you are in locked up in C++ land.
Cish code in C++ dressing easily provides a C-API. The original
DMD codebase, Z3 and many other C++ codebases can with limited
effort be translated into C. That makes them Cish… There is a
1-to-1 mapping of most of the model that you need to interface
with.
And that is why importC is a valuable addition even if fewer
libraries are written in C and more libraries are written in C++
over time.
More information about the Digitalmars-d
mailing list