chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] s11n among different chicken versions


From: Daishi Kato
Subject: Re: [Chicken-users] s11n among different chicken versions
Date: Fri, 21 Jul 2006 14:35:52 +0900
User-agent: Wanderlust/2.15.3 (Almost Unreal) Emacs/21.4 Mule/5.0 (SAKAKI)

Hm, maybe I don't need s11n for my purpose.
I simply would like to store hash-tables to a storage.
These hash tables are normal, meaning the procedures are default of
"hash" and "equal?".
So, the question is if there is an easy way to "write" a hash-table.
Converting a hash-table into an alist looks the way to go,
except that my hash-tables are nested.
Any idea would be welcome.
Daishi

At Fri, 21 Jul 2006 11:56:04 +0900,
Daishi Kato wrote:
> 
> Oops, sorry about that.
> I'll check the past discussion.
> Daishi
> 
> At Thu, 20 Jul 2006 21:50:05 -0500,
> Zbigniew wrote:
> > 
> > Daishi,
> > 
> > A while ago we had a discussion on how portable s11n is, and how
> > portable it should strive to be.  Felix gave a technical explanation
> > of the implementation here:
> > http://lists.gnu.org/archive/html/chicken-users/2005-11/msg00105.html.
> >  The eggdoc also mentions that serialized data is endian- and
> > word-size-dependent, and when procedures/continuations are serialized
> > this dependency extends to identical binaries.  The egg is not
> > intended to be terribly robust as S-exprs are (sometimes) a good
> > alternative.
> > 
> > I believe if you do not serialize procedures or continuations, it
> > should deserialize across Chicken versions, but I have not tried.
> > 
> > As an aside, I -think- endianness is not a factor any more, I had
> > provided a simple patch which removed this limitation.  This was only
> > to make testing easier for me on a heterogeneous network.  Further
> > robustness was deemed outside the scope of the egg.
> > 
> > I hope this helps.
> > 
> > On 7/20/06, Daishi Kato <address@hidden> wrote:
> > > Hi,
> > >
> > > Is it well known that a serialization and a deserialization
> > > are not compatible between different chicken versions?
> > > Any way for convertion? any workaround?
> > >
> > > Thanks,
> > > Daishi
> > >
> > >
> > > _______________________________________________
> > > Chicken-users mailing list
> > > address@hidden
> > > http://lists.nongnu.org/mailman/listinfo/chicken-users
> > >




reply via email to

[Prev in Thread] Current Thread [Next in Thread]