www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Questions regarding a port (bindbc-cimgui)

reply sytnax <not-a-real-email address328765238568.com> writes:
Hi,

I'm new to the forum and the D language. I'm also a total newbie 
regarding sharing stuff on github, so I have questions:

Since I want to try to write small games with D as betterC, I 
have ported cimgui to a bindbc version. I basically took d-cimgui 
(which didn't work with betterC) and used bindbc-freetype as a 
blueprint for the new bindings.

The ported version seems to work fine now on Linux in 
betterC-mode with dynamic bindings and bindbc-sdl/bindbc-opengl 
(I also ported the sdl2/opengl-wrappers from dear imgui). So the 
imgui-demo-window works fine.

So, the question is: should I share this somehow (despite the 
limitations listed below)? Would it be ok to share it (regarding 
licenses)? And if yes, what would be the best way to do that? 
Should I create a github repository?

Also, there are a few caveats/limitations:
* I can't test other OSs than Linux
* I haven't tested static binding, because I have no idea how to 
statically link cimgui.
* the cimgui version is currently 1.70 (from march, because 
that's what d-cimgui is based on); I intend to try and update it 
to the latest version though.
* I'm a total newbie regarding D & dub and I may have made silly 
mistakes

Thanks for any advice!
Stefan
Sep 15 2019
parent reply Dennis <dkorpel gmail.com> writes:
On Sunday, 15 September 2019 at 08:17:20 UTC, sytnax wrote:
 So, the question is: should I share this somehow (despite the 
 limitations listed below)?
Considering the circumstances you mentioned, I'd say either don't publish it or simply make it a public GitHub repository with these limitations stated in the readme. Considering there are already a derelict binding [1] and a port [2] for imgui out there, putting much work into making your code useful for others might not be worth it. If you want to publish it on Dub (the D package manager, https://code.dlang.org), I'd encourage you to polish it up and test it so it's up to par with other bindbc packages and useful for others. However, it's not like Dub currently has a high standard (you can find lots of low-effort packages in there) and ultimately it's up to you to decide how / whether you share your code.
 Would it be ok to share it (regarding licenses)?
Assuming you used this: https://github.com/0dyl/d-cimgui It says "license": "MIT" Which allows you to modify and redistribute as long as you keep the MIT license text in there. The author of that repository didn't put an MIT license text in there, but considering it's a simple header translation I doubt you can get sued over it. (usual IANAL applies) [1] http://code.dlang.org/packages/derelict-imgui [2] http://code.dlang.org/packages/dimgui
Sep 16 2019
parent sytnax <not-a-real-email address328765238568.com> writes:
 or simply make it a public GitHub repository with these 
 limitations stated in the readme.
Yeah, that sounds good. On the one hand I'd like to share code, and on the other hand it kinda stresses me out. I should probably just learn a bit more about D, and then come back to the idea. Thanks a lot for answering!
Sep 16 2019