www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Deimos - ODE bindings

reply "q66" <quaker66 gmail.com> writes:
I'm currently writing ODE plain C-D bindings and I have a 
question about requirements for inclusion into Deimos; is it 
required to keep the original documentation comments in the .d 
files? I see all Deimos projects include them, but IMO they are 
not too useful, as they are already present in the C headers, 
they just make it look ugly.

Thx
Apr 01 2012
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 4/1/2012 7:11 AM, q66 wrote:
 I'm currently writing ODE plain C-D bindings and I have a question about
 requirements for inclusion into Deimos; is it required to keep the original
 documentation comments in the .d files? I see all Deimos projects include them,
 but IMO they are not too useful, as they are already present in the C headers,
 they just make it look ugly.
I'd like them so that someone can easily compare the D versions with the C versions. Leaving the comments in will make that comparison easier.
Apr 01 2012
parent reply "q66" <quaker66 gmail.com> writes:
On Sunday, 1 April 2012 at 18:32:05 UTC, Walter Bright wrote:
 On 4/1/2012 7:11 AM, q66 wrote:
 I'm currently writing ODE plain C-D bindings and I have a 
 question about
 requirements for inclusion into Deimos; is it required to keep 
 the original
 documentation comments in the .d files? I see all Deimos 
 projects include them,
 but IMO they are not too useful, as they are already present 
 in the C headers,
 they just make it look ugly.
I'd like them so that someone can easily compare the D versions with the C versions. Leaving the comments in will make that comparison easier.
Figured so. I was asking because I ported ODE D bindings from Derelict 2 to Derelict 3 and making it without comments would be basically just about some sed processing. Anyway, I've been working on it in the meantime and finished it, leaving the original comments intact, as well as complete ODE 0.12 API macros and odemath inclusive: https://github.com/quaker66/ODE-D It's structured like any other Deimos project.
Apr 01 2012
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 4/1/2012 11:35 AM, q66 wrote:
 Figured so. I was asking because I ported ODE D bindings from Derelict 2 to
 Derelict 3 and making it without comments would be basically just about some
sed
 processing. Anyway, I've been working on it in the meantime and finished it,
 leaving the original comments intact, as well as complete ODE 0.12 API macros
 and odemath inclusive: https://github.com/quaker66/ODE-D It's structured like
 any other Deimos project.
I've added a Deimos project. Can you do a pull request to add it in? https://github.com/D-Programming-Deimos/ODE
Apr 01 2012
parent reply "q66" <quaker66 gmail.com> writes:
On Sunday, 1 April 2012 at 19:34:49 UTC, Walter Bright wrote:
 On 4/1/2012 11:35 AM, q66 wrote:
 Figured so. I was asking because I ported ODE D bindings from 
 Derelict 2 to
 Derelict 3 and making it without comments would be basically 
 just about some sed
 processing. Anyway, I've been working on it in the meantime 
 and finished it,
 leaving the original comments intact, as well as complete ODE 
 0.12 API macros
 and odemath inclusive: https://github.com/quaker66/ODE-D It's 
 structured like
 any other Deimos project.
I've added a Deimos project. Can you do a pull request to add it in? https://github.com/D-Programming-Deimos/ODE
Done.
Apr 01 2012
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 4/1/2012 1:00 PM, q66 wrote:
 On Sunday, 1 April 2012 at 19:34:49 UTC, Walter Bright wrote:
 On 4/1/2012 11:35 AM, q66 wrote:
 Figured so. I was asking because I ported ODE D bindings from Derelict 2 to
 Derelict 3 and making it without comments would be basically just about some
sed
 processing. Anyway, I've been working on it in the meantime and finished it,
 leaving the original comments intact, as well as complete ODE 0.12 API macros
 and odemath inclusive: https://github.com/quaker66/ODE-D It's structured like
 any other Deimos project.
I've added a Deimos project. Can you do a pull request to add it in? https://github.com/D-Programming-Deimos/ODE
Done.
and done. Thanks!
Apr 01 2012
parent reply "q66" <quaker66 gmail.com> writes:
On Sunday, 1 April 2012 at 20:09:40 UTC, Walter Bright wrote:
 On 4/1/2012 1:00 PM, q66 wrote:
 On Sunday, 1 April 2012 at 19:34:49 UTC, Walter Bright wrote:
 On 4/1/2012 11:35 AM, q66 wrote:
 Figured so. I was asking because I ported ODE D bindings 
 from Derelict 2 to
 Derelict 3 and making it without comments would be basically 
 just about some sed
 processing. Anyway, I've been working on it in the meantime 
 and finished it,
 leaving the original comments intact, as well as complete 
 ODE 0.12 API macros
 and odemath inclusive: https://github.com/quaker66/ODE-D 
 It's structured like
 any other Deimos project.
I've added a Deimos project. Can you do a pull request to add it in? https://github.com/D-Programming-Deimos/ODE
Done.
and done. Thanks!
Cool. I'll try to get some other lib bindings up in the future as well. :)
Apr 01 2012
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 4/1/2012 1:12 PM, q66 wrote:
 Cool. I'll try to get some other lib bindings up in the future as well. :)
That would be most appreciated.
Apr 01 2012
parent reply "q66" <quaker66 gmail.com> writes:
On Sunday, 1 April 2012 at 20:32:00 UTC, Walter Bright wrote:
 On 4/1/2012 1:12 PM, q66 wrote:
 Cool. I'll try to get some other lib bindings up in the future 
 as well. :)
That would be most appreciated.
I'm preparing my game engine for possible migration to D. Means I need all the libs ready, they already are, some of them are supplied by the Derelict project. But, there is this thing with dynamic loading of libs at runtime. I need the possibility of static linkage so having Deimos style bindings would surely be nice. I'm also binding Enlightenment Foundation Libraries (http://enlightenment.org/p.php?p=about&l=en) to D, featuring low level (plain) and high level bindings. It's a lot of separate libraries, and E SVN has a special directory for bindings to various languages, so I'm yet unsure whether to get it into Deimos or to E SVN.
Apr 01 2012
parent reply Jens Mueller <jens.k.mueller gmx.de> writes:
q66 wrote:
 On Sunday, 1 April 2012 at 20:32:00 UTC, Walter Bright wrote:
On 4/1/2012 1:12 PM, q66 wrote:
Cool. I'll try to get some other lib bindings up in the future
as well. :)
That would be most appreciated.
I'm preparing my game engine for possible migration to D. Means I need all the libs ready, they already are, some of them are supplied by the Derelict project. But, there is this thing with dynamic loading of libs at runtime. I need the possibility of static linkage so having Deimos style bindings would surely be nice.
Do you want to load libraries at run time? Can you check http://jkm.github.com/ddl/ddl.html? Technically any Deimos module should work. Jens
Apr 02 2012
parent Jacob Carlborg <doob me.com> writes:
On 2012-04-02 09:00, Jens Mueller wrote:

 Do you want to load libraries at run time?
 Can you check http://jkm.github.com/ddl/ddl.html? Technically any Deimos
 module should work.
Cool, but the name kind of conflicts with this old project: http://www.dsource.org/projects/ddl Don't know if anyone care. -- /Jacob Carlborg
Apr 02 2012