Re: [Vala] [gnome-db] DataBase as a Gee Collection of Collections

2012-01-02 Thread Vivien Malerba
On 22 December 2011 22:01, Daniel Espinosa  wrote:

> I'm planning to create an implementation of interfaces to access a
> database with classes and interfaces from Gee.
>
> This thread is planned to collect comments, suggestions and track
> implementations. May be I can add a link on live.gnome.org when I have
> something functional and solid plans.
>
> First Concepts:
>
> * A database is a collection of schemas and other objects
> * Each schema have a collection of tables, views and other objects
> that have Rows
> * A Row is a collection of values with different types and with
> attributes like: PRIMARY KEY, NAME, TYPE, VALUE, REFERENCEDBY,
> REFERENCE
> * REFERENCEBY and REFERENCE attributes can be used to get a collection
> of related values from other table collection
>
>
> First implementation ideas:
>
> * Define Interfaces and implementator classes , like Gee does, to
> allow any one to access any kind of data. For now current GDA's
> infrastructure will be used.
>

Libgda reports all this information in a GdaMetaStruct object.

Regards,

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


Re: [Vala] [gnome-db] Branch 5.x series?

2012-01-02 Thread Vivien Malerba
On 22 December 2011 21:27, Daniel Espinosa  wrote:

>
>
> I've finished two examples:
>
> * samples/vala/SampleDataObject: This shows how to create a
> GdaData.Object derived class and how to use its methods for get,
> update and save values. The next step will be a why to add new objects
> to the database.
>
> * samples/vala/SampleDataModelIterable: This shows how to use Gee
> Collection capabilities to iterate, chop, filter and stream all GValue
> in a datamodel. The next step is to create a Per-Row iteration.
>

Good! Can you also writ a small README in the samples/vala directory to
explain that, along with how to run the examples and what to expect?

>
> I'll send two different e-mail to talk about new some problems and
> features I've want to see on vala extensions:
>
> a) A problem with GdaDataModel interface implementation and how to
> implement it on Vala code
>
> b) A new paradigm for GDA: DataBase as Gee Collection of Collections
>
>
Ok, I'll check them.

Thanks,

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


Re: [Vala] [gnome-db] Branch 5.x series?

2012-01-02 Thread Vivien Malerba
On 14 December 2011 20:40, Daniel Espinosa  wrote:

> 2011/12/14 Vivien Malerba :
> >
> >
> > On 13 December 2011 22:39, Daniel Espinosa  wrote:
> >>
> >> 2011/12/13 Vivien Malerba :
> >> >
> >> >
> >> > On 13 December 2011 18:22, Daniel Espinosa  wrote:
> >> >>
> >> >> I'm continue in development of Vala extensions on libgda-vala branch,
> >> >> I can't tell that is API stable, then I don't merge soon.
> >> >>
> >> >> But what about to branch 5.0 development and make master point to 6.0
> >> >> unstable. May we can make API/ABI changes like the ones on
> GdaNumeric,
> >> >> I would like to do the same for most GDA structs (GdaBlob and others)
> >> >> to add API to access its members.
> >> >
> >> >
> >> > I've just created the LIBGDA_5.0 branch for the next 5.0.x releases,
> and
> >> > now
> >> > the master branch will be used for the 5.2 release later on, so you'll
> >> > have
> >> > to merge your branch into master without any perturbation to the 5.0.x
> >> > versions.
> >> >
> >>
> >> Thanks I'll do it ASAP.
> >>
> >> >>
> >> >>
> >> >> Even I figure out how to make GdaDataModel a Gee Collection like or
> >> >> even add LINQ[1] features to Vala using Gee interfaces and GDA as
> >> >> backend.
> >> >
> >> >
> >> > I'm afraid you'll have to illustrate with an example so I can
> understand
> >> > fully what you did.
> >> >
> >>
> >> I did:
> >>
> >> * Added a DataModelIterable, this object can be used in foreach
> >> instructions in Vala or using while instrucctions using standard Gee
> >> Iterators, to filter GValues or chop a number of GValues. This makes a
> >> DataModel a linear collection of GValue where you can traverse through
> >> one per one. This is a proof of concept about to use Gee Collection
> >> interfaces.
> >
> >
> > The GdaDataModelIter object is an iterator over data models. Did you
> "wrap"
> > it or create a new object?
> >
>
> For now I have created a new GObject with a reference to a
> GdaDataModelIter created when my object (Gda.DataModelIterator) from a
> GdaDataModel using create_iter(). Then this reference is used
> internally to iterate over the DataModel by implemented
> Gee.AbstractCollection.abstract class.
>

Ok, that looks good!


