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

Timeouts #99

Closed
wisnesky opened this issue Oct 22, 2018 · 6 comments
Closed

Timeouts #99

wisnesky opened this issue Oct 22, 2018 · 6 comments
Assignees

Comments

@wisnesky
Copy link
Contributor

wisnesky commented Oct 22, 2018

Implement a feature that allows the program to stop after a certain time has passed since the computation started.

@wisnesky wisnesky self-assigned this Oct 22, 2018
@wisnesky
Copy link
Contributor Author

Experiments indicate Control.DeepSeq is what is needed

@wires wires added this to To do in First Release Oct 29, 2018
@wires wires moved this from To do to Backlog in First Release Oct 29, 2018
@wires wires moved this from Backlog to To do in First Release Oct 29, 2018
@wires wires changed the title timeouts Timeouts Oct 29, 2018
@wisnesky
Copy link
Contributor Author

This issue is to implement the 'timeout' option from the AQL language spec.

@wisnesky
Copy link
Contributor Author

I added NFData instances and tried to used deepseq, but timeouts still don't work.

@wisnesky
Copy link
Contributor Author

deepseq induces non-termination, see Employee example.

@wisnesky
Copy link
Contributor Author

Someone on the internet claims you can fork two threads, one that does the computation and the other which sleeps for X seconds, and the first one to complete destroys the other. That is how the java version works.

@wisnesky
Copy link
Contributor Author

The forking version works.

First Release automation moved this from To do to Done Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
First Release
  
Done
Development

No branches or pull requests

3 participants