google / google/clojure-turtle
event loop discrepancies between CLJ and CLJS
- Langage dominant
- Clojure
- Étoiles
- 424
- Forks
- 32
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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:
``` clojure
(do (wait 3000) (forward 30) (wait 3000))
```
``` clojure
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez les deux exemples de wait-and-render dans le CLJS REPL et comparez-les avec le comportement de Clojure. Examinez la boucle d’événements de rendu dans Processing.js ou la version CLJS de Quil ; c’est terminé lorsque les waits et le rendu de la tortue se produisent dans la séquence attendue, au lieu d’être rendus uniquement à la fin.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- clojure
- Domaine
- computer-graphics
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 30/100