Re: binding tool for C libs

2012-01-25 Thread Gour
On Wed, 25 Jan 2012 02:27:24 +0400 Denis Shelomovskij verylonglogin@gmail.com wrote: Anyway, looks like that isn't the problem I'm trying to solve. I don't accenting on parsing C code (it's done in Function.__ctor and is obvious). The problem is to generate fast wrapper when we already

Re: binding tool for C libs

2012-01-24 Thread Denis Shelomovskij
23.01.2012 17:15, Gour пишет: On Sun, 22 Jan 2012 22:03:08 +0400 Denis Shelomovskijverylonglogin@gmail.com wrote: I'm finishing a fast (I just don't see a faster way) and garbage-free CTFE-capable wrapper. But it requires IDL to be written for every C function. I'm curious if you have

Re: binding tool for C libs

2012-01-23 Thread Gour
On Sun, 22 Jan 2012 22:03:08 +0400 Denis Shelomovskij verylonglogin@gmail.com wrote: I'm finishing a fast (I just don't see a faster way) and garbage-free CTFE-capable wrapper. But it requires IDL to be written for every C function. Interesting...otoh, I found out that htod tool is out

Re: binding tool for C libs

2012-01-23 Thread Gour
On Sun, 22 Jan 2012 22:03:08 +0400 Denis Shelomovskij verylonglogin@gmail.com wrote: I'm finishing a fast (I just don't see a faster way) and garbage-free CTFE-capable wrapper. But it requires IDL to be written for every C function. I'm curious if you have read the following paper:

Re: binding tool for C libs

2012-01-23 Thread Jacob Carlborg
On 2012-01-23 14:15, Gour wrote: On Sun, 22 Jan 2012 22:03:08 +0400 Denis Shelomovskijverylonglogin@gmail.com wrote: I'm finishing a fast (I just don't see a faster way) and garbage-free CTFE-capable wrapper. But it requires IDL to be written for every C function. I'm curious if you

Re: binding tool for C libs

2012-01-23 Thread Jacob Carlborg
On 2012-01-23 15:46, Gour wrote: On Mon, 23 Jan 2012 15:32:10 +0100 Jacob Carlborgd...@me.com wrote: I think the best idea is to create a tool that generates bindings using Clang. That's also what I'm slowly working on. Could Clang be used for both C C++ bindings? Yes, Clang handles C,

Re: binding tool for C libs

2012-01-23 Thread Gour
On Mon, 23 Jan 2012 20:49:09 +0100 Jacob Carlborg d...@me.com wrote: Yes, Clang handles C, C++, Objective-C and Objective-C++. That would be life-saver for language-bindings developers!! Sincerely, Gour -- There are principles to regulate attachment and aversion pertaining to the senses

Re: binding tool for C libs

2012-01-22 Thread Denis Shelomovskij
21.01.2012 19:24, Gour пишет: Hello! We have a need to bind smaller to medium-size C library and would like to provide more D-ish or higher-level bindings than just wrapper over C code. E.g. the C function looks like: int swe_calc_ut ( double tjd_ut, int ipl, int iflag, double* xx, char*

binding tool for C libs

2012-01-21 Thread Gour
Hello! We have a need to bind smaller to medium-size C library and would like to provide more D-ish or higher-level bindings than just wrapper over C code. E.g. the C function looks like: int swe_calc_ut ( double tjd_ut, int ipl, int iflag, double* xx, char* serr) and we would like to e.g.