>
> >>
> >>
> >> * Added a DataObject to create persistence database objects, you
> >> derive objects form Gda.DataObject to modify values in a row in a
> >> table.
> >
> >
> > Could you illustrate its usage with an example?
> >
>
> I'm writing an example in samples/vala. This is to create a micro
> Accounting system (I've liked to write it for a long time), a Book,
> Account(s) and Transaction(s). This will demostrate the use of
> GdaData.Object, to manage persistence objects in a database using a
> simple GObjects. Is a work in progress.
>

If the example is very simple and can be kept to a few files then Ok,
otherwise I prefer to have several small examples, each to illustrate a
specific problem (see my previous mail). If the example is too big, one can
get lost and the didactic value is lost.


>
> If you agree, I can merge inmediatly following "commit often, commit
> early", in order to show progress and drawbacks!
>

Yes, that's the best!


>
>
> >>
> >>
> >> Work in progress:
> >>
> >> * Implementing GdaDataModel Interface in the iterable object (just
> >> wraps an internal reference to a GdaDataModel)
> >>
> >> * Implementing Gee.Collection interface to manage DataModel's GValue
> >> as a Collection
> >>
> >> Future Ideas:
> >>
> >> * How to make use of GDA a Collection provider. Programers will be able
> >> to:
> >>
> >>   - Access GValue stored in a table by using Gee interfaces
> >>   - Access Rows in the table and filter them by using fields value
> >> expressions. This may requires to modify or add a new interface to Gee
> >> like a Collection of Hashes, each hash have field name as key and a
> >> GValue as value
> >>   - Filter Data from a database using commands like LINQ by compling
> >> using Vala. GDA can be called by Vala to pass a string representation
> >> of the query to execute a query to the database and return a
> >> Gee.Collection. This may require for GDA to parse these kind of SQL
> >> commands. A LINQ example code from Wikipedia is:
> >>
> >> int someValue = 5;
> >>
> >> var results =  from c in SomeCollection
> >>   where c.SomeProperty < someValue * 2
> >>   select new {c.SomeProperty, c.OtherProperty};
> >>
> >> foreach (var result in results)
> >> {
> >>Console.WriteLine(result);
> >> }
> >>
> >>
> >> * Ideally All providers could return just Iterable and Collection
> >> DataModels, but that requires to modify providers implementation. As
> >> Vala can create C code to refer to, may be using conditionals  is
> >> possible to include libgdadata.h to return iterable objects.
> >
> >
> > All providers return a GdaDataSelect object, which can be used to write
> data
> > back to the database. This object is quite complicated, and I don't plan
> to
> > remove it, but if you need some more 

Re: [Vala] [gnome-db] Branch 5.x series?

2012-01-02 Thread Vivien Malerba
On 15 December 2011 02:05, Daniel Espinosa  wrote:

> libgda-vala branch has been merged. All new work will continue on
> master for 5.2 release.
>

Great!


>
> Samples will continue on samples/vala in order to show new functionality.
>

Ok, good. Can you keep the examples small to illustrate a specific point?
Also, as for all the other examples, it would be good to create an
autonomous Makefile file (not in a Makefile.am), see the other examples,
and add a README in the samples/vala directory so everyone can know what
the example is about, how to run it and what to expect.

Thanks,

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


Re: [Vala] [gnome-db] Branch 5.x series?

2012-01-02 Thread Vivien Malerba
On 13 December 2011 22:39, Daniel Espinosa  wrote:

> 2011/12/13 Vivien Malerba :
> >
> >
> > On 13 December 2011 18:22, Daniel Espinosa  wrote:
> >>
> >> I'm continue in development of Vala extensions on libgda-vala branch,
> >> I can't tell that is API stable, then I don't merge soon.
> >>
> >> But what about to branch 5.0 development and make master point to 6.0
> >> unstable. May we can make API/ABI changes like the ones on GdaNumeric,
> >> I would like to do the same for most GDA structs (GdaBlob and others)
> >> to add API to access its members.
> >
> >
> > I've just created the LIBGDA_5.0 branch for the next 5.0.x releases, and
> now
> > the master branch will be used for the 5.2 release later on, so you'll
> have
> > to merge your branch into master without any perturbation to the 5.0.x
> > versions.
> >
>
> Thanks I'll do it ASAP.
>
> >>
> >>
> >> Even I figure out how to make GdaDataModel a Gee Collection like or
> >> even add LINQ[1] features to Vala using Gee interfaces and GDA as
> >> backend.
> >
> >
> > I'm afraid you'll have to illustrate with an example so I can understand
> > fully what you did.
> >
>
> I did:
>
> * Added a DataModelIterable, this object can be used in foreach
> instructions in Vala or using while instrucctions using standard Gee
> Iterators, to filter GValues or chop a number of GValues. This makes a
> DataModel a linear collection of GValue where you can traverse through
> one per one. This is a proof of concept about to use Gee Collection
> interfaces.
>

The GdaDataModelIter object is an iterator over data models. Did you "wrap"
it or create a new object?


>
> * Added a DataObject to create persistence database objects, you
> derive objects form Gda.DataObject to modify values in a row in a
> table.
>

Could you illustrate its usage with an example?


>
> Work in progress:
>
> * Implementing GdaDataModel Interface in the iterable object (just
> wraps an internal reference to a GdaDataModel)
>
> * Implementing Gee.Collection interface to manage DataModel's GValue
> as a Collection
>
> Future Ideas:
>
> * How to make use of GDA a Collection provider. Programers will be able to:
>
>   - Access GValue stored in a table by using Gee interfaces
>   - Access Rows in the table and filter them by using fields value
> expressions. This may requires to modify or add a new interface to Gee
> like a Collection of Hashes, each hash have field name as key and a
> GValue as value
>   - Filter Data from a database using commands like LINQ by compling
> using Vala. GDA can be called by Vala to pass a string representation
> of the query to execute a query to the database and return a
> Gee.Collection. This may require for GDA to parse these kind of SQL
> commands. A LINQ example code from Wikipedia is:
>
> int someValue = 5;
>
> var results =  from c in SomeCollection
>   where c.SomeProperty < someValue * 2
>   select new {c.SomeProperty, c.OtherProperty};
>
> foreach (var result in results)
> {
>Console.WriteLine(result);
> }
>
>
> * Ideally All providers could return just Iterable and Collection
> DataModels, but that requires to modify providers implementation. As
> Vala can create C code to refer to, may be using conditionals  is
> possible to include libgdadata.h to return iterable objects.
>

All providers return a GdaDataSelect object, which can be used to write
data back to the database. This object is quite complicated, and I don't
plan to remove it, but if you need some more features out of it, it can of
course be modified.

There is one last question I have: are your extensions to be used only by
programmers using Vala, or (as Vala generates C code) are they also
available to any language like Libgda currently is (through GObject
introspection)?

Regards,

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


Re: [Vala] Vala logo

2012-01-02 Thread Денис Кузьменок



Then i stand for number 5. Text title sucks :)

