Registries

ducasse ducasse at iam.unibe.ch
Tue Nov 4 20:28:07 UTC 2003


Hi adam

I had a brief look and this is a good start. I really think that we 
need this kind of architectural
support to avoid all the hardcoded mess. I have the impression that the 
annotations are not really required we can simply use the class 
initialize way for now as we do it in FileList.

Now could you propose a first version that does not depend on roel and 
andreas stuff.
Then as avi mentioned it would be good to create a simple object like 
in the registration mechanism of the FileList. These kinds of changes 
are also really important because people tend to copy what they see and 
we could also have more behavior on them.

I'm a bit relunctant with annotations because I see more and more ugly 
stuff in VW like the delegate that vassili presented at ESUG. If we 
want that we can do it at the language level not at annotation level. 
Note that I'm reserved about annotation but this does not mean that I'm 
against new features  in the language but I study a lot languages and I 
would appreciate that we do it well :)

So to summarise can you produce a changeset with resgistry and items so 
that we can evaluate what is the best way to push that in the image.

Stef

On Mardi, nov 4, 2003, at 08:37 Europe/Zurich, Adam Spitz wrote:

> I've created a little Registries package and put it up on
> SqueakMap.
>
> Registry is a pretty simple class to let us do registries a little
> bit more flexibly than the current systems that we use for flaps or
> the open menu. A Registry contains a list of "pushed" items, can
> optionally "pull" a list of items from suitably-annotated
> class-side methods in the image, and can cache those pulled items
> so that they don't need to be re-pulled every time they're asked
> for. Also, a central dictionary of Registries is kept in the image,
> so that clients can register items even if the "owner" of the
> registry isn't installed. This ought to let us remove some packages
> (like Flaps) from the image.
>
> Right now, installing this package will also install Andreas Raab's
> MethodAnnotations and Roel Wuyts' SystemChangeNotifications. It'll
> also replace the current Open menu registry and Flaps registry with
> the new kind of registry. This is just meant as a demo - eventually
> I'll put this Registries package (or whatever we come up with after
> we've criticized it for a while) through the harvesting process.
>
>
> Adam
>
>
> ______________________________________________________________________
> Post your free ad now! http://personals.yahoo.ca
>




More information about the Squeak-dev mailing list