Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread Jason Wolfe
A quick test to see if this is the issue; you should see this: user> (meta ^:foo []) {:tag :foo} (from lein swank on my system), not this: user=> (meta ^:foo []) nil (from lein repl on my system). On Oct 4, 11:50 pm, Jason Wolfe wrote: > Are you using "lein repl"?  If so, I suspect that ma

Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread Sean Corfield
Thanx Jason. That could well be it. I'll try it in a file (tomorrow) and report back. On Mon, Oct 4, 2010 at 11:50 PM, Jason Wolfe wrote: > Are you using "lein repl"?  If so, I suspect that may be your issue; > at least on some systems, it seems to currently lose type hints: > > http://groups.goo

Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread Jason Wolfe
Are you using "lein repl"? If so, I suspect that may be your issue; at least on some systems, it seems to currently lose type hints: http://groups.google.com/group/clojure/browse_thread/thread/41fd58c62ef1be36/40c88038f1a77d9c?show_docid=40c88038f1a77d9c -Jason On Oct 4, 11:05 pm, Sean Corfield

Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread Sean Corfield
On Mon, Oct 4, 2010 at 5:27 PM, ataggart wrote: > Not sure, but I suspect 'lein deps' doesn't kill your local maven > cache, so you might not actually be getting the latest jar off the > server.  cake has a 'cake deps force' precisely to deal with this > issue. I nuked my maven repo and ran lein

Re: [ANN] appengine-magic: using Clojure with Google App Engine

2010-10-04 Thread Glen Stampoultzis
On 21 September 2010 07:15, Constantine Vetoshev wrote: > I'd like to announce the release of a working version of appengine- > magic, a library designed to make it easier to get started with Google > App Engine using Clojure. > .. chop .. I noticed it uses ring out of the box. I was wondering

Re: ANN: SQLRat - A Clojure 1.2 library to access Relational Databases using DataTypes

2010-10-04 Thread Shantanu Kumar
On Oct 5, 2:42 am, nchubrich wrote: > Shantanu--- > > This looks great!  Can you compare it to ClojureQL?  Is it attempting > to do more or less the same thing?  (Not sure what is happening with > ClojureQL right now.) Thanks, Nick. From what I understood after reading the blog post[1] and the

Re: Is ClojureCLR converging toward a release?

2010-10-04 Thread Mike K
David, Rich: any further updates on this? Mike On Sep 24, 8:24 am, dmiller wrote: >  Just waiting for that person's CA to be processed by Rich. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegr

Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread ataggart
Not sure, but I suspect 'lein deps' doesn't kill your local maven cache, so you might not actually be getting the latest jar off the server. cake has a 'cake deps force' precisely to deal with this issue. On Oct 3, 11:32 pm, Sean Corfield wrote: > On Sun, Oct 3, 2010 at 11:26 PM, ataggart wrote

Re: ANN: SQLRat - A Clojure 1.2 library to access Relational Databases using DataTypes

2010-10-04 Thread nchubrich
Shantanu--- This looks great! Can you compare it to ClojureQL? Is it attempting to do more or less the same thing? (Not sure what is happening with ClojureQL right now.) Thanks, Nick. On Aug 31, 1:19 pm, Shantanu Kumar wrote: > SQLRat 0.1 GA is pushed to Clojars. Maven/Lein details > here:

Re: lispy ways of handling dev mode

