Re: dstep instead of SWIG (was Re: CWrap - higher abstraction level for calling C functions)

2012-03-04 Thread Jacob Carlborg
On 2012-03-04 16:13, Gour wrote: On Tue, 21 Feb 2012 18:40:20 +0100 Jacob Carlborg wrote: DStep is currently used only for automatically generating bindings for C functions and Objective-C classes and methods. Do oyu find that dstep is capable to be used for binding whole C libs instead of u

dstep instead of SWIG (was Re: CWrap - higher abstraction level for calling C functions)

2012-03-04 Thread Gour
On Tue, 21 Feb 2012 18:40:20 +0100 Jacob Carlborg wrote: > DStep is currently used only for automatically generating bindings > for C functions and Objective-C classes and methods. Do oyu find that dstep is capable to be used for binding whole C libs instead of using SWIG? Sincerely, Gour --

Re: CWrap - higher abstraction level for calling C functions

2012-02-22 Thread Gour
On Wed, 22 Feb 2012 22:54:19 +0400 Denis Shelomovskij wrote: > OK, I'm here again. Jacob Carlborg is right - CWrap is a different > tool so it's incorrect to compare it with SWIG/dstep. It's developed > as a high performance backend for other tools or for manual wrapping > a couple of functions,

Re: CWrap - higher abstraction level for calling C functions

2012-02-22 Thread Jacob Carlborg
On 2012-02-22 19:59, Denis Shelomovskij wrote: 22.02.2012 13:41, Gour пишет: That would be nice and make the whole job of binding C functions and providing customized D API easier...and let's not forget about extra points for coordinating work. ;) I'm open for emails about using/changing/fixin

Re: CWrap - higher abstraction level for calling C functions

2012-02-22 Thread Denis Shelomovskij
22.02.2012 13:41, Gour пишет: That would be nice and make the whole job of binding C functions and providing customized D API easier...and let's not forget about extra points for coordinating work. ;) I'm open for emails about using/changing/fixing CWrap.

Re: CWrap - higher abstraction level for calling C functions

2012-02-22 Thread Denis Shelomovskij
20.02.2012 19:34, Gour пишет: On Mon, 20 Feb 2012 18:02:49 +0400 Denis Shelomovskij wrote: Hello Denis, D has complete (IMHO) compiler support for calling C functions (using extern(C)). But there is a lack of library support. I'm glad you're working on (another) bindings tool being aware th

Re: CWrap - higher abstraction level for calling C functions

2012-02-22 Thread Gour
On Tue, 21 Feb 2012 18:40:20 +0100 Jacob Carlborg wrote: > DStep is currently used only for automatically generating bindings > for C functions and Objective-C classes and methods. OK. Thank you. > But it depends what code I output, I could change dstep to output > code that uses CWrap. That w

Re: CWrap - higher abstraction level for calling C functions

2012-02-21 Thread Jacob Carlborg
On 2012-02-21 13:12, Gour wrote: On Mon, 20 Feb 2012 20:52:04 +0100 Jacob Carlborg wrote: As I understand it, CWrap provides more than just bindings for a C function. Right, but, afaik, SWIG can also make more than wrapper for a C function by using typemaps, %exception etc. Does it mean tha

Re: CWrap - higher abstraction level for calling C functions

2012-02-21 Thread Gour
On Mon, 20 Feb 2012 20:52:04 +0100 Jacob Carlborg wrote: > As I understand it, CWrap provides more than just bindings for a C > function. Right, but, afaik, SWIG can also make more than wrapper for a C function by using typemaps, %exception etc. Does it mean that dstep is only tool for wrappi

Re: CWrap - higher abstraction level for calling C functions

2012-02-20 Thread Jacob Carlborg
On 2012-02-20 16:34, Gour wrote: On Mon, 20 Feb 2012 18:02:49 +0400 Denis Shelomovskij wrote: Hello Denis, D has complete (IMHO) compiler support for calling C functions (using extern(C)). But there is a lack of library support. I'm glad you're working on (another) bindings tool being aware

Re: CWrap - higher abstraction level for calling C functions

2012-02-20 Thread Gour
On Mon, 20 Feb 2012 18:02:49 +0400 Denis Shelomovskij wrote: Hello Denis, > D has complete (IMHO) compiler support for calling C functions (using > extern(C)). But there is a lack of library support. I'm glad you're working on (another) bindings tool being aware that it's not reasonable that

CWrap - higher abstraction level for calling C functions

2012-02-20 Thread Denis Shelomovskij
D has complete (IMHO) compiler support for calling C functions (using extern(C)). But there is a lack of library support. Microsoft .NET Framework has such support, but it's poor (see previous thread about CWrap in digitalmars.D NG). Once original function is properly described in IDL, CWrap g