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 <the.stuart.sie...@gmail.com>
wrote:

> 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 redesign.
>
> Based on looking very briefly at the code you linked to, it looks like it
> might be some kind of agent-based simulation. Clojure's Agents may be
> something worth exploring: http://clojure.org/agents
>
>
> –S
>
>
>
>
> On Friday, December 18, 2015 at 5:07:38 PM UTC-5, Sungjin Chun wrote:
>>
>> 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 inheritance and this
>> kind of state update is
>> not recommended approach.
>>
>> What would be the best approach in Clojure?
>>
>> Thank you in advance and sorry for my poor english.
>>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/Io1CyKo9Rlw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to