Re: Clojure 1.3 amap/aset issue?

2010-10-04 Thread Sean Corfield
On Sun, Oct 3, 2010 at 11:26 PM, ataggart alex.tagg...@gmail.com 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!

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 cloj...@blackbirdsystems.net On Oct 4, 2:34 am, Lee Spector lspec...@hampshire.edu 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

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)

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

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

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

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 paul_bow...@yahoo.com wrote: Hi, I've added sandbar session mgmt to my  

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 lspec...@hampshire.edu 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

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

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

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) Caused

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

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

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

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 stack

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 functions

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

Re: lispy ways of handling dev mode

2010-10-04 Thread Michael Ossareh
On Sat, Oct 2, 2010 at 22:46, Scott Jaderholm jaderh...@gmail.com wrote: On Sat, Oct 2, 2010 at 6:36 PM, Michael Ossareh ossa...@gmail.com 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

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 kumar.shant...@gmail.com wrote: SQLRat 0.1 GA is pushed to Clojars.

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 seancorfi...@gmail.com wrote: On Sun, Oct 3, 2010 at

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 dmiller2...@gmail.com 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

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 nchubr...@gmail.com 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

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

2010-10-04 Thread Glen Stampoultzis
On 21 September 2010 07:15, Constantine Vetoshev gepar...@gmail.com 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.