Re: Stackoverflow error on including link to the same object

2017-03-31 Thread Max Muranov
But if I perform such thing this in clojure: (send-off (:movement-agent game) (fn [_] game)) As I found out, I get something like this: Game {:heroes-container obj[Ref], :movement-agent obj[Agent{:val Game {:heroes-container obj[Ref], :movement-agent obj[Agent

Re: Stackoverflow error on including link to the same object

2017-03-31 Thread Max Muranov
And there are several agents that realize game objects behavior. For example this is movement agent: (defn movement-loop [{:keys [game last-time] {:keys [heroes-container bullets-container finished?]} :game}] "Moves heroes by their current direction" (if-not finished? (send-off *agent*

Stackoverflow error on including link to the same object

2017-03-31 Thread Max Muranov
I made a simple example-game for practice. Everything worked fine with global containers like heroes-container or pickups-container (refs). They were working in global agents. But now I need to run several game instances at the same time, so I need Game class with its own "global variables" Thi

[ANN] Neanderthal 0.9.0 with major improvements

2017-03-31 Thread Dragan Djuric
More details in the announcement blog post: http://dragan.rocks/articles/17/Neanderthal-090-released-Clojure-high-performance-computing -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Not