This should be fixed, I released 0.2.0-alpha4. Feedback appreciated.
David.
On Mon, Oct 3, 2011 at 6:27 AM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:
> Hello everybody,
> I was playing with core.match library and I notice the following behavior
>
> let [x {:a 1 :b 2 :c 10 :d 30}]
If anyone is interested, this is the strategy that I am currently using.
It's a bit messy with linking but it saves me maintaining multiple versions
and has worked so far. I expect that the linking could be removed with some
work upstream. This is a workaround for me until a more standard soluti
Hi Phil, I agree - I am not looking for 'builds on my machine' in
particular.
I want to separate the distinction of my use of a local
repository/cache/proxy to serve globally available jars from the project.clj
so that it is portable.
This enables me to have local build and a continuous integr
On Wed, Oct 5, 2011 at 3:03 PM, Rob Wolfe wrote:
> Dave Sann writes:
>
>> Hey Rob, Thanks for your reply,
>>
>> I will try that for my projects
>>
>> My use case is slightly different though. I want to be able to build other
>> peoples projects from source (e.g. from github) without editing any o
Not a lot, it turns out. I have ClojureScript views working locally,
and am in the process of working out how to best integrate them into
clutch. The stuff works, and should extend with little effort to
_changes filters, etc. etc.
There are some issues in ClojureScript that are relevant, but I c
Dave Sann writes:
> Hey Rob, Thanks for your reply,
>
> I will try that for my projects
>
> My use case is slightly different though. I want to be able to build other
> peoples projects from source (e.g. from github) without editing any of the
> project.clj files - but still overriding to use m
Has anybody successfully used cookies in clojurescript with
goog.net.cookies?
I keep getting this error: 'this.isValidName' [undefined] is not a
function" (Safari) or "Uncaught TypeError: Object [object DOMWindow]
has no method 'isValidName'" (Chrome) when I try to set a cookie via
goog.net.cookie
I'd recommend that you file a bug; surely that's a regression.
As you pointed out, this fails:
user=> (defprotocol xyz)
CompilerException java.lang.UnsupportedOperationException: Unknown
Collection type, compiling:(NO_SOURCE_PATH:1)
But the expansion works if you evaluate it directly, which might
Clojure uses marker interfaces. ClojureScript supports marker protocols.
I don't see why Clojure shouldn't support this.
David
On Wed, Oct 5, 2011 at 3:36 PM, hgreen wrote:
> Um, this is all going down a path that I don't propose to follow. I am
> manifestly aware that there are loads of alter
This fix has some bugs - you let finder but never use it. Adjusted
below:
(defmacro unique?
[name value msg]
(let [finder (symbol (str "by-" (clojure.core/name name)))])
`(let [value# ~value]
(when-not (str/blank? value#)
(when-let [existing# (~finder value#)]
(duplicate
Um, this is all going down a path that I don't propose to follow. I am
manifestly aware that there are loads of alternatives already in Clojure
(and Java, for that matter), and many reasons both theoretical and practical
for doing or not doing all manner of things. But, a couple of remarks:
@Al
On 5 October 2011 11:38, Michael Jaaka wrote:
> In fact I still don't know the macros works, I don't know when
> and how is evaluated and how symbols are evaluated.
Macros are just functions manipulating list structure (the data
structures produced by the reader when reading in Clojure code).
E.
Hi,
you have the conversion to the "by-name" function in the wrong level of
quoting in the macro.
(defmacro unique?
[name value msg]
`(let [value# ~value]
(when-not (str/blank? value#)
(let [finder# ~(symbol (str "by-" (clojure.core/name name)))]
(when-let [existing# (e
On Wed, Oct 5, 2011 at 5:02 AM, Sean Bowman wrote:
> Here's my first attempt (obviously it doesn't work, but might help
> clarify what I'm getting at):
>
> (defmacro unique?
> "Is the given value unique to the record?"
> [name value message]
> `(if-not (str/blank? ~value)
>
Thanks for the slides! The presentation is very interesting.
Was there a recording of Your talk?
- boris
2011/10/5 Dennis :
> Here is a link to my presentation.
>
> http://dl.dropbox.com/u/5831287/JavaOne%202011%20-%20Monitoring%20a%20Large-Scale%20Infrastructure%20with%20Clojure%20FINAL.ppt
I like to build DSLs when I code, so that at a high level, much of the
logic is readable and consistent. I'm trying to create a macro that
will verify the uniqueness of a record based on various fields in the
record. For example, if I have a function that looks up a record by
its name:
(defn
> Your code does not follow a path but instead you always search from same
> node for every type in the list.
Yeah - that's kind of what I thought the intended behavior was, but
now I understand. Thanks for the explanation.
On Oct 5, 1:51 am, Jozef Wagner wrote:
> Borneos walk is a convenient
On Wed, Oct 5, 2011 at 4:16 PM, Meikel Brandmeyer (kotarak)
wrote:
> And just for fun some more:
>
> (defmacro map-fn
> [& fns]
> (into {} (map (fn [[n & tail]] [(keyword n) `(fn ~@tail)]) fns)))
That one looks very cool, Meikel :-)
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
And just for fun some more:
(defmacro map-fn
[& fns]
(into {} (map (fn [[n & tail]] [(keyword n) `(fn ~@tail)]) fns)))
--
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 f
Hi,
> I wrote few apps with clojure. I have used many times macro to expand
> expressions and change some control flows. I thought that I know
> macros, but now I know that doing some programming by analogy is not
> enough. In fact I still don't know the macros works, I don't know when
> and how i
I have manage to write something like this. But nothing more, all my
ideas are wrong, because bad knowledge about evaluation and namespace
expansion time.
(defmacro map-fnc [ & methods ]
`(reduce (fn[ acc# m# ] (assoc acc# (str (first m#)) (list 'fn (rest
m#)) )) {} '~methods ))
(map-fn
Hi!
I wrote few apps with clojure. I have used many times macro to expand
expressions and change some control flows. I thought that I know
macros, but now I know that doing some programming by analogy is not
enough. In fact I still don't know the macros works, I don't know when
and how is evaluate
I will blog a summary of the talk along with the slides shortly. I have quite
the backlog of drafts to polish up, but they're coming. :-)
- Chas
On Oct 4, 2011, at 8:17 AM, C. Arel wrote:
> Hi Dennis and Chas,
> I'd also like the slides if possible. Maybe if you could post them
> here in the g
Also, I have to ask - why didn't you use one of the many "industry-standard"
toolsuites? (I am particularly partial to Zabbix myself but I don't have
thousands of machines to monitor, only < 100).
Excerpts from Dennis's message of 2011-10-05 05:55:01 +0100:
> Here is a link to my presentation.
>
24 matches
Mail list logo