unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Clinton Ebadi <clinton@unknownlamer.org>
Subject: Re: dumping arbitrary structures
Date: Tue, 27 Jan 2004 20:55:28 -0500	[thread overview]
Message-ID: <200401272055.39620.clinton@unknownlamer.org> (raw)
In-Reply-To: <87r7xme0bg.fsf@alice.rotty.yi.org>

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

On Monday 26 January 2004 18:50, Andreas Rottmann wrote:
> prj@po.cwru.edu (Paul Jarc) writes:
> > farazs@yapost.com 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:unknown_lamer@freenode#hprog
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-----


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2004-01-28  1:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-26 22:22 dumping arbitrary structures farazs
2004-01-26 22:30 ` Paul Jarc
2004-01-26 23:50   ` Andreas Rottmann
2004-01-28  1:55     ` Clinton Ebadi [this message]
2004-01-28  7:39     ` farazs
2004-01-28 13:18       ` Thien-Thi Nguyen
2004-01-28 22:47       ` Clinton Ebadi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200401272055.39620.clinton@unknownlamer.org \
    --to=clinton@unknownlamer.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).