Re: Using memory with futures

2017-09-08 Thread Max Muranov
> > You can probably also avoid the 60- to 80-second wait if you call > (shutdown-agents) at the end of your program. > My program is endless =) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

[About JOB] Is it possible to student find clojure job?

2017-05-02 Thread Max Muranov
Hello! I'm student and I'm finishing the 4-year university studying (baccalaureate). I'm not from English-talking country but, you see, my text-speech is pretty understandable. I'm improving my spoken English also. I'm writing my diploma in Clojure and I really like this language. But there's

Re: Stackoverflow error on including link to the same object

2017-04-07 Thread Max Muranov
Yes, that's exactly what I needed, thank you! -- 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 Note that posts from new members are moderated - please be patient with your first post. To

Atom in macros ==> Can't embed object in code

2017-04-07 Thread Max Muranov
I need to create logger for machine learning debugging. First, I wanted to perform this string: (create-logger 10 "Epoch #" :epoch ", Error: " :error) This code will cause this output while training: Epoch #10, Error: 2.0 Epoch #20, Error: 1.0 Epoch #30, Error: 0.0 Epoch #40, Error: 0.0 ... I

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

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"