|
| From: | minh thu |
| Subject: | Re: [Chicken-users] noobie question about chicken/swig/csi |
| Date: | Mon, 2 Apr 2007 16:55:09 +0200 |
2007/4/2, Alex Queiroz <address@hidden>:
Hallo,
On 4/2/07, Graham Fawcett <address@hidden> wrote:
>
> Neat, huh? There's also the easy-ffi, lazy-ffi, etc. Chicken's really
> good at this kind of thing, if you're the kind of person who likes
> having choices.
>
I guess there are so many ffi choices because it must be a pain
to write pure C extensions, judged by what I've seen from chicken's
output. But I think that's inevitable given how Chicken uses the
machine stack.
Well, in fact I found very practical to made that sort of stuff. Write your C code then just a bit of Scheme so that Chicken is aware of the C code. Compile, that's it. What's more, given chicken-setup, it's also easy to make your library available to the community. Graham, I did the example that way because I like to separate C from Scheme : - if I want to move more to C side for performance, it will be easier - I keep in my head the possibility to make the library available as widely as possible by keeping it in C and making bindings for other languages. Cheers, (And I get caught by April 1 :) thu
| [Prev in Thread] | Current Thread | [Next in Thread] |