Re: Designing API for a Markov Model

2014-09-15 Thread RJ Nowling
named after the model you are using, for clarity > > On Sunday, 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

Re: Designing API for a Markov Model

2014-09-14 Thread RJ Nowling
here something you need that other's 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 Nowl

Re: Designing API for a Markov Model

2014-09-14 Thread RJ Nowling
function, or whether the model itself could be a function. If the mechanics > of the process are somewhat generic, 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 >

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: (progress-stat

Re: Allow Data Structure to Be Called as Function

2011-06-15 Thread RJ Nowling
t; Cheers, > -Michael Nygard > > On Jun 15, 2011, at 12:57 PM, Ken Wesson wrote: > > > > > > > > > > > On Wed, Jun 15, 2011 at 3:53 PM, RJ Nowling wrote: > >> Hi, > > >> I'm sorry if this has been asked before, but I would like to know

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 da

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 o