[Pharo-project] serializing a class

Schwab,Wilhelm K bschwab at anest.ufl.edu
Thu Feb 24 09:29:05 EST 2011


You might do some searches on Dolphin's binary packages; I tried them once and that was about it, but there might be some useful reading on them??

For your problem, my thoughts would be either a fileout or .mcz followed by SIXX for the data.

Bill




________________________________________
From: pharo-project-bounces at lists.gforge.inria.fr [pharo-project-bounces at lists.gforge.inria.fr] On Behalf Of Mariano Martinez Peck [marianopeck at gmail.com]
Sent: Thursday, February 24, 2011 5:25 AM
To: Pharo-project at lists.gforge.inria.fr
Subject: Re: [Pharo-project] serializing a class

On Thu, Apr 1, 2010 at 11:05 PM, Schwab,Wilhelm K <bschwab at anest.ufl.edu<mailto:bschwab at anest.ufl.edu>> wrote:
Stef,

Dolphin's solution is to use proxies.  Rather than serializing the class itself, one might prefer to serialize a proxy that knows enough to find the appropriate object once it "wakes up" in the new image.  In the case of a class, it should be enough to know the name, so the proxy would have that one aspect and it would resolve itself by looking for it in the system dictionary.  There is a little more to it, but that is the basic idea.


ReferenceStream does the same, and te proxy is called DiskProxy.  This may work sometimes, but others, it doesn't.
For example, in my case, I need to REALLY serialize a class, becase I need to load it in another image where such class is not even present.

cheers

Mariano

Bill


-----Original Message-----
From: pharo-project-bounces at lists.gforge.inria.fr<mailto:pharo-project-bounces at lists.gforge.inria.fr> [mailto:pharo-project-bounces at lists.gforge.inria.fr<mailto:pharo-project-bounces at lists.gforge.inria.fr>] On Behalf Of Stéphane Ducasse
Sent: Thursday, April 01, 2010 3:03 PM
To: Pharo-project at lists.gforge.inria.fr<mailto:Pharo-project at lists.gforge.inria.fr> Development
Subject: [Pharo-project] serializing a class

Hi

I would like to do a little experiment.
I need to save a class (not the instances) in a binary format and I was wondering if somebody got experience with that.

Stef
_______________________________________________
Pharo-project mailing list
Pharo-project at lists.gforge.inria.fr<mailto:Pharo-project at lists.gforge.inria.fr>
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
Pharo-project at lists.gforge.inria.fr<mailto:Pharo-project at lists.gforge.inria.fr>
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project





More information about the Pharo-dev mailing list