Re: [gnome-db] GDA as Gee.Collection Reched Milestone 1

2012-02-20 Thread Vivien Malerba
On 13 January 2012 17:53, Daniel Espinosa  wrote:

>
>
> 2012/1/13 Vivien Malerba 
>
>>
>>
>> On 13 January 2012 00:51, Daniel Espinosa  wrote:
>>
>>>
>>>
>>> Here is what I propose to you:
>>>>
>>>>- remove the generated files from git
>>>>
>>>>
>>>>- add to git the "reference" of these files along with a test
>>>>script (sh, python, perl, ...) which can then compare (or other) the
>>>>generated files with the expected "reference" files to enable you to 
>>>> detect
>>>>any problem.
>>>>
>>>> The advantage of having a script to detect problems is that it can be
>>>> documented (in its header for example) and run by anybody who thinks there
>>>> is a problem.
>>>>
>>>>
>>> for example copy Gda-5.0.gir to libgda/gir ? And then a script to check
>>> diffs?
>>
>>
>> Yes, for example create a libgda/girtest to store the expected GIR file
>> (managed using git), let the build mechanism create the GIR file in
>> libgda/, and then have a script in libgda/girtest (also managed by git)
>> which compares (or does other tests) the two GIR files after compilation
>> (maybe executed when "make check" is run).
>>
>>
> This could be Ok if you always know the file format and what contents
> might be in. GIR format is undocumented and in GDA depends on API additions
> or minor improvements.
>
> One of the "aditional goals" of GObject Introspectio is API verification,
> I would like to try on GDA and get a first hit. I filed bug 667837 to
> notify API break in GDA-5.0.gir generated by GI master, the problem comes
> when check Vala extensions and fails to find a function on Gda.DataProxy.
>
> As explained on GI website, we could hold GIR versions for each release,
> not each time we compile, because the resulting GIR could include API
> breaks that must be fixed before release. To deal with bug 667837, I can
> make use on Vala of custom code or metadata, but on Python or JavaScript,
> witch depends directly on GIR, I can't do that.
>
> Another is to autogenerate GIR files but not install them. Instead we can
> send a patch to Vala or fix our code to make sure we will get not API break
> but API additions and improvements. When a new release is ready, we can
> check for API breaks by manually or include Unit Tests cases for the whole
> API in Python.


Ok, I see it's a bit more complicated than I had anticipated. Then I'll let
you do what you think is the best.

However please add some doc (even as a README.GIR file for example) to tell
how and when GIR files are generated, checked, updated, validated,
whatever, so that other developers can understand what's going on.

Thanks,

Vivien
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: [gnome-db] GObject Introspection Support and Gnome 3.0

2009-12-02 Thread Vivien Malerba
2009/12/2 Daniel Espinosa :
> How is desirable to have support of GObjectInstrospection in a Gnome
> component for the upcomming Gnome 3.0 release?
>
> What if I need to break ABI to get "easy support" of
> GObjectIntrospection for a library?

I would be very surprised if there wasn't any way to add introspection
support without breaking the ABI, and I really don't want to break the
ABI now.

So please try to find a way for the few objects which are a problem
and make special (not automatically generated) rules for them (if I
remember correctly there are ony 2 or 3).

Thanks a lot for the work you put in bringing introspection support to Libgda.

Vivien
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: [gnome-db] Introducing non blocking (asynchronous) functions in libgda

2005-04-28 Thread Vivien Malerba
On 4/27/05, DANIELLLANO <[EMAIL PROTECTED]> wrote:
[...]
> > >
> > GdaThreader is already in CVS HEAD.
> 
> I'm blind ;-)
> True, it's there:
> http://cvs.gnome.org/viewcvs/libgda/libgda/gda-threader.c?view=markup
> 
> It seems cool.
> Any comments to have this code included directly in glib?
> (It seems useful for lots of other glib applications)
> 

I don't see any problem with that, of course, but works must be done
to make that object thread-safe itself like GAsyncQueue.

Vivien
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list