A new version of CryptoExtras was added to project The Inbox:
http://source.squeak.org/inbox/CryptoExtras-rww.2.mcz
==================== Summary ====================
Name: CryptoExtras-rww.2
Author: rww
Time: 23 September 2010, 4:23:52.746 am
UUID: 788e4fa7-740f-d846-b0d5-ad54ccf56b4a
Ancestors: CryptoExtras-rww.1
fixed RSA signing and moved ASN1 and PKCS11 into Core
=============== Diff against CryptoExtras-rww.1 ===============
Item was added:
+ ----- Method: MD2 classSide>>oidString (in category 'as yet unclassified') -----
+ oidString
+
+ ^ '1.2.840.113549.2.2'.
+ !
Item was added:
+ ----- Method: MD4 classSide>>oidString (in category 'instance creation') -----
+ oidString
+
+ ^ '1.2.840.113549.2.5'.
+ !
Hi igor
I cannot help but indeed we need a real brand new classbuilder
with a nice MOP for instance migrating too. We will start to work on that probably december/january.
Stef
On Sep 23, 2010, at 12:03 AM, Igor Stasenko wrote:
> Hello, guys
>
> i want to do a simple thing, which can be expressed by following:
>
> oldClass replaceWith: newClass migrateInstances: [:inst |
> ... ]
>
> In my case, first, i installing a WeakFinalizationRegistry class,
> and then want to replace an old WeakRegistry class with it,
> silently and painlessly.
>
> I end up with following script:
>
> | old new oldClass newClass |
> old := OrderedCollection new.
> new := OrderedCollection new.
>
>
> "migrate instances"
> WeakRegistry allInstancesDo: [:registry | | newr |
> old add: registry.
> newr := WeakFinalizationRegistry basicNew initialize.
> registry migrateTo: newr.
> new add: newr ].
> old asArray elementsForwardIdentityTo: new asArray.
>
> "replace the class"
>
> oldClass := WeakRegistry.
> newClass := WeakFinalizationRegistry.
>
> Smalltalk forgetClass: #WeakFinalizationRegistry logged: false.
> newClass superclass removeSubclass: newClass.
> newClass setName: #WeakRegistry.
> oldClass becomeForward: newClass.
>
> --
>
> it looks a bit hackish, and i wonder how to do that in more 'standard' way.
>
> Initially replacing classes was:
>
> oldClass removeFromSystem.
> newClass rename: #WeakRegistry
>
> the problem with that, is that all compiled methods , which was
> referring to old class through association,
> still using it, and to get rid of them i have to recompile them.
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Hi:
Is there a Squeak BoF planed for SPLASH/OOPSLA this year?
If so, is there already a time slot fixed for it?
Thanks
Stefan
--
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: +32 2 629 2974
Fax: +32 2 629 3525
------ Forwarded Message
From: NASA News Services <nasa_subscriptions(a)service.govdelivery.com>
Reply-To: NASA News Services <nasa_subscriptions(a)service.govdelivery.com>
Date: Thu, 23 Sep 2010 00:17:31 -0500
To: <edgardec2001(a)yahoo.com.ar>
Subject: NASA Selects High Schools To Compete In New Challenge:
NASA Selects High Schools To Compete In New Challenge:
<http://links.govdelivery.com:80/track?type=click&enid=bWFpbGluZ2lkPTEwMTEyN
jEmbWVzc2FnZWlkPVBSRC1CVUwtMTAxMTI2MSZkYXRhYmFzZWlkPTEwMDEmc2VyaWFsPTEyNzY2M
jcyNjImZW1haWxpZD1lZGdhcmRlYzIwMDFAeWFob28uY29tLmFyJnVzZXJpZD1lZGdhcmRlYzIwM
DFAeWFob28uY29tLmFyJmZsPSZle>
<http://links.govdelivery.com:80/track?type=click&enid=bWFpbGluZ2lkPTEwM
TEyNjEmbWVzc2FnZWlkPVBSRC1CVUwtMTAxMTI2MSZkYXRhYmFzZWlkPTEwMDEmc2VyaWFsPTEyN
zY2MjcyNjImZW1haWxpZD1lZGdhcmRlYzIwMDFAeWFob28uY29tLmFyJnVzZXJpZD1lZGdhcmRlY
zIwMDFAeWFob28uY29tLmFyJmZsP> Tue, 21 Sep 2010 23:00:00 -0500
NASA and the Massachusetts Institute of Technology (MIT) in Cambridge,
Mass., have selected 24 high schools to participate in a new science,
technology, engineering, and math education program. The teams will design
software to program small satellites aboard the International Space Station.
-------------------------
Could be nice if some use Squeak....
Edgar
Hello,
here the latest version of scripts , which supposed to work in both
pharo and squeak
(except that pharo still missing some prerequisites like
HashedCollection and WeakKeyDictionary changes).
I added some class comments, and did some refactoring.
Install files in following order:
phase-0.cs
phase-1-weakfinalizationlist.st
phase-1-weakfinalizationregistry.st
phase-1-weakfinalizeritem.st
phase-2-finalizationprocess.1.cs
phase-3-migrating.1.cs
I split it on phases to indicate the boundaries of mcz packages.
It works well on latest 4.2 images under Squeak VM and Cog.
It doesn't requires updated VM (things are keep working under older
VMs, it just don't using new functionality).
Please, examine the #migrateOldRegistries method in
WeakFinalizationRegistry class side.
It may be a little bit buggy, since i want to replace one class with
another and not sure how to do it correctly
(Just stop before phase 3, where WeakFinalizationRegistry is not yet
made to be WeakRegistry).
If there is everything ok, then with help of some generous soul, these
changes can be pushed in trunk, because i have no idea
how to generate a proper .mcd configs in order to load these changes
in right order.
P.S. Reminder to Eliot: I am also uploaded the Cog VM changes on
mantis (http://bugs.squeak.org/view.php?id=7473),
in case if you miss it in my previous mail.
--
Best regards,
Igor Stasenko AKA sig.