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

Andreas Rossberg wrote:
> "Lucas Dixon" <[EMAIL PROTECTED]>:
>> 
>> Given the modular design Alice, I suspect this should be easy, I
>> would guess that the top-level is just an incrementally compiled
>> module. So it should be possible to end the module and pickel it.
> 
> It's not that simple. The main problem is that Alice does not allow 
> pickling of resources. So you cannot just pickle the continuation of
> the interactive loop, since it will certainly contain resources like
> I/O streams etc. Even if you factorise away this problem, you cannot
> pickle the current dynamic environment of the toplevel loop, since it
> will likewise contain resources.

I was not imagining  pickling the interactive loop itself, which will
have a IO stream to stdin/stdout, but the result of it. I know that
alicec can compile arbitrary ML files (presumably assuming that no
streams are left open?). So I thought that similar behavior must be
possible with the a user interaction - just take the users input lines
as lines in a file that is being compiled. The result would be a
compiled alice component, which, I thought, was pickleble?

For instance, I could write a very slow and ugly version of the idea in
a scripting language that, for each line that is entered creates a new
file, which it then compiles with alicec, importing the previous files.
I expected that this could be done properly within Alice herself because
there are no external resources or context... or perhaps there is some
fundamental thing I am misunderstanding?

thanks,
lucas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGimsniUn2r+81A2gRAivsAJoCV3RSgvKMkS3q2U0OQaaIY1xp5gCfWZGT
oO++UBYHufWUS72SQ0c/Xgs=
=obHm
-----END PGP SIGNATURE-----

_______________________________________________
alice-users mailing list
[email protected]
http://www.ps.uni-sb.de/mailman/listinfo/alice-users

Reply via email to