Dpp on run.dlang.io

Laeeth Isharc laeeth at laeeth.com
Sun Aug 5 22:43:42 UTC 2018


On Saturday, 4 August 2018 at 13:15:24 UTC, Seb wrote:
> On Saturday, 4 August 2018 at 01:27:49 UTC, Laeeth Isharc wrote:
>> Thanks to Seb and Atila it is now very easy to show  a D 
>> program just #includeing C headers.  If just works.  Modulo 
>> bugs.  In time I am hopeful Atila will start to have more of 
>> C++ headers working too.
>>
>> https://run.dlang.io/is/JlH3Th
>
> It now also supports multiple files (and compiling C files) 
> with the Har format [1]:
>
> https://run.dlang.io/is/WwpvhT
>
> This should hopefully make it even more useful.
>
> [1] https://github.com/marler8997/har

Thanks v much for this.

One benefit of D is as a better glue language that integrates 
well with other languages and ecosystems.  Many people who know a 
bit about D have no idea that interop can work so easily or well.

So it might be worth mentioning this benefit as one link from 
main page and then linking from that to new page that mentions 
and has runnable examples (using HAR) for:

Python (via autowrap:python and pyd)
C (via dpp)
C++ (extern(C++) for now)
R (via embedr)
Julia (via C interface, including julia.h via dpp)
Lua (if LuaD stable enough)

with just screenshot for:
Excel (via autowrap excel / excel-d)
C# via Binderoo
Jupyter via pydmagic

and just link for web assembly.
Obviously a lot of work, but if you think a good idea we could 
work away at over time.






More information about the Digitalmars-d-announce mailing list