google / google/clojure-turtle

event loop discrepancies between CLJ and CLJS

オープン
#19 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
intermediate
主要言語
Clojure
スター
424
フォーク
32
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

CLJS REPL で 2 つの wait-and-render の例を再現し、Clojure の動作と比較します。Processing.js のレンダリングイベントループ、または Quil の CLJS バージョンを調査します。wait とタートルのレンダリングが最後に一度だけ行われるのではなく、期待される順序で発生すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
clojure
領域
computer-graphics
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。