Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need ability to dump world without exiting #4

Open
blakemcbride opened this issue Dec 27, 2014 · 1 comment
Open

Need ability to dump world without exiting #4

blakemcbride opened this issue Dec 27, 2014 · 1 comment

Comments

@blakemcbride
Copy link
Contributor

Oaklisp provides the ability to dump/save a world image upon exit. This is great but has two problems. First, the user must know before hand that they will want to save an image later. Second, they must essentially hard-code the name of the single, at-exit saved world file.

What is needed is the ability to save a world through a method call to a specified file without exiting the system. something like:

(save-world "myworld.bin")

A load-world would be great too but less important.

@barak
Copy link
Owner

barak commented Dec 28, 2014

That's a good idea. I don't think there's any particular technical barrier: the process could fork before doing the destructive machinations required to prepare the world for saving. We could just allocate a new bytecode instruction. Certainly this would simplify other aspects of the system, because things could be migrated out of the emulator and into user code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants