Cambridge (UK) Clojure user group

2013-06-23 Thread Ray Miller
The Cambridge (UK) Clojure group used to meet monthly, but has recently lost momentum. I'm trying to turn that around and get us back on track with a regular monthly meet-up. If you are in the Cambridge area and might be interested in attending these meet-ups, please take a few minutes to

Re: representing clojure source code as data?

2013-06-23 Thread kovas boguta
On Fri, Jun 21, 2013 at 6:08 PM, Brandon Bloom brandon.d.bl...@gmail.comwrote: You've outlined 2 out of the 3 interesting (to me) shapes: 1) raw data structures and 2) datoms. I think that the 3rd interesting one is a map/vector tree, like the CLJS analyzer output. By raw data structures,

Re: Clojure 1.6 API: clojure.lang.IFn and clojure.api.API

2013-06-23 Thread Stuart Halloway
Hi Joerg, I am not sure I understand your question. The API class is for intraprocess communication, not interprocess. All API does is provide a public, supported entry point for the kinds of things people are already doing with Var. The latter is undesirable because using Var makes it way too

[GSOC] expressions, rules and a cool transformation

2013-06-23 Thread Maik Schünemann
Hi, In the first week I concentrated on the core datastructures of expresso. How to construct an expression, a rule and specify a transformation ? I wrote about it here http://kimavcrp.blogspot.de/2013/06/gsoc-expressions-rules-and-first.html please comment whether the user interface goes in

Re: Clojure 1.6 API: clojure.lang.IFn and clojure.api.API

2013-06-23 Thread László Török
Can you please provide an example for such a usw cause? Thanks Las On Jun 23, 2013 1:38 PM, Stuart Halloway stuart.hallo...@gmail.com wrote: Hi Joerg, I am not sure I understand your question. The API class is for intraprocess communication, not interprocess. All API does is provide a

Re: representing clojure source code as data?

2013-06-23 Thread John D. Hume
On Jun 23, 2013 1:43 AM, kovas boguta kovas.bog...@gmail.com wrote: what about the other cases? Random java objects and whatnot. Those should be output in an EDN way, though its unclear what they would mean when read. Would there be any attempt to convey their contents or characteristics?

multimethods for non constant values?

2013-06-23 Thread Dennis Haupt
i found example that i can do (defmethod x 5 [y] (do stuff)) but can i do (defmethod #( % 10) [y] (do stuff)) somehow? like in a pattern match of haskell/scala? -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: multimethods for non constant values?

2013-06-23 Thread László Török
you need a dispatch functions that produces discrete dispatch values using your example: (defmulti x #(cond ( % 10) :less-than-10 ;;... further conditions producing different dispatch values )) ;; dispatch on the dispatch values (defmethod x :less-then-10 [x]

Is it possible to parameterize proxy macro with defmacro?

2013-06-23 Thread Hussein B.
Hi, After I got your help last week to get my Macro working :) I tried to expand it more: I'm trying to parameterizing my object creation (I'm using clojure.core.match). Source class offers multiple constructors: (defmacro source [source-name constructor-args meths] (match

Re: multimethods for non constant values?

2013-06-23 Thread Dennis Haupt
i see thx 2013/6/23 László Török ltoro...@gmail.com you need a dispatch functions that produces discrete dispatch values using your example: (defmulti x #(cond ( % 10) :less-than-10 ;;... further conditions producing different dispatch values )) ;;

Lambda Jam ticket available

2013-06-23 Thread Mark Nutter
Due to unexpected expenses, I'm going to be unable to use my early bird ticket to Lambda Jam (July 8-10 in Chicago). I can't get a refund, but I can designate a substitute if anyone's interested. Please contact me off list if so. Thanks. Mark -- -- You received this message because you are

Re: representing clojure source code as data?

2013-06-23 Thread Brandon Bloom
By raw data structures, you mean the concrete implementing classes, a la clojure.lang.PersistentVector? Yes. (quote 1) - {:head :list :body [quote 1]} You're not going far enough with this. Here's how my code is representing that: {:composite :list, :items [{:value quote} {:value 1}]}

Re: can't compile anything except def

2013-06-23 Thread Dennis Haupt
plugin version is 0.5.286 Am 23.06.2013 00:25, schrieb Colin Fleming: Which version of the IntelliJ plugin are you using? You can see this by opening the settings, selecting plugins then selecting the La Clojure plugin. In recent versions the compiler has changed and I've had occasional

separate namespace for extra-special forms?

2013-06-23 Thread Ben Wolfson
This strikes me as pretty odd: user (let [z 1 try 2 fn* 3] (try (let [x (fn* ([a b c] [a b c]))] (x z try fn*)) (catch Exception e e))) [1 2 3] -- Ben Wolfson Human kind has used its intelligence to vary the flavour of drinks, which

Re: separate namespace for extra-special forms?

2013-06-23 Thread Ambrose Bonnaire-Sergeant
Special forms are special when used in a list. IMO it's a bad idea to use special forms as local names, a caveat which is surprisingly under-documented. Thanks, Ambrose On Mon, Jun 24, 2013 at 5:38 AM, Ben Wolfson wolf...@gmail.com wrote: This strikes me as pretty odd: user (let [z 1

Re: separate namespace for extra-special forms?

2013-06-23 Thread Ben Wolfson
Well, when used as the first element of a list. (And I certainly wouldn't use them as local names, since that would be extremely confusing; I was trying to verify the correctness of some code I'm working on.) But I called these extra-special because, in my understanding of the term, special form

Re: matching, assigning and branching in one form

2013-06-23 Thread dmirylenka
or even without let: (condp re-find msg #^:(.*?)!.*PRIVMSG (.*) :(.*) : (fn [[_ from to message]] (true-form ...)) (false-form...)) On Saturday, June 22, 2013 11:26:35 PM UTC+12, Vincent wrote: What about using condp? (condp re-find msg #^:(.*?)!.*PRIVMSG (.*) :(.*) : #(let [[_ from to