On 7 January 2013 12:38, Ciprian Teodorov <[email protected]> wrote:
> hi Igor,
>
> Yes I have tried some little external libraries, nothing big yet (besides
> llvm, and libclang). For the moment I did not see any show-stopper
> problems... But there are still some rough edges. What I have under scrutiny
> right now are:
> - adding unions to NB
> - supporting vectors (and constant arrays, which are flattened right now).
> Vectors appear to be used in cblas.
> - there are some problems with my callback naming scheme, which I found
> trying to map Cairo.
>
> Besides these there are some improvements to NB, to simplify code generation
> and maintenance like:
> - an unified parser for the simplified c declarations.
> - unifying fieldDecl, enumDecl, fnSpec under a single naming convention...
> Maybe nativeSpec, or nativeDecl
>

Feel free to discuss the details.
Getting NB more feature-complete won't hurt anyone :)

> For the customizations I think right now is to early to say that I have a
> good interface. But certainly over time we will have different filters.
> Right now you can customize fct names using a block, and u can specify a
> prefix for the generated classes.
>
> I am also thinking about a graphical interface, somewhat on the lines of the
> dllcc in vw.
>
> Anyways I think using libclang offers nice opportunities, maybe retrieving
> comments from headers, or even autocomplete-like ffi generation...
>
> So yeah for now I will call TalkFFI a tech-preview... We will see how it
> goes ;)
>

Yes, we should start from somewhere,  and it looks like a good starting point.
About customizations, i was thinking about SWIG-style customization
where you can write-down a list of rules, how you would like to
generate bindings to some concrete library + target language etc.

Since depending on the library, you will need some adjustments here or
there, you will find that we're
need that inevitably.


> Cheers
>
> On Jan 7, 2013 1:13 AM, "Igor Stasenko" <[email protected]> wrote:
>>
>> Wow.. that's great.
>> Having a way to automatically generate bindings makes life much easier :)
>>
>> Few questions:
>>  - did you tried to run it against some libraries around there, except
>> from LLVM?
>>
>> - i saw, in video, you can customize generation a bit.. to what
>> extent? Is there interface
>> (suppose i want to use own naming prefix, suppress generation of
>> certain declaration etc)?
>>
>> --
>> Best regards,
>> Igor Stasenko.
>>



-- 
Best regards,
Igor Stasenko.

Reply via email to