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

event loop discrepancies between CLJ and CLJS #19

Open
echeran opened this issue Mar 28, 2016 · 1 comment
Open

event loop discrepancies between CLJ and CLJS #19

echeran opened this issue Mar 28, 2016 · 1 comment

Comments

@echeran
Copy link
Collaborator

echeran commented Mar 28, 2016

Based on work for issue #6, we have a wait fn that does what you would expect. But only in the CLJS REPL, and only when you try to mix wait and turtle commands, all of the waiting happens first, and all of the rendering happens at the end. As an example, see the difference in the following at the CLJS REPL:

(do (wait 3000) (forward 30) (wait 3000))
clojure-turtle.core=> (do (wait 3000) (println "hello") (wait 3000))

Perhaps the issue is due to how the rendering event loop in either Processing.js or the CLJS version of Quil is implemented. But for whatever reason, the issue is happening. It would be great to identify the problem and fix it if possible.

@echeran
Copy link
Collaborator Author

echeran commented Jul 15, 2016

Can also try putting all commands (color, wait) into the commands log and see if that would work.

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

No branches or pull requests

1 participant