Delivered-To: garrigue at math.nagoya-u.ac.jp Authentication-Results: mailhost.math.nagoya-u.ac.jp sender=lablgtk-bounces at yquem.inria.fr; domainkey=neutral (no query protocol specified; no policy for yquem.inria.fr) Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=4/sMc7UajtuovooUESgE4AFKuHy71kofC4cSf6XwmOU=; b=MGnsPqa49cP6AClzyjQIT99ULj5UquIAzuuHtZyTFbX8Alp3fey56SQDKy/5Qa4GaJ Gm7AIEsJ++dUNo4ZzQHA56yPMqLouT+tnjvkURpym4I4xjPKIjLqeG6QLiGEpI50oymk NdrAMDW3HSjzfIoKQkvhuGGKTq8jzZvIuv97U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=am7H5V1RjB3/iai7UJqeOlXdz5L1+g9pxx+c621COHrqr6Yy17+CoJ0M8fgUkABl63 G/PcFrA+Dvh96n/vNeWIqbkeE2Wg29myvucHLrylLifDfGYUMbVSBqQp2FJQbZwcLjgG hwaPVUloe3Asst0LV5OJ55+5uGfIwowFB1o6A= MIME-Version: 1.0 In-Reply-To: <20091012150440.GA22421 at usha.takhisis.invalid> References: <666572260910040501n79651d01r33566967299a4572 at mail.gmail.com> <666572260910120251r5ac76f62lda0ac557005157e6@mail.gmail.com> <20091012150440.GA22421@usha.takhisis.invalid> Date: Tue, 13 Oct 2009 19:10:42 +0200 Message-ID: <666572260910131010m61a30ba1xb6652c1c5cf46e6d at mail.gmail.com> Subject: Re: [Lablgtk] [ANN] ocaml-gir 0.9 alpha - binding generator for glib2-based libs From: Adrien To: Stefano Zacchiroli Content-Type: text/plain; charset=ISO-8859-1 Cc: lablgtk at yquem.inria.fr On 12/10/2009, Stefano Zacchiroli wrote: > Out of curiosity, is there any specific reasons for not integrating > ocaml-git tout court into lablgtk2? IIUC the roadmap in front of GLib > upstreams, GIR is pretty much an intimately part of it, what do we gain > in keeping the projects separate? > > /me just thinking aloud > >From what I've seen, full gobject-introspection support should be achieved by gtk4 (or maybe 3.5). Moreover, gobject-introspection as a software is pretty bad: it changes the interface of the libraries and if you run "make" inside gobject-introspection or gi-repository, you may end up with something else than the library interface (ie the interface to a bunch of .c and .h files which come with gi-repository). I'm not sure I like gobject-introspection as a concept either. Sure, having a description of the libraries interfaces is nice but that's already called gtk-doc (and the corresponding annotations), making bindings on-the-fly (or nearly) requires a bit too much luck for my taste. Moreover, reliable automated bindings with a nice api won't be available before some time. There are too many discrepancies in the namings for this to be possible and the annotations are often missing (absolutely required for out-parameters). That said, I really prefer having ocaml-gir generate bindings which are then redistributed as source (and could maybe be distributed along lablgtk2) rather than distributing ocaml-gir and letting it generate bindings on each computer. It really needs someone to check everything went ok. As for making interfaces for different (read older) versions, I can do it myself if needed. Among the reasons I don't believe gobject-introspection is good: the goal is to create the bindings on each computer but how does the application maker know which function he can rely on? It's one more way to fail at runtime, I'd rather avoid that and let the python/perl/ruby/javascript/... fanboys solve one more problem [NB: I've been deeply annoyed at how pythonic the .gir/.xml files felt). --- Adrien Nader _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk