Re: hammock driven development...

2011-06-11 Thread Pedro Teixeira
You might also enjoy the talk 'Where Good Ideas Come From' ;) http://www.youtube.com/watch?v=NugRZGDbPFUfeature=share On Jun 9, 2:09 pm, Brian Marick mar...@exampler.com wrote: On Jun 9, 2011, at 3:27 PM, Jules wrote: I'd also like to say this - TAKE THE HAMMOCK BIT SERIOUSLY - there is a

Talk at QCon SP

2010-09-13 Thread Pedro Teixeira
Last night, I had the chance to talk about some of the technologies I've put together in a recent project. In particular, it's about mixing clojure + cqrs + event sourcing + cep. I made slides available at http://tinyurl.com/pedroqcon -- and I'll soon publish a sample demo on github. (cheers)

Re: bug: clojure.walk removes all the metadata

2010-07-21 Thread Pedro Teixeira
On Jun 22, 6:23 pm, Krešimir Šojat kso...@gmail.com wrote: While traversing the data structure both prewalk and postwalk remove all the metadata: user= (require '[clojure.walk :as w]) nil user= (def data {:a ^{:a :this-is-a} [1 2 3]}) #'user/data user= (meta (:a data)) {:a :this-is-a}

Re: bug: clojure.walk removes all the metadata

2010-07-21 Thread Pedro Teixeira
On Jul 21, 9:59 pm, Pedro Teixeira pedr...@gmail.com wrote: On Jun 22, 6:23 pm, Krešimir Šojat kso...@gmail.com wrote: While traversing the data structure both prewalk and postwalk remove all the metadata: user= (require '[clojure.walk :as w]) nil user= (def data

Re: defmulti - defonce semantics?

2010-07-16 Thread Pedro Teixeira
On Jul 14, 4:09 pm, Michał Marczyk michal.marc...@gmail.com wrote: If you're ok with discarding all your methods for the given multi, you can do (ns-unmap the-ns-of-defmultiname-of-the-multimethod) (I'm not sure if you should also unmap it in namespaces which refer to that Var just now...)

Re: Variadic arguments and macros

2010-07-07 Thread Pedro Teixeira
What's the idiomatic way to handle cases where one has a macro rather than a function? For example: intent is as follows but does not work: (def args [false true false]) (apply or args) alternatives? a (eval `(or @~args)) b (reduce #(or %1 %2) args) any recommended? thanks, Pedro On

Re: Interface to integrate transactions with Clojure transactions

2010-06-13 Thread Pedro Teixeira
There is an old patch that was contributed to the list: http://groups.google.com/group/clojure/browse_thread/thread/aa22a709501a64ac I'm also interested in this, it would be a nice extension point have without having to patch clojure.core. On Jun 10, 6:58 pm, James Reeves

Re: Datatypes and Protocols update

2010-05-24 Thread Pedro Teixeira
On May 22, 9:51 pm, Pedro Teixeira pedr...@gmail.com wrote: On Apr 27, 9:45 am, Rich Hickey richhic...@gmail.com wrote: On Apr 27, 2010, at 3:20 AM, Mark Engelberg wrote: Watching Stuart's tutorial, it looks like the automaticfactory functions for deftypes have gone away (I'm

Re: Coercing a map to a record

2010-05-23 Thread Pedro Teixeira
On May 22, 12:03 am, Ben Mabey b...@benmabey.com wrote: James Reeves wrote: Hi folks, I've been experimenting with the new type system in Clojure 1.2, but I've hit something of a problem. If I define a record: user= (defrecord Foo []) user.Foo Then I can coerce a map into a type

Re: Datatypes and Protocols update

2010-05-23 Thread Pedro Teixeira
On Apr 27, 9:45 am, Rich Hickey richhic...@gmail.com wrote: On Apr 27, 2010, at 3:20 AM, Mark Engelberg wrote: Watching Stuart's tutorial, it looks like the automaticfactory functions for deftypes have gone away (I'm still working with Clojure 1.1, so haven't had a chance to try the