atilaneves/dpp
View on GitHub ↗ ★ 245 D
Directly include C headers in D source code
13 mentions on Hacker News by 9 people: 1 story, 12 comments · first 2018-06-20 · latest 2021-03-24
20082026
-
…conversion. It can't handle <std> but for simple code it works and can spit out the equivalent D. https://github.com/atilaneves/dpp Also you've got "dstep", which is "A tool for converting C and Objective-C headers to D modules"…
comment by gavinray · 2021-03-24 · in D 2.096 and other news -
▲ 2
Dpp: Include C headers directly into D programsstory by crazypython · 2021-02-24 · 1 comment
-
…definitions yet but for declarations it's as easy as #including a C header file natively. * https://github.com/atilaneves/dpp
comment by atilaneves · 2021-01-18 · in Why Zig when there is already C++, D, and Rust? -
…documentation). The other thing is that you can #include C headers directly in a D file using https://github.com/atilaneves/dpp so you can always costlessly add a C library to your project. For optimization, I was referring to calling into…
comment by bachmeier · 2020-01-09 · in Specification for the D Programming Language -
…everyone else uses). And D already implements both. 1: https://github.com/Syniurge/Calypso 2: https://github.com/atilaneves/dpp
comment by earenndil · 2019-10-18 · in My Vision of D’s Future -
You might find Atila's project dpp interesting: https://github.com/atilaneves/dpp
comment by 1980phipsi · 2019-10-16 · in My Vision of D’s Future -
…There are tools like https://github.com/jacob-carlborg/dstep to convert headers and tools like https://github.com/atilaneves/dpp to "preprocess" the D source to include and translate headers
comment by nicwilson · 2019-07-03 · in D as a C Replacement -
…headers though dstep[1] and dpp[2] come to mind [1]: https://github.com/jacob-carlborg/dstep [2]: https://github.com/atilaneves/dpp
comment by nicwilson · 2019-07-03 · in D as a C Replacement -
Its getting there https://github.com/atilaneves/dpp
comment by nicwilson · 2019-07-03 · in D as a C Replacement -
dpp is en effort that allows to include C++ headers, also there is ongoing effort to link with C++. https://github.com/atilaneves/dpp
comment by p0nce · 2019-03-15 · in Why I rewrote the mesh generator of Dust3D from Rust to C++ -
…Just use Dstep[1] and get going. Or use dpp[2]. [1] https://github.com/jacob-carlborg/dstep [2] https://github.com/atilaneves/dpp
comment by arunc · 2018-12-05 · in Using D to Create the World’s Fastest File System -
…D code. With that, betterC mode becomes a viable option for adding to an existing C project. [1] https://github.com/atilaneves/dpp
comment by bachmeier · 2018-07-22 · in Conflating pointers with arrays: C's biggest mistake? (2009) -
…you can essentially use any existing c or c++ library by simply including its header file. 1: https://github.com/atilaneves/dpp
comment by earenndil · 2018-06-20 · in How an Engineering Company Chose to Migrate to D