--- Исходное сообщение ---
От кого: "Tobias Bernard" 
Кому: vala-list@gnome.org
Дата: 2 января 2012, 21:37:49
Тема: Re: [Vala] Vala logo



>

The text issue has already been discussed in August and I think we agreed
to vote on this after coosing a symbol.
For now, just ignore the text as it's a placeholder and focus on the logo
itself ;)

Tobias


___
vala-list mailing 
listvala-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/vala-list
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] [ANNOUNCE] Gtkaml 0.6 beta 1 - Markup language for Vala

2012-01-02 Thread David Paleino
On Sat, 31 Dec 2011 20:02:29 +0200, Vlad Grecescu wrote:

> Hello,

Hello Vlad,

> We are proud to announce the beta 0.6 version of Gtkaml with the new Gtkon
> syntax.
> 
> [..]

Is libgtkaml intended to be used by third-parties? i.e. should I package it
separately (so you need to check for ABI compatibility and SONAME bumps), or
should it be included in the gtkaml package as a "private library"?

Thanks,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 | http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174


signature.asc
Description: PGP signature
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala logo

2012-01-02 Thread Tobias Bernard
The text issue has already been discussed in August and I think we agreed
to vote on this after coosing a symbol.
For now, just ignore the text as it's a placeholder and focus on the logo
itself ;)

Tobias
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala logo

2012-01-02 Thread David Gomes
Something cleaner and simpler for the font.

On Monday, January 2, 2012, Steven Oliver wrote:

> Second that. A more readable font for "VALA" would be a plus in my opinion
> as well.
>
> On Jan 2, 2012, at 12:28 PM, Dr. Michael Lauer wrote:
>
> > I also like version 5, however I think the typography
> > should be reconsidered. While it looks cool and scifi-like,
> > I'd appreciate something more readable.
> >
> > Cheers,
> >
> > :M:
> >
> > ___
> > vala-list mailing list
> > vala-list@gnome.org 
> > http://mail.gnome.org/mailman/listinfo/vala-list
>
> ___
> vala-list mailing list
> vala-list@gnome.org 
> http://mail.gnome.org/mailman/listinfo/vala-list
>


-- 
David Gomes
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala logo

2012-01-02 Thread Steven Oliver
Second that. A more readable font for "VALA" would be a plus in my opinion as 
well.

On Jan 2, 2012, at 12:28 PM, Dr. Michael Lauer wrote:

> I also like version 5, however I think the typography
> should be reconsidered. While it looks cool and scifi-like,
> I'd appreciate something more readable.
> 
> Cheers,
> 
> :M:
> 
> ___
> vala-list mailing list
> vala-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/vala-list

___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala logo

2012-01-02 Thread Dr. Michael Lauer
I also like version 5, however I think the typography
should be reconsidered. While it looks cool and scifi-like,
I'd appreciate something more readable.

Cheers,

:M:

___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala logo

2012-01-02 Thread Antono Vasiljev
On Sun, 2012-01-01 at 02:03 +0100, Tobias Bernard wrote:

> In case someone hasn't seen the proposals, here's the most recent
> version

I like version 05 :)


___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list