guile-user
[Top][All Lists]
Advanced

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

Re: dumping arbitrary structures


From: farazs
Subject: Re: dumping arbitrary structures
Date: Wed, 28 Jan 2004 15:39:20 +0800 (HKT)
User-agent: SquirrelMail/1.4.2

> For classes you might use something like described in
> http://unknownlamer.org/code/guile-web-manual.html#SEC4.
>

    The object-serializer in guile-web is pretty much what
I want except for the "object" part. I don't particularly fancy
OOP (actually haven't seen too much).

    Secondly, my actual motive for asking this question was
not exactly to exchange data over the web ; I want to use guile
on a Linux cluster along with PVM : the idea is to use PVM to
beam down thunks of Scheme to execute on the slave nodes.

    Ultimately the conversion to string approach is a bit too
slow for my purposes. I would prefer a more low level approach
that works with all in-built types and can be extended to smobs
if needed by something like set_smob_dump(tag, funcptr) and
set_smob_restore(tag, funcptr)

     But more pertinently I would like to raise the question of
serializing everything : The ability to save closures, thunks,
continuations, etc. to files can in itself allow us to do some
pretty funny stuff. We could have truly persistent environments -
you know how after a days work on emacs you can save the file
and resume work on it later.

   Imagine this message :

Guile dumped core... Pick it up tomorrow and continue


   This feature is mentioned in the TODO list of guile-web,
which means that atleast Clinton is thinking on the lines that
I am. I wanna know if anyone else finds it useful too?

- faraz < address@hidden >




reply via email to

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