google / google/clojure-turtle

event loop discrepancies between CLJ and CLJS

Đang mở
#19 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
intermediate
Ngôn ngữ chính
Clojure
Star
424
Fork
32
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện hai ví dụ wait-and-render trong CLJS REPL và so sánh chúng với hành vi của Clojure. Kiểm tra vòng lặp sự kiện rendering trong Processing.js hoặc phiên bản CLJS của Quil; hoàn thành nghĩa là các waits và việc rendering turtle diễn ra theo đúng trình tự mong đợi thay vì chỉ rendering ở cuối.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
clojure
Lĩnh vực
computer-graphics
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.