Re: simple-check gen/boolean Only Returning false

2014-01-27 Thread Michael Daines
Awesome turnaround, Thanks. I was kinda worried I was nuts or about to do some urandom debugging. -- -- 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

simple-check gen/boolean Only Returning false

2014-01-25 Thread Michael Daines
I decided to play with simple-check for the first time and was working through the examples on github. I noticed that all the values that use gen/boolean are returning false. I never get a true. At the extreme end, the following never returns when run in the repl: (gen/sample (gen/such-that

Re: Function to Generate EDN :readers Map for Namespace Records?

2013-12-07 Thread Michael Daines
Thanks, that inspired me to look around. I didn't figure out how to hijack the defrecord macro, but I was able to write something based upon the code there: (def reader-map (let [records (filter #(re-find #^map- (str (key %))) (ns-publics *ns*)) splat (fn

Function to Generate EDN :readers Map for Namespace Records?

2013-12-05 Thread Michael Daines
I'm trying to come up with a function that will take a namespace containing Record definitions and convert it into a :readers map for EDN parsing. Right now, I'm just doing it manually, but as the number of records grows, this feels sillier and sillier. I haven't found anything in the core

Boston area Architect

2012-06-18 Thread Michael Daines
I wanted to post this job because it's still open at my company and it would be a great way to sneak Clojure in. A new project is starting up with an eye toward big data, and whoever takes the architect position will set the direction.