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

Stopping (indefinitely) stopped programs #163

Closed
jpolitz opened this issue Apr 15, 2014 · 3 comments
Closed

Stopping (indefinitely) stopped programs #163

jpolitz opened this issue Apr 15, 2014 · 3 comments

Comments

@jpolitz
Copy link
Member

jpolitz commented Apr 15, 2014

I just had an interesting experience of writing a world program without and on-tick, and not being able to convince the REPL that it had stopped.

This is because in between event handlers, the world is dormant, and the way we pause/break programs needs the program to wake up and notice its been paused in order to notify the world of the break.

This comes from our re-use of pause as break. Break should be a distinct operation that immediately calls the failure continuation of the current evaluation (so it knows that its done, without relying on timeouts), and simply blocks any new computation of the same run that starts later.

I think pause still needs to have the behavior it has now, because it needs access to the actual continuation of the computation in order to restart it. It might be possible to make this asynchronous as well, but there aren't any known issues with the behavior of pause so this isn't as urgent.

@shriram
Copy link
Member

shriram commented Apr 15, 2014

I actually had a problem with stopping/pausing too, and I think it was a similar config.

@jpolitz
Copy link
Member Author

jpolitz commented May 6, 2014

Related commits, for future reference; not quite all the way there yet.

4298a7c

c6db335

0165650

@jpolitz
Copy link
Member Author

jpolitz commented May 6, 2014

Marking this as closed, as I think 3f29c2b solves this problem.

@jpolitz jpolitz closed this as completed May 6, 2014
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