Superbelko / ohmygentool

LLVM/Clang based bindings generator for D language
The Unlicense
39 stars 6 forks source link

Why does this only have 14 stars?! This tool is unreasonably good at converting C++ to D!! #7

Open GavinRay97 opened 3 years ago

GavinRay97 commented 3 years ago

Thank you for making this and publishing it =)

Superbelko commented 3 years ago

Glad that you find it useful.

About the topic - this is mostly due to fact that 2 main other tools dstep and dpp have somewhat famous (in D circles) authors and the latter even backed by hedge fund, unlike them I have no name and no time and energy left for propaganda and advertisement.

I however doesn't see them as direct competitors to this tool since dstep is C-only, and dpp does it's job in somewhat strange way by being basically a D pre-processor.

GavinRay97 commented 3 years ago

FWIW dpp and the VisualD C++ -> D translator don't really hold a candle to ohmygentool.

I was able to port the entire API/SDK of a third party C++ library (several thousand lines of definitions) to D in one command and then a handful of manual typename changes.

It even translated some small function definitions in the header 😲

Imperatorn commented 3 years ago

Wow, I must give this a try. Want to output D

Imperatorn commented 3 years ago

Btw, for us lazy ppl, when is the next release planned? 😁

Superbelko commented 3 years ago

Honestly, I can't give exact time estimate. I was planning to do it when it will be able to process Recast navigation with at most 3 manual fixes. Currently about 20, but it is just 7 categories or so.

If I can find some time then this will take probably around 40 hours.

But even then it's just a small step. For my needs I WAS needed to be able to generate FBX SDK and PhysX bindings, but they are too heavily templated and overly engineered in general.

GavinRay97 commented 3 years ago

Do you want donations and/or help (I know you said no pull requests taken at the moment)? Not particularly well off but as a show of gratitude would happily donate.

Superbelko commented 3 years ago

Thanks, but at this point it is more of a time issue.

Superbelko commented 3 years ago

Since the question was already raised in this issue - I'm planning next release to be early May.

There was a number of fixes and some minor improvements, so despite lack of new major features I think it is still ok to do a release as it is. Maybe few extra improvements as well, but definitely nothing that big like smarter macro conversion. Anyway since now it is somewhat CI'ed it would be easier to do regular releases not bounded by feature majority.

Imperatorn commented 3 years ago

This tool rox!