jacob-carlborg/dstep
View on GitHub ↗ ★ 218 C
A tool for converting C and Objective-C headers to D modules
11 mentions on Hacker News by 9 people: 1 story, 10 comments · first 2013-08-22 · latest 2024-07-30
20082026
-
…C libraries (header files) can be compiled to D and then used as D modules as well, see https://github.com/jacob-carlborg/dstep Is that as good as Rust?
comment by brabel · 2024-07-30 · in C Macro Reflection in Zig -
…- C, Extensive C++ = https://github.com/Superbelko/ohmygentool - C, Objective-C = https://github.com/jacob-carlborg/dstep > its test blocks make unit testing trivial to integrate. Again, D also has this: - https://tour.dlang.org/tour/en/gem
comment by gavinray · 2021-09-08 · in Maintain It with Zig -
…Also you've got "dstep", which is "A tool for converting C and Objective-C headers to D modules" https://github.com/jacob-carlborg/dstep And finally you have the somewhat abandoned (but as far as I know mostly functional) Calypso, which is…
comment by gavinray · 2021-03-24 · in D 2.096 and other news -
It's a C lib, generating bindings is super easy https://github.com/jacob-carlborg/dstep There is no need to maintain bindings that can be automatically generated, wich can easily get outdated if the C project is actively developped…
comment by Shadonototro · 2021-03-12 · in Raylib, a simple and easy-to-use library to enjoy videogame programming -
…for you), as well as e.g., smartly convert #define macros to inlineable templates functions :) https://github.com/jacob-carlborg/dstep
comment by chromatin · 2021-03-07 · in Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun -
You can write interfaces and for many projects that works fine. 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…
comment by nicwilson · 2019-07-03 · in D as a C Replacement -
…There are several tools to translate 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 -
…C is even more easier. There is no FFI, etc. 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 -
…We're using this at work. For C, it's relatively easy and mechanical to translate by hand but https://github.com/jacob-carlborg/dstep makes starting trivial. For C++, I had two cases- one was easy as that vendor provided a C handle and…
comment by rlonstein · 2015-08-28 · in Moving forward with work on the D language and foundation -
This is the approach also taken by DStep for D. https://github.com/jacob-carlborg/dstep
comment by pjmlp · 2013-08-22 · in A Week with Mozilla's Rust