ANN Neocons, a feature rich Neo4j Server REST API client for Clojure

2012-06-03 Thread Michael Klishin
Neocons [1] is a feature rich Clojure client for the Neo4J Server REST API. While it is not a young project, with the recent RC1 release it's time to properly announce it here. What can you do with Neocons? * Use Neo4J Server the same way you'd use MySQL, without open sourcing your app or putt

Re: When arithmetic on a computer bite back

2012-06-03 Thread Tassilo Horn
Mark Engelberg writes: > 1.4411518807585587E17 ends in 0, Oh, my counting was bad yesterday. > and therefore when you divide by 2, it should end in 5. It's not a > power of 2, it is a merely an inexact approximation of one. Yes. Bye, Tassilo -- You received this message because you are sub

Re: Learning clojure: debugging?

2012-06-03 Thread Vinzent
Actually, it's kinda the same (Fogus and me decided to merge trammel and clojure-contracts into one library) воскресенье, 3 июня 2012 г., 6:31:50 UTC+6 пользователь Sean Corfield написал: > > On Sat, Jun 2, 2012 at 5:22 PM, Vinzent wrote: > > BTW, you may want to use clojure-contracts > > (ht

Re: Clojurians in Austria

2012-06-03 Thread Nuno Marques
Cool! join the group created by Jozef On May 30, 2012, at 10:12 AM, gas wrote: > hi, > > i'm located in Vienna too and very much interested in meeting austrian > clojurians as well. > > regards, > gerhard > > Am Dienstag, 29. Mai 2012 19:20:02 UTC+2 schrieb bsmith.occs: > I too am in Vienna.

Re: [ANN] Leiningen 2.0.0-preview6 released

2012-06-03 Thread nick rothwell
On Sunday, June 3, 2012 5:22:51 AM UTC+1, Phil Hagelberg wrote: > > I hope this addresses the issues people were seeing with preview5. > It does address the issue that my preview4 wouldn't upgrade; I've now just successfully bumped from preview4 to preview6. Thanks! -- You received this mess

Re: clojure.java.jdbc byte[] result type question

2012-06-03 Thread rossputin
Hey. Yes, thanks for your help, it was a String as a byte array. On Jun 2, 10:20 pm, Sean Corfield wrote: > On Fri, Jun 1, 2012 at 5:26 AM, rossputin wrote: > > I've got a clojure.java.jdbc result coming back as a byte[].  Its from > > a GROUP_CONCAT on an int(10) field. > > > In the mysql clie

Re: Using Clojure internal libraries in another project

2012-06-03 Thread Qihui Sun
Aha,similar with my previous topic "Can we use Clojure like a general library in Java?" I'll trace this. 2012/5/30 ezy...@streambase.com > Hello all, > > We're interested in using some of Clojure's internal libraries (in > particular, it's STM implementation), in the runtime for another > progra

Re: Can we use Clojure like a general library in Java?

2012-06-03 Thread Karl Krukow
Regarding those... Some time ago I created a project containing only the persistent data structures for use with Java et al. https://github.com/krukow/clj-ds It is the data structures only so no bootstrap penalty. There are also Java'ish "improvements" like basic Generics and improved perfor

Re: lazy-cat infinite realization on empty seq

2012-06-03 Thread Stephen Compall
On May 31, 2012, at 9:14 AM, michaelr524 wrote: > Why the following triggers infinite realization of the infinite lazy > seq You've catted together an infinite seq of empty seqs, and forcing a lazy seq doesn't stop until either an element or known emptiness is found, whereas you provide neithe

Re: [ANN] Leiningen 2.0.0-preview6 released

2012-06-03 Thread Tom Maynard
On Saturday, June 2, 2012 11:22:51 PM UTC-5, Phil Hagelberg wrote: > > On Thu, May 31, 2012 at 10:11 PM, Phil Hagelberg wrote: > > I'm happy to announce the release of Leiningen 2.0.0-preview5. > > I've just pushed out 2.0.0-preview6; sorry for the inconvenience. > > Perhaps this is a good ti

Re: Using Clojure internal libraries in another project

2012-06-03 Thread Andy Fingerhut
License-wise, the Clojure implementation code is copyright by Rich Hickey, and distributed under the Eclipse Public License. Thus your code would need to be distributable with a license compatible with this license, or perhaps could be completely closed source if your code was not distributed (

Re: Learning clojure: debugging?

2012-06-03 Thread Sean Corfield
On Sun, Jun 3, 2012 at 1:55 AM, Vinzent wrote: > Actually, it's kinda the same (Fogus and me decided to merge trammel and > clojure-contracts into one library) Yeah, I figured. I just wanted to point people to the newly created contrib library since that's where (I assume) future development will

How to use the :use form in clojurescript

2012-06-03 Thread Murtaza Husain
Hi, I am using enfocus where the macros can be used in this manner (from enfocus's site)- (ns my.namespace (:require [enfocus.core :as ef]) (:require-macros [enfocus.macros :as em])) (defn start [] (em/at js/document [“body”] (em/content “Hello world!”)) However I would like to

Re: Learning clojure: debugging?

2012-06-03 Thread Sean Neilan
Does Clojurescript have a trace function? On Sat, Jun 2, 2012 at 5:26 PM, Softaddicts wrote: > clojure.tools.trace beats println by far (biased advice, I maintain > it:))) > It's also easier to segregate between debug and normal output in the code. > > You can enable/disable fn tracing dynami

