Re: [Q] What would be the best approach or design for converting this common lisp code?

2015-12-20 Thread Sungjin Chun
Thank you for your response. I thought that the transducer based approach combined with core.async channel could be a solution. I'll check for the agent thing. On Mon, Dec 21, 2015 at 5:39 AM Stuart Sierra wrote: > Hi Sungjin, > > Although Clojure draws from the

Re: [Q] What would be the best approach or design for converting this common lisp code?

2015-12-20 Thread Stuart Sierra
Hi Sungjin, Although Clojure draws from the long history of Lisps, it is very much its own language. In particular, the emphasis on immutable data by default makes Clojure very different from both Common Lisp and Scheme. Porting code from another Lisp to Clojure will usually require a complete

[Q] What would be the best approach or design for converting this common lisp code?

2015-12-18 Thread Sungjin Chun
Hi, The code repo is https://github.com/wzrdsappr/trading-core . If you look at the code, the main trading agent is designed using inheritance and the main operation (consume) function mainly depends upon mutable update of agent's states. As far as I know Clojure does not permit attribute