Re: lein-daemon 0.3

2012-06-26 Thread Murtaza Husain
Hi, This is a very useful tool, and I will be giving it a spin. I would like to specify a file where it should log all the command line output, can I do that? Thanks, Murtaza On Tuesday, June 26, 2012 8:31:45 AM UTC+5:30, Joao_Salcedo wrote: On Thursday, May 12, 2011 2:18:57 PM UTC+10,

Re: Buggy FP behavior with Clojure 1.3

2012-06-26 Thread Cedric Greevey
On Tue, Jun 26, 2012 at 1:30 AM, dennis zhuang killme2...@gmail.com wrote: Added a postfix M to make the number as BigDecimal or N as a BigInteger: That doesn't work here. It's not double literals that are the problem, but computed values that are coming out as doubles. Furthermore, I'd like the

Re: Buggy FP behavior with Clojure 1.3

2012-06-26 Thread Sean Corfield
On Mon, Jun 25, 2012 at 10:30 PM, dennis zhuang killme2...@gmail.com wrote: Added a postfix M to make the number as BigDecimal or N as a BigInteger: Yes... user= 1e309M 1E+309M The Infinity exception seems wrong but clearly using BigDecimal makes it work. -- Sean A Corfield -- (904) 302-SEAN

How does one make BigDecimals contagious over doubles, instead of the other way around, in a particular computation?

2012-06-26 Thread Cedric Greevey
How does one make BigDecimals contagious over doubles, instead of the other way around, in a particular computation? I can see the reasoning for making doubles preferred by default: once an operation combines a double with a BigDecimal, the additional BigDecimal precision is consumed by the

Re: [ANN] clojure.java.jdbc 0.2.3 available on Maven Central

2012-06-26 Thread mnicky
Thanks! However it'd be nice if it was released as a separate library. Also, I thought that clojure.contrib.datalog worked for SQL queries... That would be even better ;) On Monday, June 25, 2012 1:50:19 PM UTC+2, Niels van Klaveren wrote: You can use the Datomic datalog implementation to

leinigen 1.7.1 stalled when used from Jenkins

2012-06-26 Thread Pierre Allix
Hello, I have a build script called from Jenkins that calls lein clean. Unfortunately lein stalled when executed from the script whereas it works fine if I do executed it from the command line. Leiningen is stalled executing this command: java

Re: [ANN] clojure.java.jdbc 0.2.3 available on Maven Central

2012-06-26 Thread Niels van Klaveren
Yeah, it's a pain to include Datomic's Datalog implementation through Maven dependencies, since you need to install the jar by hand. Afaik clojure.contrib.datalog didn't compile to SQL. Theoretically it should be possible to do so, since Datalog is a superset of SQL. However, the extra

Re: lein-daemon 0.3

2012-06-26 Thread Jack Moffitt
I've released a new version of lein-daemon. daemon is like 'lein run', only it runs the process in the background rather than blocking. 0.3 and up is a complete re-write, that no longer depends on apache commons daemon. The new version has no dependencies on any external programs. For

Re: Buggy FP behavior with Clojure 1.3

2012-06-26 Thread Armando Blancas
I don't get the exception on 1.4.0: ~ $ clj Clojure 1.4.0 user= 1e309 Infinity user= On Monday, June 25, 2012 11:09:14 PM UTC-7, Sean Corfield wrote: On Mon, Jun 25, 2012 at 10:30 PM, dennis zhuang killme2...@gmail.com wrote: Added a postfix M to make the number as BigDecimal or N as a

Re: How I can convert this python line to clojure?

2012-06-26 Thread Antonio Recio
@Lars Nilson: You are right, I have take a look at vtkDataSetAttributes.java and there is not any reference to SCALARS. In vtk documentation they have included SCALARS.

Re: How I can convert this python line to clojure?

2012-06-26 Thread Lars Nilsson
On Tue, Jun 26, 2012 at 1:45 PM, Antonio Recio amdx6...@gmail.com wrote: @Lars Nilson: You are right, I have take a look at vtkDataSetAttributes.java and there is not any reference to SCALARS. In vtk documentation they have included SCALARS.

ANN Monger 1.0.0 is released