2010-10-04 Thread Michael Ossareh
On Sat, Oct 2, 2010 at 22:46, Scott Jaderholm wrote: > On Sat, Oct 2, 2010 at 6:36 PM, Michael Ossareh wrote: > >> What is the recommended manner in which to let your application know its >> on a dev machine? >> > > I use an environment variable that determines which config (dev, > production, t

ANN: Clj-DBCP 0.1 - Database Connection Pooling

2010-10-04 Thread Shantanu Kumar
Hi, I just pushed Clj-DBCP 0.1 to Clojars. It is a Java-6/Clojure wrapper for the Apache DBCP library. Besides exposing the creation of connection-pooled datasource, the wrapper also provides API for embedding databases (in-memory, filesystem, network) such as Apache Derby, HSQLDB/HyperSQL and H2.

Correct place to put human understandable tests

2010-10-04 Thread sebastien
I write a search application, and to test it I need some util functions such as "test-search" to run and see the result. I.e. this function cannot be created as unit test - there's just no one correct answer, and only human can understand it. So, test directory is not the place to put such function

Re: big integers in 1.2 leading to parked processes? (maybe somehow, I think)

2010-10-04 Thread Lee Spector
On Oct 4, 2010, at 3:58 AM, George Jahad wrote: > Using the CDT I was able to confirm that one of the agents actually is > generating a run time exception, trying to cast an int from a long. > Could the perturb function be calling rand-int with a value that is > too large? I'm including the stac

International Lisp Conference 2010 - Update

2010-10-04 Thread aml
With the usual apologies to those who receive multiple copies. This version contains the schedules of presentations and tutorials. ~~~ International Lisp Conference 2010 October 19-21,

evaluation of a function via mathematica from clojure using the clojuratica bridge...

2010-10-04 Thread Sunil S Nandihalli
I am sorry for reposting .. I realized that the subject line was not very intelligible .. so I am changing the subject line and reposting the same message. Hello everybody, I am trying to use clojure along with mathematica. Thanks to Clojuratica, the integration is seamless.. when I try to execu

evaluation of a function via clojure ...

2010-10-04 Thread Sunil S Nandihalli
Hello everybody, I am trying to use clojure along with mathematica. Thanks to Clojuratica, the integration is seamless.. when I try to execute the following code (math (SetDelayed (func1 (Pattern x (Blank))) (With [f 10 g 20] (* f (+ g x) (math (func1 30)) I got (Clojuria

Re: big integers in 1.2 leading to parked processes? (maybe somehow, I think)

2010-10-04 Thread George Jahad
On Oct 4, 2:34 am, Lee Spector wrote: > On Oct 4, 2010, at 3:58 AM, George Jahad wrote: > > I also look forward to the integration of CDT into Eclipse/ccw :-). Or maybe > I need to migrate back to emacs, from whence I came (but was lured away by a > couple nice features of eclipse/ccw...). >

Re: Sandbar - unbound session

2010-10-04 Thread Paul
Managed to solve my own problem. For anyone with the same problem in the future, here is the corrected code: (defservice (-> my-routes wrap-stateful-session)) and remove the (def app) line. P. On Oct 4, 10:27 am, Paul wrote: > Hi, > > I've added sandbar session mgmt to my  google app engine +

Re: relational data aggregation language

2010-10-04 Thread Ross Gayler
Thanks for the two posts Shantanu. The rql and Clause examples are useful, both as potential parts of a solution and as examples of how query/aggregation stuff may be done in Clojure style. It is conceivable that I may end up deciding all I need is a DSL that covers the kinds of aggregations of i

Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread Sean Corfield
Further digging seems to indicate aset etc work for int-array types - but not float-array types? (let [^ints xii (int-array [1 2 3 4 5])] (amap xii i ret (* (aget xii i) (aget xii i (without the hint, it also works but emits various reflection warnings) On Sun, Oct 3, 2010 at 9:41 PM, Sean C

Re: big integers in 1.2 leading to parked processes? (maybe somehow, I think)

2010-10-04 Thread George Jahad
Using the CDT I was able to confirm that one of the agents actually is generating a run time exception, trying to cast an int from a long. Could the perturb function be calling rand-int with a value that is too large? I'm including the stack trace below in case that helps. This is line 950 in RT.

Sandbar - unbound session

2010-10-04 Thread Paul
Hi, I've added sandbar session mgmt to my google app engine + compojure application, wrapping a stateful session around my routes configuration with: (def app (-> my-routes wrap-stateful-session)) (defservice my-routes) The application compiles but I get the following error when I perform sessi

Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread Sean Corfield
BTW, having updated to the latest snapshot, when I press ctl-D in the repl, I get this exception: user=> Exception in thread "Thread-4" java.lang.RuntimeException: java.lang.IndexOutOfBoundsException at clojure.lang.AFn.run(AFn.java:28) at java.lang.Thread.run(Thread.java:613) Caus

Re: relational data aggregation language

2010-10-04 Thread Shantanu Kumar
Thanks Ross, that gives me a better insight into your environment. > In the online environment single cases are fetched from a > database with no aggregation capability and fired at the service that > contains the aggregation functionality. What does a single case consist of? Is it just a result-

Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread ataggart
I don't see what you're seeing for the type-hinted version: user=> (defn asum-sq [ ^floats xs ] user=* (let [ ^floats dbl (amap xs i ret user=* (* (aget xs i) user=* (aget xs i)))] user=* (areduce dbl i ret 0 user=* (+ ret (aget dbl i) NO_SOURCE_FILE:

Re: big integers in 1.2 leading to parked processes? (maybe somehow, I think)

2010-10-04 Thread Laurent PETIT
2010/10/4 George Jahad > > > On Oct 4, 2:34 am, Lee Spector wrote: > > On Oct 4, 2010, at 3:58 AM, George Jahad wrote: > > > > I also look forward to the integration of CDT into Eclipse/ccw :-). Or > maybe I need to migrate back to emacs, from whence I came (but was lured > away by a couple nice

Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread Sean Corfield
On Sun, Oct 3, 2010 at 11:26 PM, ataggart wrote: > I don't see what you're seeing for the type-hinted version: ... > Perhaps you need to update your 1.3 install. Just ran lein deps on the snapshot to get the latest versions and still see the warnings: (set! *warn-on-reflection* true) ; true (def