Re: Designing API for a Markov Model

2014-09-15 Thread RJ Nowling
, September 14, 2014 3:28:10 AM UTC+1, RJ Nowling wrote: Hi all, I'm new to Clojure and implementing a Markov Model as part of a larger project. I'd like some advice on the API for a progress-state function. I see two possible options. In the first option, we always ask the user to provide

Re: Designing API for a Markov Model

2014-09-14 Thread RJ Nowling
, and the `markov-model` is just data, then it's good as it is. But I'd make sure that progress-state isn't just an empty wrapper. Jony On Sunday, 14 September 2014 03:28:10 UTC+1, RJ Nowling wrote: Hi all, I'm new to Clojure and implementing a Markov Model as part of a larger project. I'd like some

Re: Designing API for a Markov Model

2014-09-14 Thread RJ Nowling
don't currently offer/emphasize; or is this more of a learning project? * Are you planning on or interested in open sourcing your work? Best Chris On Sunday, September 14, 2014 8:18:30 AM UTC-7, RJ Nowling wrote: Thanks for the response! You make a really good point about the first

Designing API for a Markov Model

2014-09-13 Thread RJ Nowling
Hi all, I'm new to Clojure and implementing a Markov Model as part of a larger project. I'd like some advice on the API for a progress-state function. I see two possible options. In the first option, we always ask the user to provide and keep track of the MSM state themselves:

Allow Data Structure to Be Called as Function

2011-06-15 Thread RJ Nowling
Hi, I'm sorry if this has been asked before, but I would like to know how to create data structures in Clojure that can be used in the same way as the built-in data structures. For example, I can access the elements of a vector by (my-vec 1). How can I implement this interface when creating a

Re: Allow Data Structure to Be Called as Function

2011-06-15 Thread RJ Nowling
: On Wed, Jun 15, 2011 at 3:53 PM, RJ Nowling rnowl...@gmail.com wrote: Hi, I'm sorry if this has been asked before, but I would like to know how to create data structures in Clojure that can be used in the same way as the built-in data structures.  For example, I can access the elements

Enhanced Primitive Support Syntax

2011-01-13 Thread RJ Nowling
Hi all, I've been reading about the changes to Clojure that are occurring with regards to improving performance of arithmetic operations. For example, + no longer auto promotes and +' has been introduced as an auto-promoting addition operator. The idea of introducing additional syntax is a bit