Re: ffi helper demo: cairo text extents

2017-09-13 Thread Matt Wette
> On Sep 13, 2017, at 3:04 PM, Matt Wette wrote: > > I have a small FFI Helper demo using cairo. > I used my ffi-helper, all written in Guile Scheme, to generate a (ffi cairo) > module, in Scheme, from cairo.h. > > Now compare the program below to the demo at > https

ffi helper demo: cairo text extents

2017-09-13 Thread Matt Wette
I have a small FFI Helper demo using cairo. I used my ffi-helper, all written in Guile Scheme, to generate a (ffi cairo) module, in Scheme, from cairo.h. Now compare the program below to the demo at https://www.cairographics.org/samples/text_extents/ Some notes: 1) The FFI Helper uses the

Re: ffi-helper: looking for C libraries to try

2017-08-12 Thread Matt Wette
> On Aug 8, 2017, at 3:00 AM, Catonano wrote: > > Matt, > > 2017-07-15 1:17 GMT+02:00 Matt Wette <mailto:matt.we...@gmail.com>>: > > Hi All, > > I am working on a ffi-helper: a program that will read in a C dot-h file and > generate a Guile > &g

Re: ffi-helper: looking for C libraries to try

2017-08-08 Thread Catonano
Matt, 2017-07-15 1:17 GMT+02:00 Matt Wette : > > Hi All, > > I am working on a ffi-helper: a program that will read in a C dot-h file > and generate a Guile I would be intrigued by the possibility to wrrite Gnome apps in Guile scheme I know that there's a proejct for thha

Re: ffi-helper: looking for C libraries to try

2017-08-01 Thread Matt Wette
> On Jul 15, 2017, at 6:15 AM, Matt Wette wrote: > > >> On Jul 14, 2017, at 9:35 PM, Matt Wette wrote: >> >> >>> On Jul 14, 2017, at 5:44 PM, Amirouche Boubekki >>> wrote: >>> >>> On 2017-07-15 01:17, Matt Wette wrote: I tried git2 but those headers are too broken. >>> >>> What

Re: ffi-helper: looking for C libraries to try

2017-07-15 Thread Matt Wette
> On Jul 14, 2017, at 9:35 PM, Matt Wette wrote: > > >> On Jul 14, 2017, at 5:44 PM, Amirouche Boubekki >> wrote: >> >> On 2017-07-15 01:17, Matt Wette wrote: >>> I tried git2 but those headers are too >>> broken. >> >> What do you mean by "too broken"? Maybe it will be easier in the long

Re: ffi-helper: looking for C libraries to try

2017-07-15 Thread Matt Wette
> On Jul 15, 2017, at 5:37 AM, Matt Wette wrote: > > >> On Jul 15, 2017, at 1:24 AM, Amirouche wrote: >> >> >> >> Le 15/07/2017 à 06:35, Matt Wette a écrit : On Jul 14, 2017, at 5:44 PM, Amirouche Boubekki wrote: On 2017-07-15 01:17, Matt Wette wrote: > I tried g

Re: ffi-helper: looking for C libraries to try

2017-07-15 Thread Matt Wette
> On Jul 15, 2017, at 1:24 AM, Amirouche wrote: > > > > Le 15/07/2017 à 06:35, Matt Wette a écrit : >>> On Jul 14, 2017, at 5:44 PM, Amirouche Boubekki >>> wrote: >>> >>> On 2017-07-15 01:17, Matt Wette wrote: I tried git2 but those headers are too broken. >>> What do you mean b

Re: ffi-helper: looking for C libraries to try

2017-07-15 Thread Amirouche
Le 15/07/2017 à 06:35, Matt Wette a écrit : On Jul 14, 2017, at 5:44 PM, Amirouche Boubekki wrote: On 2017-07-15 01:17, Matt Wette wrote: I tried git2 but those headers are too broken. What do you mean by "too broken"? Maybe it will be easier in the long run to maintain our own version

Re: ffi-helper: looking for C libraries to try

2017-07-14 Thread Matt Wette
> On Jul 14, 2017, at 5:44 PM, Amirouche Boubekki > wrote: > > On 2017-07-15 01:17, Matt Wette wrote: >> I tried git2 but those headers are too >> broken. > > What do you mean by "too broken"? Maybe it will be easier in the long run to > maintain our own version of the headers than manually

Re: ffi-helper: looking for C libraries to try

2017-07-14 Thread Matt Wette
> On Jul 14, 2017, at 5:55 PM, Amirouche wrote: > > Can you provide guidance regarding how to run compile-ffi, here what I've > done so far: > > $ git clone https://git.savannah.nongnu.org/git/nyacc.git > $ cd nyacc > $ git checkout c99dev > $ cd examples/nyacc/lang/c99 > $ source env.sh > >

Re: ffi-helper: looking for C libraries to try