2012-06-26 Thread Michael Klishin
After a few weeks of post-RC cooling down, Monger 1.0.0 is released to clojars. Changes from 1.0.0-rc2: https://github.com/michaelklishin/monger/blob/master/ChangeLog.md Get started in an instant: http://clojuremongodb.info/articles/getting_started.html Read documentation guides:

Re: How I can convert this python line to clojure?

2012-06-26 Thread Antonio Recio
I would like convert this python line to clojure: vtkCompositeDataSet.NAME() When I read vtkCompositeDataSet.java I find this: private native long NAME_16(); public vtkInformationStringKey NAME() { long temp = NAME_16(); if (temp == 0) return null; return

Overtone 0.7

2012-06-26 Thread Sam Aaron
Hi all, I just thought I'd give you a quick heads up that Overtone 0.7 has been released. It represents around 6 months worth of solid work (~500 commits) and we're really rather pleased with how far we've come. I'm especially pleased to welcome our new committers. Without these people (and

Re: Buggy FP behavior with Clojure 1.3

2012-06-26 Thread Allen Johnson
When I run the repl from leiningen (v2.0.0-preview6) I get the Infinity exception. But when I run the repl straight from the clojure.jar it works without error. java -jar ~/.m2/repository/org/clojure/clojure/1.4.0/clojure-1.4.0.jar AJ On Tue, Jun 26, 2012 at 11:25 AM, Armando Blancas

Re: Overtone 0.7

2012-06-26 Thread Base
Fantastic!!! On Tuesday, June 26, 2012 3:31:28 PM UTC-5, Sam Aaron wrote: Hi all, I just thought I'd give you a quick heads up that Overtone 0.7 has been released. It represents around 6 months worth of solid work (~500 commits) and we're really rather pleased with how far we've come.

Re: Distributed transactions

2012-06-26 Thread Jim Crossley
Well, it took a little longer than I thought it would, but we announced support for XA on Immutant today: http://immutant.org/news/2012/06/26/transactions/ Enjoy! Jim On Saturday, December 31, 2011 7:59:27 PM UTC-5, Jim Crossley wrote: On Dec 31, 7:33 pm, Stuart Halloway

Re: Buggy FP behavior with Clojure 1.3

2012-06-26 Thread Armando Blancas
Tried it on my old XP laptop and got the same result with 32 bits. On Tuesday, June 26, 2012 2:46:07 PM UTC-7, tbc++ wrote: On Tue, Jun 26, 2012 at 11:25 AM, Armando Blancas abm221...@gmail.com wrote: I don't get the exception on 1.4.0: Is this a 64bit vs 32bit issue? Timothy --

Re: Buggy FP behavior with Clojure 1.3

2012-06-26 Thread Sean Corfield
Makes sense. I got the exception on my System76 Netbook which, although technically 64-bit, is mostly running 32-bit software, including Java. On Tue, Jun 26, 2012 at 5:56 PM, Armando Blancas abm221...@gmail.com wrote: Tried it on my old XP laptop and got the same result with 32 bits. On

Re: Buggy FP behavior with Clojure 1.3

2012-06-26 Thread Colin Jones
To address the Infinity exception that Sean AJ are seeing, I think the issue there is that in REPLy / lein repl, we do a `read` of the input, and then `pr-str` the result and send it on to nREPL. So when nREPL goes to re-read the value back in, that's what triggers the compiler error. user=

Re: [ANN] clojure.java.jdbc 0.2.3 available on Maven Central

2012-06-26 Thread Chas Emerick
Random thought: recursive queries are possible in SQL using recursive common table expressions. The PostgreSQL manual has a good introduction to them: http://www.postgresql.org/docs/9.1/static/queries-with.html And another introduction to them, in the particular area of querying hierarchical

Re: Buggy FP behavior with Clojure 1.3

2012-06-26 Thread Armando Blancas
Just to clarify, I meant the same result as I got on OSX with 64 bits, namely Infinity. Both with 1.4.0. I'm not getting the exception. On Tuesday, June 26, 2012 6:06:13 PM UTC-7, Sean Corfield wrote: Makes sense. I got the exception on my System76 Netbook which, although technically 64-bit,