Re: Learning clojure: debugging?

2012-06-03 Thread Sean Neilan
Nvm. Not yet. I'm reluctant to dive into clojurescript because the debugger and trace functions aren't ready yet. I suppose if I make test cases for everything and stick to tiny functions, I should be alright. Anyway, if Chris Granger uses it, it's probably pretty good. HERE GOES! On Sun, Jun

Re: Learning clojure: debugging?

2012-06-03 Thread Softaddicts
Not yet, I'll put this on my agenda. I need some research time not being familiar yet with how it would translate in ClojureScript and if it's worthwhile to implement it. Comments from any one using ClojureScript ? Luc > Does Clojurescript have a trace function? > > On Sat, Jun 2, 2012 at 5:26

(#({:a %}) :b)

2012-06-03 Thread Steven Obua
The expression (#({:a %}) :b) should evaluate to {:a :b}, but raises an exception instead: Wrong number of args (0) passed to: PersistentArrayMap This is a pretty irritating bug and makes the #% form essentially unusable for me, because I cannot rely on it but have to always second guess if it

Re: (#({:a %}) :b)

2012-06-03 Thread Bill Caputo
On Jun 3, 2012, at 8:53 PM, Steven Obua wrote: > The expression > > (#({:a %}) :b) either: (#(hash-map :a %) :b) ((fn [x] {:a x}) :b) will work instead. Someone with more knowledge than me can probably explain better, but my understanding is that the the reader macro shorthand for anonymo

Re: How to use the :use form in clojurescript

2012-06-03 Thread Michał Marczyk
(:use-macros [enfocus.macros :only [at content]]) Note :use(-macros) is only supported with :only in ClojureScript. Cheers, Michał On 3 June 2012 21:20, Murtaza Husain wrote: > Hi, > > I am using enfocus where the macros can be used in this manner (from > enfocus's site)- > > (ns my.namespace

Re: (#({:a %}) :b)

2012-06-03 Thread Michael Gardner
On Jun 3, 2012, at 8:53 PM, Steven Obua wrote: > The expression > > (#({:a %}) :b) > > should evaluate to {:a :b}, but raises an exception instead: > > Wrong number of args (0) passed to: PersistentArrayMap > > This is a pretty irritating bug and makes the #% form essentially unusable > for m

Re: (#({:a %}) :b)

2012-06-03 Thread James Reeves
On 4 June 2012 03:00, Bill Caputo wrote: > Someone with more knowledge than me can probably explain better, but my > understanding is that the the reader macro shorthand for anonymous functions > and the map literal syntax can't both be used together (i.e. it's not a bug, > but a reader limitation

Re: (#({:a %}) :b)

2012-06-03 Thread Bill Caputo
On Jun 3, 2012, at 9:35 PM, James Reeves wrote: > On 4 June 2012 03:00, Bill Caputo wrote: >> Someone with more knowledge than me can probably explain better, but my >> understanding is that the the reader macro shorthand for anonymous functions >> and the map literal syntax can't both be used t

Re: (#({:a %}) :b)

2012-06-03 Thread Steven Obua
Ah, I see. Thanks for the clarifications, at least now I understand why #(...) does what it does. On Monday, June 4, 2012 2:53:09 AM UTC+1, Steven Obua wrote: > > The expression > > (#({:a %}) :b) > > should evaluate to {:a :b}, but raises an exception instead: > > Wrong number of args (0) passed

Re: How to use the :use form in clojurescript

2012-06-03 Thread Murtaza Husain
Michal thanks for the help. This is the error that lein-cljsbuild gives me when using :only - java.lang.AssertionError: Assert failed: Only (:require [lib.ns :as alias]*) form of :require / :require-macros is supported (and expr (= :as kw)) On Monday, June 4, 2012 7:46:40 AM UTC+5:30, Michał

Re: How to use the :use form in clojurescript

2012-06-03 Thread Michał Marczyk
Then I expect you typed (:require-macros [lib.ns :only [...]]) You need to use (:use-macros [lib.ns :only [...]]) instead. On 4 June 2012 05:32, Murtaza Husain wrote: > > Michal thanks for the help. > > This is the error that lein-cljsbuild gives me when using :only - > > java.lang.Asser

Re: How to use the :use form in clojurescript

2012-06-03 Thread Murtaza Husain
Thanks for catching that Michal :) On Monday, June 4, 2012 9:37:35 AM UTC+5:30, Michał Marczyk wrote: > > Then I expect you typed > > (:require-macros [lib.ns :only [...]]) > > You need to use > > (:use-macros [lib.ns :only [...]]) > > instead. > > > On 4 June 2012 05:32, Murtaza Husain