2017-07-14 Thread Amirouche
Le 15/07/2017 à 01:17, Matt Wette a écrit : Hi All, I am working on a ffi-helper: a program that will read in a C dot-h file and generate a Guile dot-scm file which defines a module to provide hooks into the associated C library. My goal is to have something to release ~Oct 2017. I am

Re: ffi-helper: looking for C libraries to try

2017-07-14 Thread Amirouche Boubekki
On 2017-07-15 01:17, Matt Wette wrote: Hi All, I am working on a ffi-helper: a program that will read in a C dot-h file and generate a Guile dot-scm file which defines a module to provide hooks into the associated C library. My goal is to have something to release ~Oct 2017. I am looking for

ffi-helper: looking for C libraries to try

2017-07-14 Thread Matt Wette
Hi All, I am working on a ffi-helper: a program that will read in a C dot-h file and generate a Guile dot-scm file which defines a module to provide hooks into the associated C library. My goal is to have something to release ~Oct 2017. I am looking for suggestions for libraries (w/ includes

Re: ffi helper

2017-05-13 Thread Matt Wette
ng else as, wrt the pointer wrappers, we are adding a “C” wrapper instead of a “scheme” wrapper. I am deciding how to handle enums. I will likely have wrapper to map symbols to integers and vice versa, but I will have to handle anonymous enums as well (e.g." enum { ABC = 1 };”). Matt (u

Re: ffi helper

2017-04-17 Thread Matt Wette
> On Mar 21, 2017, at 3:40 PM, Matt Wette wrote: >> On Mar 19, 2017, at 10:23 AM, Matt Wette wrote: >>> On Mar 13, 2017, at 5:53 PM, Matt Wette wrote: >>>> On Mar 8, 2017, at 6:06 PM, Matt Wette wrote: >>>> I’m now working on a FFI helper based on the

Re: ffi helper

2017-03-23 Thread Matt Wette
> On Mar 23, 2017, at 10:43 AM, Amirouche wrote: > > Héllo Matt! > > > Le 09/03/2017 à 03:06, Matt Wette a écrit : >> I’m now working on a FFI helper based on the nyacc C99 parser. >> My current prototyping goal is to autogenerate the functions for cairo.h. >

Re: ffi helper

2017-03-23 Thread Amirouche
Héllo Matt! Le 09/03/2017 à 03:06, Matt Wette a écrit : I’m now working on a FFI helper based on the nyacc C99 parser. My current prototyping goal is to autogenerate the functions for cairo.h. I will assume going with scheme-bytestructures. I’ll keep this list posted on progress. Matt Let

Re: ffi helper

2017-03-21 Thread Matt Wette
> On Mar 19, 2017, at 10:23 AM, Matt Wette wrote: > > >> On Mar 13, 2017, at 5:53 PM, Matt Wette wrote: >> >> >>> On Mar 8, 2017, at 6:06 PM, Matt Wette wrote: >>> >>> I’m now working on a FFI helper based on the nyacc C99 parser.

Re: ffi helper

2017-03-20 Thread Taylan Ulrich Bayırlı/Kammer
Matt Wette writes: >> On Mar 13, 2017, at 5:53 PM, Matt Wette wrote: >> >> >>> On Mar 8, 2017, at 6:06 PM, Matt Wette wrote: >>> >>> I’m now working on a FFI helper based on the nyacc C99 parser. >> > > I am making some progress

Re: ffi helper

2017-03-19 Thread Matt Wette
> On Mar 13, 2017, at 5:53 PM, Matt Wette wrote: > > >> On Mar 8, 2017, at 6:06 PM, Matt Wette wrote: >> >> I’m now working on a FFI helper based on the nyacc C99 parser. > I am making some progress with some ragged prototype code. Here is a top-level p

Re: ffi helper

2017-03-13 Thread Matt Wette
> On Mar 8, 2017, at 6:06 PM, Matt Wette wrote: > > I’m now working on a FFI helper based on the nyacc C99 parser. So, like, I think what might be useful is something that will convert a dot-h file to a spec file, with certain assumptions about function signatures (e.g., if

Re: ffi helper

2017-03-11 Thread David Pirotte
Heya! > > I’m now working on a FFI helper based on the nyacc C99 parser. > > My current prototyping goal is to autogenerate the functions for cairo.h. > > I will assume going with scheme-bytestructures. > > I’ll keep this list posted on progress. > > > >

Re: ffi helper

2017-03-11 Thread Taylan Ulrich Bayırlı/Kammer
Matt Wette writes: > I’m now working on a FFI helper based on the nyacc C99 parser. > My current prototyping goal is to autogenerate the functions for cairo.h. > I will assume going with scheme-bytestructures. > I’ll keep this list posted on progress. > > Matt Hi, I&

ffi helper

2017-03-08 Thread Matt Wette
I’m now working on a FFI helper based on the nyacc C99 parser. My current prototyping goal is to autogenerate the functions for cairo.h. I will assume going with scheme-bytestructures. I’ll keep this list posted on progress. Matt