Re: 1.5 alpha 5 - performance issues relating to hashing and equals

2013-01-25 Thread Christophe Grand
Hi Mark, The hasheq chaching patch got applied between beta1 and beta2 so it's not in alpha5. The answer to your problem is to compute hahses incrementally. There's a very old ticket for that http://dev.clojure.org/jira/browse/CLJ-15at the time it was a bullet point on one of Rich's todo list on A

Re: Natively Compiled Clojure

2013-01-25 Thread John Gabriele
On Friday, January 25, 2013 11:28:32 AM UTC-5, tbc++ wrote: > > The important question to ask yourself (and I'll cover this in my talk), > is why do you want native Clojure? > > * easy direct access to C libs * fast startup time * minimal footprint Well, that's what would attract *me* to a

Re: Looking for testimonials and feedback on ClojureWerkz projects

2013-01-25 Thread Jozef Wagner
Guys at Nokia Entertainment use Monger and Elastisch. http://skillsmatter.com/podcast/home/clojure-at-nokia-entertainment/te-6422 On Saturday, January 26, 2013 2:55:01 AM UTC+1, Michael Klishin wrote: > > We are looking for testimonials and general feedback about > ClojureWerkz (http://clojurewer

1.5 alpha 5 - performance issues relating to hashing and equals

2013-01-25 Thread Mark Engelberg
I'm working on a program that involves deeply nested data structures. I'm running into numerous problems working with such structures in Clojure. It appears that many of Clojure's core functions involving hashing and equality produce stack overflows with deeply nested data structures, making it n

Re: Looking for testimonials and feedback on ClojureWerkz projects

2013-01-25 Thread Devin Walters
Without a doubt the best documented effort in the Clojure community to-date. Specifically, my experience with elastisch. Thanks for your work. It's a huge step in the right direction. '(Devin Walters) On Jan 25, 2013, at 7:55 PM, Michael Klishin wrote: > We are looking for testimonials and g

Re: special case in binding vector syntax for function definitions?

2013-01-25 Thread Ben Wolfson
On Fri, Jan 25, 2013 at 5:38 PM, Alan Malloy wrote: > In (let [[x :as y] [1 2]]), there is already an object to make y "point to": > the vector [1 2]. in ((fn [x :as y]) 1 2), there is no such object. There's no such object for y to be the tail of in ((fn [x & y] y) 1 2 3), either, but the remain

Re: special case in binding vector syntax for function definitions?

2013-01-25 Thread Alan Malloy
In (let [[x :as y] [1 2]]), there is already an object to make y "point to": the vector [1 2]. in ((fn [x :as y]) 1 2), there is no such object. On Friday, January 25, 2013 2:18:39 PM UTC-8, Ben wrote: > > Both of these work: > > user> (let [[x & y] [1 2]] [x y]) > [1 (2)] > user> (let [[x :as

Re: Building a jdbc WHERE IN clause

2013-01-25 Thread Sean Corfield
On Fri, Jan 25, 2013 at 2:27 PM, Jonathon McKitrick wrote: > (defn get-by-ids-test > [ids] > (let [qs (string/join "," (repeat (count ids) "?")) > sql (str "select * from survey where survey_id in (" qs ")")] > (println "SQL " sql) > (println "ids" ids) > (sql/with-connecti

Re: Java annotations on functions, in conjunction with gen-class?

2013-01-25 Thread Ryan Cole
Yea, I've seen that. It does the plugins a little differently. I did not see any examples of function annotations in his Clojure code, though. Ryan On Friday, January 25, 2013 5:08:49 PM UTC-6, AtKaaZ wrote: > > Hi. Check this out: https://github.com/CmdrDats/clj-minecraft > > > On Fri, Jan 25,

Re: Java annotations on functions, in conjunction with gen-class?

2013-01-25 Thread AtKaaZ
Hi. Check this out: https://github.com/CmdrDats/clj-minecraft On Fri, Jan 25, 2013 at 11:14 PM, Ryan Cole wrote: > Hi all, beginner here, > > I'm trying to write a Minecraft plugin in Clojure, and use AOT so that the > Minecraft server can load it right up. I've got this much going, and all as

Java annotations on functions, in conjunction with gen-class?

2013-01-25 Thread Ryan Cole
Hi all, beginner here, I'm trying to write a Minecraft plugin in Clojure, and use AOT so that the Minecraft server can load it right up. I've got this much going, and all as well. The server expect some of my functions in a class that I'm extending to use an appropriate annotation on the functi

[ANN] Liverpool Clojure talk on LiveStream: Deploying apps on OpenShift

2013-01-25 Thread Simon Holgate
I wouldn't normally announce this on the main list but it may be of interest to some since I haven't seen much about Clojure on OpenShift. We're having short talk from Steven Citron-Pousty (@TheSteve0), a Developer Advocate for RedHat about deploying Clojure apps

Building a jdbc WHERE IN clause

2013-01-25 Thread Jonathon McKitrick
I saw a post some time ago answering this question, and here are three solutions. I thought the first would be the most elegant. But for some reason, the first does not work, and returns an empty set. I'm trying to understand what's wrong with it. (defn get-by-ids-test [ids] (let [qs (st

special case in binding vector syntax for function definitions?

2013-01-25 Thread Ben Wolfson
Both of these work: user> (let [[x & y] [1 2]] [x y]) [1 (2)] user> (let [[x :as y] [1 2]] [x y]) [1 [1 2]] And this works: user> ((fn [x & y] [x y]) 1 2) [1 (2)] But this gives an exception (unsupported binding form): user> ((fn [x :as y] [x y]) 1 2) ; Evaluation aborted. I would have expect

Re: fressian

2013-01-25 Thread Brent Millare
Ok, well I bit the bullet and figured out how to add vectors myself. See the results here: https://github.com/bmillare/dj.fressian On Monday, January 21, 2013 6:26:48 PM UTC-5, Brent Millare wrote: > > Has anyone checked out fressian, the binary serialization/deserialization > used by datomic?

Re: what does "is" expect in tests?

2013-01-25 Thread Sean Corfield
I tested code very similar to yours and the only way I could get it to fail like that was if first-question was nil. Change (println (apply str first-question)) to (println "first-question" first-question) to see what value it really has. I think you'll see nil there... Sean On Fri, Jan 25, 2013

what does "is" expect in tests?

2013-01-25 Thread larry google groups
I thought this test would assure me that my test data contains at least one question: (deftest is-there-at-least-one-question (testing "We want to see if there is at least one question in memory.]" (let [first-question (get-in @um/interactions [:questions])] (println (apply str first

Re: CollReduce and IKVReduce for nil?

2013-01-25 Thread Andy Fingerhut
CLJ-1098 fix committed to Clojure master today as part of 1.5.0-RC3: http://build.clojure.org/job/clojure/changes Andy On Jan 14, 2013, at 4:24 AM, Wolodja Wentland wrote: > On Sat, Jan 12, 2013 at 08:15 -0800, Andy Fingerhut wrote: >> The CLJ-1098 ticket was categorized as a minor enhancem

AW: When using gradle with the clojuresque plugin I'm getting a"Plugin with id 'clojure' not found." error

2013-01-25 Thread Meikel Brandmeyer
Hi, quick guess: Pull buildscript out of the subproject. Meikel Durch MOTOBLUR™ verbunden -Ursprüngliche Nachricht- Von: john An: clojure@googlegroups.com Gesendet: Fr, 25 Jan 2013, 14:20:14 MEZ Betreff: When using gradle with the clojuresque plugin I'm getting a"Plugin with id 'cloju

Re: Clojure runtime fails to initialize in some contexts

2013-01-25 Thread AtKaaZ
I've also seen a case of that(context classloader changing so that calling clojure will work) here [1], if anyone's into Minecraft bukkit server tests this would be somewhat easy to understand if you can test it: [1] - https://github.com/CmdrDats/clj-minecraft/blob/master/javasrc/cljminecraft/Cloj

Re: Help with Clojurescript + DOM Manipulation

2013-01-25 Thread Jordan Berg
You use this-as: (this-as thisname (whatever thisname)) where you name this what you want with thisname Cheers On Fri, Jan 25, 2013 at 1:46 PM, Ari wrote: > Additionally, ".each()" is another option -- > > (defn listen-to-links > [links] > (.each links > (fn [idx, el] >

Re: Help with Clojurescript + DOM Manipulation

2013-01-25 Thread Ari
Additionally, ".each()" is another option -- (defn listen-to-links [links] (.each links (fn [idx, el] (.log js/console el However, how does one reference "this" within the anonymous (or defined) function? On Wednesday, January 23, 2013 11:45:13 PM UTC-5, Evan Mezeske

Re: Installing Clojure on Windows 7

2013-01-25 Thread Phil Hagelberg
sampson.jo...@googlemail.com writes: > I have tried clojure-mode, creating .emacs.d in Emacs-24.2 - it complained > that there is no emacs_24.2/.emacs.d (note the underscore) and proceeded to > create one. However, the material I pasted from blogs had fatal errors in > it. Most of what you re

Re: Clojure on heroku throws exception today

2013-01-25 Thread Phil Hagelberg
Jonathon McKitrick writes: > I just tried again, with and without trampoline, and now I'm getting this: Sorry about this; there was a bug that was affected by the networking limitations on dynos. I've pushed out a fix now. -Phil -- -- You received this message because you are subscribed to t

Re: Call for volunteers to help moderate a ClojureScript Google group

2013-01-25 Thread Wes Freeman
Thanks for educating me about tags--didn't know it would work like that. On Fri, Jan 25, 2013 at 8:40 AM, Michael Wood wrote: > On 25 January 2013 13:47, Wes Freeman wrote: > >> I don't tend to filter emails, but just like to go through my inbox and >> judge based on topic and subject whether I

Re: Clojure web server benchmarks

2013-01-25 Thread Feng Shen
Hey, thanks for point out latency, I haven't look at them deeply. Here is how http-kit compare to Nginx when concurrency is 96: Server Software:http-kit Server Hostname:127.0.0.1 Server Port:8087 Document Path: / Document Length:1163 bytes Concurr

Re: Natively Compiled Clojure

2013-01-25 Thread Timothy Baldridge
The important question to ask yourself (and I'll cover this in my talk), is why do you want native Clojure? A native implementation of Clojure will fail to deliver on several fronts: Interop with systems - Java has one of the biggest ecosystems on the planet Performance - The JVM JIT and GC are

Re: Natively Compiled Clojure

2013-01-25 Thread Tony Pitluga
There are a couple projects that might be worth looking at although it seems both have not been updated in a few months. ClojureC: https://github.com/schani/clojurec Clojure-Scheme: https://github.com/takeoutweight/clojure-scheme On Fri, Jan 25, 2013 at 10:35 AM, Nahuel Greco wrote: > Check th

Re: [ANN] Finger trees in Clojurescript

2013-01-25 Thread Jozef Wagner
New version of finger trees is released at https://github.com/wagjo/data.cljs . It is much faster and uses transients internally, where appropriate. Moreover, this release provides functions for all kinds of data structures. Notable functionalities include: - fast eager variants of map and

Re: Natively Compiled Clojure

2013-01-25 Thread Nahuel Greco
Check the clojure-py2 project, they plan to use LLVM to generate native modules (as C compiled) for Python. When that objective is reached probably you will have almost all the machinery to compile python-less native binaries: http://lanyrd.com/2013/clojurewest/sccgmm/ Saludos, Nahuel Greco. O

Re: Natively Compiled Clojure

2013-01-25 Thread Marko Kocić
On Friday, January 25, 2013 6:12:07 AM UTC+1, Mikera wrote: > > A natively compiled Clojure would be very very interesting (perhaps > targeting LLVM?) > > However it would also be very hard to implement. Clojure depends on a lot > of features provided by the JVM (JIT compilation, interop with J

Re: Clojure runtime fails to initialize in some contexts

2013-01-25 Thread Francesco Bellomi
I've solved my specific instance of this problem, I post here the details in the hope that the solution has a more general validity. It seems that clojure.lang.RT gets confused when it is initialized (ie. is called) and the classloader used to load the class itself is different from the curren

Re: Call for volunteers to help moderate a ClojureScript Google group

2013-01-25 Thread Michael Wood
On 25 January 2013 13:47, Wes Freeman wrote: > I don't tend to filter emails, but just like to go through my inbox and > judge based on topic and subject whether I'd like to take a closer look > before archiving. I'm in too many groups to want to go through filters one > at a time, and currently

When using gradle with the clojuresque plugin I'm getting a"Plugin with id 'clojure' not found." error

2013-01-25 Thread john
Hi, this is my first day with gradle. I'm running : Groovy: 1.8.6 Ant: Apache Ant(TM) version 1.8.4 comiled on May 22 2012 Ivy: 2.2.0 JVM: 1.7.0_11 (Oracle Corporation 23.6-b04) OS: Mac OS X 10.7.5 x86_6 I have the following project layout project/server project/client project/domain project/s

Re: Clojure web server benchmarks

2013-01-25 Thread Shantanu Kumar
On Jan 25, 4:24 pm, Peter Taoussanis wrote: > Hi Dmitry, > > Raw bench results are provided in the `results` > folder:https://github.com/ptaoussanis/clojure-web-server-benchmarks/blob/mas... > > There you'll find a breakdown of the times to connect, process, and wait. > Also the cumulative % of

Re: Clojure web server benchmarks

2013-01-25 Thread Bob Hutchison
On 2013-01-25, at 6:24 AM, Peter Taoussanis wrote: > I'd consider adding a graph if folks think these numbers are sufficiently > interesting? > That would be great! This is very important information for me. And, unless things have improved markedly over that last year or so (I hope so), I t

Re: Clojure on heroku throws exception today

2013-01-25 Thread Jonathon McKitrick
And that wouldn't make sense on Heroku, would it? On Friday, January 25, 2013 12:08:46 AM UTC-5, AtKaaZ wrote: > > looks like you denied outgoing for java.exe in your firewall > the java.exe that's in your path(or in JAVA_HOME if set) > > in my case: > ie. cmd.exe > C:\Users\user>java -version > j

Re: Call for volunteers to help moderate a ClojureScript Google group

2013-01-25 Thread Wes Freeman
I don't tend to filter emails, but just like to go through my inbox and judge based on topic and subject whether I'd like to take a closer look before archiving. I'm in too many groups to want to go through filters one at a time, and currently there a handful that don't have subject markers, so unl

Re: Clojure web server benchmarks

2013-01-25 Thread Peter Taoussanis
Hi Dmitry, Raw bench results are provided in the `results` folder: https://github.com/ptaoussanis/clojure-web-server-benchmarks/blob/master/results/20130116-01-25 There you'll find a breakdown of the times to connect, process, and wait. Also the cumulative % of requests served relative to max

Re: Call for volunteers to help moderate a ClojureScript Google group

2013-01-25 Thread Shantanu Kumar
On Jan 25, 1:55 pm, Samrat Man Singh wrote: > I'd suggest considering Librelist for the mailing list too. I'm subscribed > to a few mailing lists powered by it and never seen a spam problem. I would vote against such a thing, unless there is a way to (1) read the messages in RSS reader, and (2)

Re: Clojure web server benchmarks

2013-01-25 Thread Dmitry Groshev
It would be *really* nice to see latencies as well. Some webservers trade latency to throughput, and there is no point in throughput if your service is hardly usable due to 100ms+ responses. On Wednesday, January 16, 2013 10:56:23 AM UTC+4, Peter Taoussanis wrote: > > > This is very interesting.

Re: Call for volunteers to help moderate a ClojureScript Google group

2013-01-25 Thread Samrat Man Singh
I'd suggest considering Librelist for the mailing list too. I'm subscribed to a few mailing lists powered by it and never seen a spam problem. Leiningen is using it too- http://librelist.com/browser//leiningen/2012/10/25/moving-to-librelist/#1c0e8108daa50a6925b21fe69c8b7f13 Anyways, if you sti

Re: Installing Clojure on Windows 7

2013-01-25 Thread keeds
As people already have said Emacs + Leiningen is readily setup on Windows 7. emacs-live makes clojure coding a breeze with emacs 24. It's all the other frustrations that make it a pain. Command Line, git, grep etc My solution: Ubuntu 12.04 on VirtualBox VM with Emacs 24. Quick, easy and soo

Re: Is there any medium scale opensource project implemented using clojure-clr?

2013-01-25 Thread Shantanu Kumar
I came across Clj-MML, which is a ClojureCLR library: https://github.com/timgluz/clj-mml and its starter: https://github.com/timgluz/starter-cljmml I have also noticed few ClojureCLR ports of regular Clojure-contrib libraries. Just FYI, there is a ClojureCLR Google+ community: https://plus.goog