Hello Everybody,
Let us say I have something like
(def s (promise))
.
.
.
.
now can I check if the promise hase been delivered ..
Thanks
Sunil.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroup
Hi,
I can reproduce it with 1.2 and 1.3.0-master-20100911.130147-5. And I
think I know, what the problem is: You must not recur out of a
binding. The binding implicitely contains a try with cleanup code in
the finally clause. It seems that recur bypasses the finally and
executes again the binding.
OK, I upgraded to 1.3.0-master-SNAPSHOT but I am still getting a bound
x and y after running the test-nested-binding function. There must be
something else not quite right.
for my REPL I am using:
ubuntu linux 10.04
java sdk 1.6.0_21
clojure 1.3.0-master-SNAPSHOT
clojure-contrib 1.3.0-SNAPSHOT
j
That was a great talk, thanks for sharing your experience.
unfortunately I'm not near enough to attend dojos there, but we never
know :)
Regards,
Gustavo
On Sep 13, 6:49 pm, Pedro Teixeira wrote:
> Last night, I had the chance to talk about some of the technologies
> I've put together in a rece
Thank you! I'll check it out.
On Sep 12, 9:03 pm, Phil Hagelberg wrote:
> On Sat, Sep 11, 2010 at 7:55 PM, Oskar wrote:
> > I am trying to set up clojure for emacs. I use ubuntu and gnu emacs
> > 23. I followed this
> > guidehttp://riddell.us/ClojureWithEmacsSlimeSwankOnUbuntu.html
>
> Those in
I sent a reply earlier but I don't think it went through. I tried it
again with 1.3.0-master-SNAPSHOT and it still had x and y bound after
the test-nested-binding function ran. Not sure what I am doing wrong
or have misconfigured? Any insight would be appreciated.
take care,
Mike
On Sep 13, 1
I spent some time looking at this yesterday - I just need to create a
-sources.jar and a javadoc.jar to satisfy the enforcer rules on the
oss.sonatype.org repository deployment process.
I'll take another stab tonight see where I get.
Mark
--
Pull me down under...
On Tue, Sep 14, 2010 at 8:04 A
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)
Can we get a status update on that :) ?
On Aug 19, 3:22 pm, Mark Derricutt wrote:
> I think I can do that - or at least push that along. Will check into it
> when I get to the office in about 30 minutes.
>
> PS: Direct sync to central is easy via oss.sonatype.org repositories.
>
> --
> Pull me d
Hi,
Am 13.09.2010 um 20:54 schrieb Robert McIntyre:
> I'm wondering why the symbol route was selected when the merge way may
> be more convenient, or why there's something really bad about the
> merge way that I'm overlooking.
I find the the symbol way more consist with the different usage possi
Right, but the :or could conceptually just merge the supplied map with
the actual supplied argument map instead -- it's just another way it
could go.
This is possibly a simpler model to manage in your head, since
presumably you have some idea of how you want to call the function
when you're writi
Ranjit, try the following to see it in action even at the REPL:
(def xt (make-array Float/TYPE 3 3))
(def myloop (for [x (range 3) y (range 3)] (aset xt x y 1)))
(aget xt 1 1) ;; xt hasn't been changed
myloop ;; force REPL to de-lazify
(aget xt 1 1) ;; changed now
On Sep 13, 9:28 am, Mark Nut
On 13 September 2010 13:54, Bahman Movaqar wrote:
> It works. Strange gotcha.
Ring uses handler functions rather than Java servlets to represent web
applications.
A Ring adapter takes a handler and a map of options, and starts an
inline webserver.
The ring.util.servlet library provides a way o
On Sun, Sep 12, 2010 at 7:15 AM, Randy Hudson wrote:
> Haven't read the whole thing yet, but it seems promising.
it is apparently in Racket already, so it isn't just
ivory-tower-vapor-ware, either.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To
On Mon, Sep 13, 2010 at 12:37 PM, Tom Hicks wrote:
>
> On Sep 12, 10:44 pm, Meikel Brandmeyer wrote:
>>
>> The default map specifies the default for the symbols which are bound,
>> not the source of the values.
>>
>> (let [{foo :some-key bar "some-other-key" :or {foo 1}} ] ...)
>
> Sorry Meik
On Sep 12, 10:44 pm, Meikel Brandmeyer wrote:
> Hi,
>
> On 13 Sep., 04:30, Robert McIntyre wrote:
>
> > Unless there's a good reason for :or to work the way it does I think
> > that would be a good idea, since then you can define "default" maps
> > somewhere else and use those both with the :or
Erg, gmail hiccup. Started to say if you try to use it in code that's
*not* being called from the REPL, you'll be scratching your head
trying to figure out why aset never gets called.
Mark
On Mon, Sep 13, 2010 at 12:27 PM, Mark Nutter wrote:
> The REPL automatically realizes the lazy sequence in
The REPL automatically realizes the lazy sequence in the process of
printing it out, but if you try to us
On Mon, Sep 13, 2010 at 11:07 AM, Ranjit wrote:
> Thanks Armando for catching my stupid mistake. That fixed everything.
>
> Meikel, I'm not sure I understand what you're saying. When I evalua
it was on 1.2.0-master but I will upgrade to 1.3.0-master
thanks! :-)
On Sep 13, 3:01 am, Chouser wrote:
> On Sun, Sep 12, 2010 at 3:58 PM, doc wrote:
> > Hello,
>
> > I am relatively new to clojure and lispy languages in general. I
> > wrote a small program that manipulated thread vars using
Thanks Armando for catching my stupid mistake. That fixed everything.
Meikel, I'm not sure I understand what you're saying. When I evaluate
this in the REPL
(for [x (range 2) y (range 2)] (aset xt x y (+ x y)))
(aget xt 0 0)
(aget xt 1 1)
I get back 0 and 2 as I expect. Isn't the call to aset co
Hi,
On 13 Sep., 15:07, Ranjit Chacko wrote:
> (for [x (range 3) y (range 3)] (aset xt x y 1))
Note that that this will not do what you think it does. for creates a
lazy sequence which is thrown away immediately. So the aset calls are
never done. for is a list comprehension, not a looping co
Looks like you need a Float/TYPE instead of Double/TYPE.
On Sep 13, 6:07 am, Ranjit Chacko wrote:
> I'm having a problem with java interop using one of the libraries in
> the Incanter package.
>
> When I run the following code:
>
> (use '(incanter core charts))
> (import (edu.emory.math
I'm having a problem with java interop using one of the libraries in
the Incanter package.
When I run the following code:
(use '(incanter core charts))
(import (edu.emory.mathcs.jtransforms.fft FloatFFT_2D))
(def xt (make-array Double/TYPE 3 3 ))
(for [x (range 3) y (range 3)] (ase
On 2010/9/13 17:11, Aaron Bedra wrote:
> Try the following instead (just modified your attached source)
>
> (ns guestbook.core
> (:use compojure.core)
> (:require [compojure.route :as route])
> (:require [ring.adapter.jetty :as jetty])
>
> (defroutes dispatcher
> (GET "/" [] "Hello, world")
Try the following instead (just modified your attached source)
(ns guestbook.core
(:use compojure.core)
(:require [compojure.route :as route])
(:require [ring.adapter.jetty :as jetty])
(defroutes dispatcher
(GET "/" [] "Hello, world")
(route/not-found "Requested resource not found"))
(d
Hi list,
I'm trying to get a simple "hello world" Compojure application
running. I attach both the clj file and maven pom.xml (using
NetBeans+Enclojure). When I run (guestbook.core/-main), I get a blank
page in browser, no matter the URL. What am I missing?
BTW, by "blank" I really mean blan
London Clojurians and those who could be in London!
I've created a sign up for the next London Clojure Dojo. It will be on
28 September starting at 7PM at ThoughtWorks.
The sign up page is here: http://3.ly/0910ldncljdojo
We meet every month to learn a bit more clojure (and often a bit of
emacs
~~
4th European Lisp Symposium
Special Focus on Parallelism & Efficiency
March 31 - April 1st, 2011
TUHH, Hamburg University of Technology
Thanks for the link.
Very interesting indeed.
Didn't know about it.
On Mon, Sep 13, 2010 at 11:38 AM, Daniel Werner
wrote:
> On Sep 13, 9:40 am, Nicolas Oury wrote:
>> I switched to Parenscript for my small JS project, even if I's rather
>> have used Clojure than CL (especially a very small subs
I digged a little and I have a patch. I modified the case* parser in
Compiler.java, so the patch shouldn't affect anything else: I prefer
keeping safe since my knowledge of Clojure internals is limited, but a
more radical solution might be desirable.
The problem seems caused by the way case* gets
On Sep 13, 9:40 am, Nicolas Oury wrote:
> I switched to Parenscript for my small JS project, even if I's rather
> have used Clojure than CL (especially a very small subste of CL)
There is also Scriptjure, which is basically JavaScript with Clojury
syntax, similar to what ParenScript does for CL:
indeed
2010/9/13 Meikel Brandmeyer
> Hi,
>
> On 13 Sep., 09:39, Laurent PETIT wrote:
>
> > And you should consider wrapping the call to map into (dorun) so that
> you're
> > sure that once the function exits, all the ns-umap calls are done.
>
> > > >> (defn ns-unmap-all
> > > >> "Unmap all the
Hi,
On 13 Sep., 09:39, Laurent PETIT wrote:
> And you should consider wrapping the call to map into (dorun) so that you're
> sure that once the function exits, all the ns-umap calls are done.
> > >> (defn ns-unmap-all
> > >> "Unmap all the symbols (except 'ns' and 'in-ns')."
> > >> ([] (ns-un
Yes.
And you should consider wrapping the call to map into (dorun) so that you're
sure that once the function exits, all the ns-umap calls are done.
2010/9/12 Robert McIntyre
> shouldn't we rename remove-ns to ns-remove to keep it in line with the
> other ns functions?
>
> --Robert McIntyre
>
>
Hi,
I soon realised that applying the patch won't be easy...
After going through the different rejected diffs, I realised I wasn't
going to manage to make it work.
I switched to Parenscript for my small JS project, even if I's rather
have used Clojure than CL (especially a very small subste of CL
On Sun, Sep 12, 2010 at 3:58 PM, doc wrote:
> Hello,
>
> I am relatively new to clojure and lispy languages in general. I
> wrote a small program that manipulated thread vars using the binding
> macro and I am seeing what seems to be strange behavior.
>
> To illustrate, here is another small prog
On 13 Sep 2010, at 00:24, icemaze wrote:
(use 'clojure.contrib.macro-utils)
(defn bug? []
(with-symbol-macros
(case 0
0 1)))
The REPL prints:
java.lang.ClassCastException: clojure.lang.PersistentVector cannot be
cast to clojure.lang.MapEntry (NO_SOURCE_FILE:4)
Can anyone confirm this
37 matches
Mail list logo