guile-user
[Top][All Lists]
Advanced

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

Re: dumping arbitrary structures


From: Clinton Ebadi
Subject: Re: dumping arbitrary structures
Date: Tue, 27 Jan 2004 20:55:28 -0500
User-agent: KMail/1.5.9

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 26 January 2004 18:50, Andreas Rottmann wrote:
> address@hidden (Paul Jarc) writes:
> > address@hidden wrote:
> >>         I'm looking for something which can dump *arbitrary* guile
> >> structures to a byte(or scm_t_bits) array - so that they may be
> >> transmitted (send()) and recieved and reconstructed cleanly on the
> >> other end. It could also be used to save data structures to a file
> >> and restore them later on.
> >
> > (with-output-to-string (lambda () (write object)))
> > That will work for built-in data types like lists, vectors, numbers,
> > strings, symbols, etc.  User-defined records and classes are a harder
> > problem.
>
> For classes you might use something like described in
> http://unknownlamer.org/code/guile-web-manual.html#SEC4.

Speaking of which, I just uploaded 0.4.0 which features a new serializer. It
should actually work this time around. It is still a *huge* hack and *very*
inefficient. I'm not working too much on guile-web anymore (or programming in
general...I've gotten lazy and spend my time chasing girls and being in a
metal band that isn't going anywhere).

- --
http://unknownlamer.org
AIM:unknownlamer IRC:address@hidden
I use Free Software because I value freedom over features.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAFxaadgGh8PQDV0sRAlASAJ9KA2ZxQX5f6ZQGTwELQzjZT/JvvACgl60y
4azctvyj8oJMTKGwvk8/XtU=
=r9Sx
-----END PGP SIGNATURE-----




reply via email to

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