Hacker GitHub

← All repos

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

Mentions per year 13 mentions · busiest year 2019 (6)
20082026
  1. …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. …definitions yet but for declarations it's as easy as #including a C header file natively. * https://github.com/atilaneves/dpp
  3. …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
  4. …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
  5. 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
  6. …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
  7. …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
  8. Its getting there https://github.com/atilaneves/dpp
    comment by nicwilson · 2019-07-03 · in D as a C Replacement
  9. dpp is en effort that allows to include C++ headers, also there is ongoing effort to link with C++. https://github.com/atilaneves/dpp
  10. …Just use Dstep[1] and get going. Or use dpp[2]. [1] https://github.com/jacob-carlborg/dstep [2] https://github.com/atilaneves/dpp
  11. …D code. With that, betterC mode becomes a viable option for adding to an existing C project. [1] https://github.com/atilaneves/dpp
  12. …you can essentially use any existing c or c++ library by simply including its header file. 1: https://github.com/atilaneves/dpp