[ANN] Zippers for Squeak 4.4

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] Zippers for Squeak 4.4

Frank Shearar-3
A zipper is a data structure that lets you efficiently "modify" an
immutable data structure. "Modify", because a zipper creates a new,
updated, data structure that reuses as much of the original structure.
Local modifications and navigations are constant time.

This zipper implementation lets you walk over an arbitrary graph
structure by leaving the decision of what "up", "down", "left" and
"right" means to you, the programmer.

(Zippers should also work just fine in Squeak 4.3, Pharo 1.4 and Pharo 2.0.)

frank

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Zippers for Squeak 4.4

Hannes Hirzel
Thank you for providing this, Frank.

I assume I can edit a huge XMLDocument I keep in memory with it?

An example script?

There is still a load problem when loading it through SqueakMap into
Squeak4.4-12324

--Hannes



On 12/27/12, Frank Shearar <[hidden email]> wrote:

> A zipper is a data structure that lets you efficiently "modify" an
> immutable data structure. "Modify", because a zipper creates a new,
> updated, data structure that reuses as much of the original structure.
> Local modifications and navigations are constant time.
>
> This zipper implementation lets you walk over an arbitrary graph
> structure by leaving the decision of what "up", "down", "left" and
> "right" means to you, the programmer.
>
> (Zippers should also work just fine in Squeak 4.3, Pharo 1.4 and Pharo
> 2.0.)
>
> frank
>
>



SqueakTest4.4-12324-InstallingZippersThroughSqueakMap.gif (77K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Zippers for Squeak 4.4

Frank Shearar-3
On 27 December 2012 12:46, H. Hirzel <[hidden email]> wrote:
> Thank you for providing this, Frank.
>
> I assume I can edit a huge XMLDocument I keep in memory with it?
>
> An example script?
>
> There is still a load problem when loading it through SqueakMap into
> Squeak4.4-12324

Oh sigh, that was a lame error on my part. I'm having a great deal of
trouble uploading the corrected install script to SM though.

The correct load script is this:

Installer ss3 install: 'ConfigurationOfZippers'.
(Smalltalk at: #ConfigurationOfZippers) load

Note the "ss3" - the broken version says "cache". Deleting the file in
my account's files section makes the file disappear from the list but
doesn't actually delete anything (because I can still download it). If
I try upload a new version, it looks like SM doesn't replace the file.

frank

> --Hannes
>
>
>
> On 12/27/12, Frank Shearar <[hidden email]> wrote:
>> A zipper is a data structure that lets you efficiently "modify" an
>> immutable data structure. "Modify", because a zipper creates a new,
>> updated, data structure that reuses as much of the original structure.
>> Local modifications and navigations are constant time.
>>
>> This zipper implementation lets you walk over an arbitrary graph
>> structure by leaving the decision of what "up", "down", "left" and
>> "right" means to you, the programmer.
>>
>> (Zippers should also work just fine in Squeak 4.3, Pharo 1.4 and Pharo
>> 2.0.)
>>
>> frank
>>
>>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Zippers for Squeak 4.4

Chris Muller-3
>> Thank you for providing this, Frank.
>>
>> I assume I can edit a huge XMLDocument I keep in memory with it?
>>
>> An example script?
>>
>> There is still a load problem when loading it through SqueakMap into
>> Squeak4.4-12324
>
> Oh sigh, that was a lame error on my part. I'm having a great deal of
> trouble uploading the corrected install script to SM though.
>
> The correct load script is this:
>
> Installer ss3 install: 'ConfigurationOfZippers'.
> (Smalltalk at: #ConfigurationOfZippers) load
>
> Note the "ss3" - the broken version says "cache". Deleting the file in
> my account's files section makes the file disappear from the list but
> doesn't actually delete anything (because I can still download it). If
> I try upload a new version, it looks like SM doesn't replace the file.

Hi Frank, I just verified the current running SM server has the patch
I applied in 2/2011 which *should* fix this issue.

Did you use the Release Editor browser within the image to submit it
or the web-site?  The in-image Release Editor browser is the way to
go.

 - Chris

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Zippers for Squeak 4.4

Frank Shearar-3
On 27 December 2012 15:46, Chris Muller <[hidden email]> wrote:

>>> Thank you for providing this, Frank.
>>>
>>> I assume I can edit a huge XMLDocument I keep in memory with it?
>>>
>>> An example script?
>>>
>>> There is still a load problem when loading it through SqueakMap into
>>> Squeak4.4-12324
>>
>> Oh sigh, that was a lame error on my part. I'm having a great deal of
>> trouble uploading the corrected install script to SM though.
>>
>> The correct load script is this:
>>
>> Installer ss3 install: 'ConfigurationOfZippers'.
>> (Smalltalk at: #ConfigurationOfZippers) load
>>
>> Note the "ss3" - the broken version says "cache". Deleting the file in
>> my account's files section makes the file disappear from the list but
>> doesn't actually delete anything (because I can still download it). If
>> I try upload a new version, it looks like SM doesn't replace the file.
>
> Hi Frank, I just verified the current running SM server has the patch
> I applied in 2/2011 which *should* fix this issue.
>
> Did you use the Release Editor browser within the image to submit it
> or the web-site?  The in-image Release Editor browser is the way to
> go.

I used the Release Editor. When Hannes mentioned the problems he had
loading it, I (attempted to) manually upload a fixed install script.

frank

>  - Chris
>

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Zippers for Squeak 4.4

Chris Muller-4
>> Did you use the Release Editor browser within the image to submit it
>> or the web-site?  The in-image Release Editor browser is the way to
>> go.
>
> I used the Release Editor. When Hannes mentioned the problems he had
> loading it, I (attempted to) manually upload a fixed install script.

If, by "manually upload" you mean you used the web-site, please try
simply changing the script in the Release Editor browser in the image,
fill in all the fields, then click "Save" button.  That should work if
it doesn't please let me know.

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Zippers for Squeak 4.4

Hannes Hirzel
It now loads fine into Squeak 4.4-12324 through SqueakMap.

Tests: 253 run, 249 passes, 4 expected failures.

Thank you Frank for the Zippers package. And thanks to Chris for the
SqueakMap advice.

--Hannes

On 12/27/12, Chris Muller <[hidden email]> wrote:

>>> Did you use the Release Editor browser within the image to submit it
>>> or the web-site?  The in-image Release Editor browser is the way to
>>> go.
>>
>> I used the Release Editor. When Hannes mentioned the problems he had
>> loading it, I (attempted to) manually upload a fixed install script.
>
> If, by "manually upload" you mean you used the web-site, please try
> simply changing the script in the Release Editor browser in the image,
> fill in all the fields, then click "Save" button.  That should work if
> it doesn't please let me know.
>
>