Re: [Pharo-dev] New Collections for Pharo
Hello Alexander, For the MultiValueDictionary IMHO you can need to use other Collections beside OrderedCollection, so you can replace #asOrderedCollection with #asSortedCollection, etc adding an inst. var. storing the converting selector could result in a more flexible Collection. I know at least 2 other BTree Smalltalk implementations out there, one fron Avi Bryant and another one here http://www.virtualmachinery.com/btreestqstart.htm . Have you reviewed them? On the other hand, do you have some examples or empirical benchmarks to share? Cheers, Hernán 2015-05-20 2:12 GMT-03:00 ÐлекÑÐ°Ð½Ð´Ñ ÐÑенÑев <pharo-dev@lists.pharo.org>:
---------- Mensaje reenviado ---------- From: "ÐлекÑÐ°Ð½Ð´Ñ ÐÑенÑев" <alexzund3r@yahoo.com> To: Pharo Development List <pharo-dev@lists.pharo.org> Cc: Date: Wed, 20 May 2015 05:12:29 +0000 (UTC) Subject: New Collections for Pharo Greetings to everyone. As you remember, i was working at some new collections for Pharo Smalltalk. Today i want to share some results with the community. There are three collections currently implemented:
1. MultiValueDictionary - a dictionary which holda a pairs of "Key -> (Val1. Val2 ..)" 2. CircularLinkedList - a linked list which have additional pointer from its tail to head 3. Btree (do not forget to set the degree by sending the "degree:" message before start working. Also removing keys doesn't work correctly in some cases)
Comments, suggestions and critics are very appreciatied, because you are my target audience. Collections are availiable for download on my project page: SmalltalkHub <http://smalltalkhub.com/#!/~OBrenchev/NewPharoCollections>
SmalltalkHub <http://smalltalkhub.com/#!/~OBrenchev/NewPharoCollections> Loading. Please wait. ÐÑоÑмоÑÑеÑÑ Ð½Ð° smalltalkhub.com <http://smalltalkhub.com/#!/~OBrenchev/NewPharoCollections> ÐÑедваÑиÑелÑнÑй пÑоÑмоÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ Yahoo
(NewCollections,NewCollectionsTest and NewCollectionsSupport packages you need)
Best wishes Alexander
I agree with Hernan. In the MultiValueDictionary sometimes it's necessary to parametrize the collection the value has. On Wed, May 20, 2015 at 8:30 PM, Hernán Morales Durand < hernan.morales@gmail.com> wrote:
Hello Alexander,
For the MultiValueDictionary IMHO you can need to use other Collections beside OrderedCollection, so you can replace #asOrderedCollection with #asSortedCollection, etc adding an inst. var. storing the converting selector could result in a more flexible Collection.
I know at least 2 other BTree Smalltalk implementations out there, one fron Avi Bryant and another one here http://www.virtualmachinery.com/btreestqstart.htm . Have you reviewed them?
On the other hand, do you have some examples or empirical benchmarks to share?
Cheers,
Hernán
2015-05-20 2:12 GMT-03:00 ÐлекÑÐ°Ð½Ð´Ñ ÐÑенÑев <pharo-dev@lists.pharo.org>:
---------- Mensaje reenviado ---------- From: "ÐлекÑÐ°Ð½Ð´Ñ ÐÑенÑев" <alexzund3r@yahoo.com> To: Pharo Development List <pharo-dev@lists.pharo.org> Cc: Date: Wed, 20 May 2015 05:12:29 +0000 (UTC) Subject: New Collections for Pharo Greetings to everyone. As you remember, i was working at some new collections for Pharo Smalltalk. Today i want to share some results with the community. There are three collections currently implemented:
1. MultiValueDictionary - a dictionary which holda a pairs of "Key -> (Val1. Val2 ..)" 2. CircularLinkedList - a linked list which have additional pointer from its tail to head 3. Btree (do not forget to set the degree by sending the "degree:" message before start working. Also removing keys doesn't work correctly in some cases)
Comments, suggestions and critics are very appreciatied, because you are my target audience. Collections are availiable for download on my project page: SmalltalkHub <http://smalltalkhub.com/#!/~OBrenchev/NewPharoCollections>
SmalltalkHub <http://smalltalkhub.com/#!/~OBrenchev/NewPharoCollections> Loading. Please wait. ÐÑоÑмоÑÑеÑÑ Ð½Ð° smalltalkhub.com <http://smalltalkhub.com/#!/~OBrenchev/NewPharoCollections> ÐÑедваÑиÑелÑнÑй пÑоÑмоÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ Yahoo
(NewCollections,NewCollectionsTest and NewCollectionsSupport packages you need)
Best wishes Alexander
participants (2)
-
Hernán Morales Durand -
Sergio Fedi