Jiří Zárevúcky writes:
>
> Dne 21. červenec 2009 17:06 Jiří Zárevúcky gmail.com>
> napsal(a):
> > 2009/7/21 Julien Fontanet isonoe.net>:
> >> How is that possible, the methods' signatures do not match:
> >> - Collection.add (G item) vs. Map.set (K key, V value)
> >> - Collection.contains (G
2009/7/20 Didier "Ptitjes" :
>
> - Are there some things missing ?
>
I have another proposal.
Currently, number of elements in a collection is reflected in the
"size" property. In many cases, that's a nonsense. For example, in
HashMap, number of set keys can hardly be considered a size of the
col
Hi,
Le jeudi 23 juillet 2009 à 14:32 +0200, Didier "Ptitjes" a écrit :
> Quikee wrote:
> > Hi,
> >
> >>> - is_empty()
> >> Do we make this a property or a method ?
> >
> > I think this should be a method as it generally is only a convenience
> > method for size property.
> >
> >>> - is_empty()
Re,
Quikee wrote:
> Hi,
>
>>> - is_empty()
>> Do we make this a property or a method ?
>
> I think this should be a method as it generally is only a convenience
> method for size property.
>
>>> - is_empty()
>> Same comment as for Collection.is_empty() - property or method ?
>
> It is the same
Re Tomaž,
Quikee wrote:
> Anyway I have partially done this. Now I have added to collection
> interface methods:
> - is_empty()
Do we make this a property or a method ?
> - add_all(Collection collection)
> - contains_all(Collection collection)
> - remove_all(Collection collection)
> - retain_all
Hi again,
On Wed, Jul 22, 2009 at 2:21 PM, Didier "Ptitjes" wrote:
> Hi Tomaž,
>
>> I still have the code of the changes (including tests) somewhere - I
>> will seek them out and merge them with the latest libgee version.
>
> I hope you mean rebase :)
Yes.. I think rebase would be a better word.
Hi Didier,
> >> - Does some want a convenience Tuple (or Pair) class ?
> >
> > YES! They're very helpful.
>
> What services would you need on such a class ? (Apart from wrapping the
> two values :))
Equality tests (pairs and tuples),
Swapping elements (pairs),
Adding from/to other (pairs, tuples)
Hi list,
I tweaked the road map to include more of the things proposed here. I
did not include the little stuff, but I'll create tickets for them.
The road map is published here: http://live.gnome.org/Libgee/Roadmap
Thanks to Julien for its Wiki integration :)
As you might note I post-dated the
Hi Tomaž,
Quikee wrote:
> Hi,
>
> A little more than a year ago I have made a proposal to extend LibGee
> when I rewrote the tests for it, but at that time there was not much
> interest in the changes. It may be good to repeat what I had in mind
> at that time:
>
>> I would also like to propose
Hi,
A little more than a year ago I have made a proposal to extend LibGee
when I rewrote the tests for it, but at that time there was not much
interest in the changes. It may be good to repeat what I had in mind
at that time:
> I would also like to propose an extension to the interfaces in form o
> - Are there some things missing ?
How about remove() for Iterator?
-- Jim
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
Dne 21. červenec 2009 19:02 Didier "Ptitjes" napsal(a):
>
> In fact, as shown in C5 documentation, union, intersection, ...
> set-based operations are implementable with by one call of add_all,
> remove_all, or retain_all on a Set object. Please look at the C5
> documentation for more details. Thu
Hi,
Jiří Zárevúcky wrote:
> 2009/7/21 Didier "Ptitjes" :
>> Hi list,
>>
>> Didier "Ptitjes" wrote:
>>> Open questions:
>> I'd like to add some more ideas:
>> - Support for disengageable collection change events
>
> Sounds interesting, but I'm not sure about a real value.
Often one needs to desc
2009/7/21 Fredderic :
>
> Why can't we have a
> WeakTreeMap, or a WeakArrayMap, or a WeakLinkedMap? Better to have a
> Linked.
>
What for? You can have "Collection" if I'm not mistaken.
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.or
On Mon, 20 Jul 2009 14:25:25 +0200,
"Didier \"Ptitjes\"" wrote:
> - Is a singly linked list of interest ?
What would the Queue be based on? A singly-linked list that tracks
both ends, can efficiently implement both FIFO and LIFO queues.
I do hope the Set/Map issue can be abstracted out with
2009/7/21 Didier "Ptitjes" :
> Hi list,
>
> Didier "Ptitjes" wrote:
>> Open questions:
>
> I'd like to add some more ideas:
> - Support for disengageable collection change events
Sounds interesting, but I'm not sure about a real value.
> - Support for collection updatable views (aka wrappers)
>
Dne 21. červenec 2009 17:06 Jiří Zárevúcky napsal(a):
> 2009/7/21 Julien Fontanet :
>> Didier "Ptitjes" writes:
>>>
>>> Jiří Zárevúcky wrote:
>>> > 2009/7/20 Didier "Ptitjes" free.fr>:
>>> >> - Are there some things missing ?
>>> >>
>>> >
>>> > Could you fit in making Map interface a Collection?
2009/7/21 Julien Fontanet :
> Didier "Ptitjes" writes:
>>
>> Jiří Zárevúcky wrote:
>> > 2009/7/20 Didier "Ptitjes" free.fr>:
>> >> - Are there some things missing ?
>> >>
>> >
>> > Could you fit in making Map interface a Collection? It is technically
>> > a collection of key-value pairs, and I se
>> > Could you fit in making Map interface a Collection? It is technically
>> > a collection of key-value pairs, and I see no reason why the interface
>> > shouldn't reflect it. :)
>>
>> Yeah. I agree on that, hence my question in the first mail about
>> exposing an interface for map entries (that
Hi list,
Didier "Ptitjes" wrote:
> Open questions:
I'd like to add some more ideas:
- Support for disengageable collection change events
- Support for collection updatable views (aka wrappers)
- With events and views, we gain a clean implementation way for sorted
list views
- Collection shuff
Hi Julien,
Julien Fontanet wrote:
> Didier "Ptitjes" writes:
>> Yeah. I agree on that, hence my question in the first mail about
>> exposing an interface for map entries (that key/value pairs).
>
> How is that possible, the methods' signatures do not match:
> - Collection.add (G item) vs. Map.
Didier "Ptitjes" writes:
>
> Jiří Zárevúcky wrote:
> > 2009/7/20 Didier "Ptitjes" free.fr>:
> >> - Are there some things missing ?
> >>
> >
> > Could you fit in making Map interface a Collection? It is technically
> > a collection of key-value pairs, and I see no reason why the interface
> > sh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
>>> - Are there some things missing ?
>> A compressed trie structure would be nice but there is no such thing for
>> GLib at the moment (with support for prefix matching etc.)
>
> Well, I have the project to code a radix tree (already started a vers
Hi Mickael
Michael 'Mickey' Lauer wrote:
> thanks for the update! It's great that someone picks up libgee.
;)
>> - Does some want a convenience Tuple (or Pair) class ?
>
> YES! They're very helpful.
What services would you need on such a class ? (Apart from wrapping the
two values :))
Best reg
Jiří Zárevúcky wrote:
> 2009/7/20 Didier "Ptitjes" :
>> - Are there some things missing ?
>>
>
> Could you fit in making Map interface a Collection? It is technically
> a collection of key-value pairs, and I see no reason why the interface
> shouldn't reflect it. :)
Yeah. I agree on that, hence m
Hi Didier,
thanks for the update! It's great that someone picks up libgee.
> Open questions:
>
> - Is a singly linked list of interest ?
Not to me.
> - Does some want a convenience Tuple (or Pair) class ?
YES! They're very helpful.
Thanks,
:M:
_
2009/7/20 Didier "Ptitjes" :
>
> - Are there some things missing ?
>
Could you fit in making Map interface a Collection? It is technically
a collection of key-value pairs, and I see no reason why the interface
shouldn't reflect it. :)
___
Vala-list maili
writes:
> > - Are there some things missing ?
>
> A compressed trie structure would be nice but there is no such thing for
> GLib at the moment (with support for prefix matching etc.)
Well, I have the project to code a radix tree (already started a version in
plain C), which is, afaiu close, b
Hi,
- Does some want a convenience Tuple (or Pair) class ?
Please, add these.
- Are there some things missing ?
A compressed trie structure would be nice but there is no such thing for
GLib at the moment (with support for prefix matching etc.)
Thanks!
Regards,
J-P
__
Saunalahdelta mul
Hello list,
Here is the roadmap I propose for libgee. Obviously I post this to get
some feedback. So feel free to comment :)
* Libgee 0.2 (2009-08-03)
- Generate GIR file
- Deprecate setters for hash and equal functions
- Introduce to_array() methods
- LinkedList implementation (Mark
30 matches
Mail list logo