Re: ANN: State of Clojure 2014 Survey - please contribute!!

2014-10-10 Thread Bruce Durling
I also know that Birkbeck College University of London is going to be teaching Clojure this year. On Oct 10, 2014 12:01 AM, "Lee Spector" wrote: > > FWIW I'm another person using Clojure mostly for academic research. And > for computer science education, e.g. I'm currently teaching a Clojure-base

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-10-10 Thread Colin Yates
For clarity, can you confirm the relationship between this and ring and compojure? Am I right in saying the defined routes are ring compatible (using domkm.silk.serve) and therefore silk is a replacement for compojure (albeit compojure has some more middleware utilities)? I understand I can jus

Re: Seeking Large Companies That Employ Clojure

2014-10-10 Thread Colin Yates
+1. Or even worse, this is an opportunity to be put on yet another recruiter’s automated job listing email :). If this is some initiative for knowledge reaping/sharing in terms of Clojure best practices/engineering practices then why not use one of the many transparent mechanism (like this gro

Re: [ANN] rmap - define lazy, recursive maps

2014-10-10 Thread Arnout Roemers
Hi Ben, That's pretty nifty indeed! Maybe a tad memory intensive as it retains the head, but if it were a more complex, CPU intensive calculation in :next, that might be very worthwhile. Good stuff. Cheers, -Arnout P.S. The memory consumption will be a little less when I think of a way to eff

Re: [ANN] Example project to illustrate usage of system library

2014-10-10 Thread Atamert Ölçgen
On Fri, Oct 10, 2014 at 2:06 PM, Daniel Szmulewicz < daniel.szmulew...@gmail.com> wrote: > Yes, because locally you are in the repl already. The repl in production > is brought in explicitly to be able to login/debug remotely into the > application where it’s hosted. > Does that make sense? > Mak

ANN: ClojureScript 0.0-2371

2014-10-10 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2371 Leiningen dependency information: [org.clojure/clojurescript "0.0-2371"] This release includes minor fixes, faster collectio

Re: ANN: ClojureScript 0.0-2371

2014-10-10 Thread Julien Eluard
Hi David, thanks once again for the continuous effort to improve the ClojureScript compiler. Some warnings are now printed when using a specific `include-macros` syntax. I wanted to confirm that this syntax was indeed incorrect. An example is: [secretary.core :as secretary :include-macros true

Re: ANN: ClojureScript 0.0-2371

2014-10-10 Thread Shaun LeBron
(:require [secretary.core :as secretary :include-macros true]) ; desugars to add=> (:require-macros [secretary.core :as secretary]) (:require [secretary.core :as secretary :refer-macros [defroute]) ; desugars to add=> (:require-macros [secretary.core :as secretary :refer [defroute]]) This chang

[ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Xfeep
0.2.6 (2014-10-10) 1. Fix Bug: rewrite handler does not handle write event correctly with thread pool mode or coroutine mode (issue #43) 2. Fix Bug: built-in jvm variable #{pno} doesn't work (issue #44) 3. Fix Bug: rewrite_handler_name does not work without content handler (is

Re: [ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Laurens Van Houtven
Hi xfeep, Thanks for the work! Looks awesome. Unfortunately the github website appears to be broken in FF32 (displays fine in Chrome). cheers lvh On 10 Oct 2014, at 16:03, Xfeep wrote: > > 0.2.6 (2014-10-10) > > • Fix Bug: rewrite handler does not handle write event correctly with

[ANN] Tawny-OWL 1.2

2014-10-10 Thread Phillip Lord
I am pleased to annouce the 1.2.0 release of Tawny-OWL, now available on clojars and github (http://github.com/phillord/tawny-owl). What is Tawny-OWL = Tawny-OWL allows construction of OWL ontologies, in a evaluative, functional and fully programmatic environment. Think of it as

ANN: Pedestal 0.3.1

2014-10-10 Thread Paul deGrandis
I'm extremely happy to announce the release of Pedestal 0.3.1 In this release you'll find many goodies: * NIO support * Immutant added as a platform type * Transit support * Improved SSE capabilities * A new route format * And more Please see the official release notes for all of the detail

Re: [ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Xfeep
Hi ivh Thanks for your notice. Do you mean http://nginx-clojure.github.io/ appears to be broken in FF32 ? I can not reproduce it. Could you please give more information about it by reporting an issue at https://github.com/nginx-clojure/nginx-clojure.github.io/issues/new ? Thanks. Regards.

Re: [ANN] Silk, an isomorphic routing library for Clojure and ClojureScript

2014-10-10 Thread Dylan Butman
I’ve been using silk in conduction with compojure. Most middleware aren’t compojure specific, but I’ve just found it easier to stick with base level compojure routes and then pass uris to silk for pattern matching. This is mostly because there is such a wealth of documentation and examples to

Re: Recursive codec/frames in gloss?

2014-10-10 Thread john walker
What information do you want after this is decoded? Do you want the sum of byte0 ... byten, as well as the actual payload? Do you also want the header-length? On Thursday, October 9, 2014 11:34:59 PM UTC-7, Ken Restivo wrote: > > I'm playing around with Gloss, trying to decode a packet, part of

best way to edit EDN value in cljs

2014-10-10 Thread Dustin Getz
I have an arbitrarily nested EDN value stored in an atom in ClojureScript. What is the best way to make edits to an arbitrary subtree of this value? -- 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: best way to edit EDN value in cljs

2014-10-10 Thread Mike Fikes
Can you use update-in or assoc-in? On Friday, October 10, 2014 2:28:26 PM UTC-4, Dustin Getz wrote: > > I have an arbitrarily nested EDN value stored in an atom in ClojureScript. > > What is the best way to make edits to an arbitrary subtree of this value? > -- You received this message because

Why is my function faster with eval?

2014-10-10 Thread Michael Blume
So I'm reading a bunch of rows from a huge csv file and marshalling those rows into maps using the first row as keys. I wrote the function two ways: https://gist.github.com/MichaelBlume/c67d22df0ff9c225d956 and the version with eval is twice as fast and I'm kind of curious about why. Presumably

Re: Recursive codec/frames in gloss?

2014-10-10 Thread danneu
I took a stab at it for 10 minutes, but I'm way too rusty. Last year I implemented the blockchain wire protocol with gloss that might be helpful: https://gist.github.com/danneu/7397350 Here's the spec: https://en.bitcoin.it/wiki/Protocol_specification The var-int-codec is a somewhat complex ex

Re: [ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Plínio Balduino
Hi Laurens Are you trying to access http or https? If you use HTTPSEverywhere like me, the browser will try to load the https version, that really doesn't work and you'll see only an horizontal strip. I hope it can help you Xfeep: thank you very much. I'm moving my web applications to nginx-cloj

Re: Why is my function faster with eval?

2014-10-10 Thread Laurent PETIT
Hello, Can you show the code you use for benchmarking? Le vendredi 10 octobre 2014, Michael Blume a écrit : > So I'm reading a bunch of rows from a huge csv file and marshalling those > rows into maps using the first row as keys. I wrote the function two ways: > https://gist.github.com/MichaelB

Re: Why is my function faster with eval?

2014-10-10 Thread Sean Corfield
It may be more to do with the difference between `for` and `map`. How do these versions compare in your benchmark: (defn read-to-maps-partial [rows] (let [headers (->> rows first (take-while (complement #{""})) (map keyword

Re: Why is my function faster with eval?

2014-10-10 Thread Ben Wolfson
I believe it's because the `mapper` function is just creating and returning a map literal. The "mapper" function in the evaled version is something like this: user> (def names '[n1 n2 n3 n4]) #'user/names user> (def headers '[h1 h2 h3 h4]) #'user/headers user> `(fn [[~@names]] ~(zipmap headers nam

Re: Why is my function faster with eval?

2014-10-10 Thread Michael Blume
https://github.com/MichaelBlume/eval-speed eval-speed.core=> (time-fn read-to-maps) "Elapsed time: 5551.011069 msecs" nil eval-speed.core=> (time-fn read-to-maps-fn) "Elapsed time: 5587.256991 msecs" nil eval-speed.core=> (time-fn read-to-maps-partial) "Elapsed time: 5606.649172 msecs" nil eval-sp

Re: Why is my function faster with eval?

2014-10-10 Thread Ashton Kemerling
Did you run it enough times to fully warm up the JVM? On Fri, Oct 10, 2014 at 4:21 PM, Michael Blume wrote: > https://github.com/MichaelBlume/eval-speed > eval-speed.core=> (time-fn read-to-maps) > "Elapsed time: 5551.011069 msecs" > nil > eval-speed.core=> (time-fn read-to-maps-fn) > "Elapsed t

Re: Why is my function faster with eval?

2014-10-10 Thread Sean Corfield
Ah, interesting... I hadn't considered it was running the zipmap at compile-time so it only runs it once as opposed to running it for each row! Sean On Oct 10, 2014, at 1:06 PM, Ben Wolfson wrote: > I believe it's because the `mapper` function is just creating and returning a > map literal. Th

Re: Why is my function faster with eval?

2014-10-10 Thread Ben Wolfson
it's not quite at compile-time (since it's a dynamic call to eval, after all, and "names" and "headers" aren't known at compile time), but it is calling it eval-time, for lack of a better phrase. On Fri, Oct 10, 2014 at 1:35 PM, Sean Corfield wrote: > Ah, interesting... I hadn't considered it wa

Re: Why is my function faster with eval?

2014-10-10 Thread Sean Corfield
On Oct 10, 2014, at 1:46 PM, Ben Wolfson wrote: > it's not quite at compile-time (since it's a dynamic call to eval, after all, > and "names" and "headers" aren't known at compile time), but it is calling it > eval-time, for lack of a better phrase. Yes, I meant when it compiles the code that e

Re: ANN: State of Clojure 2014 Survey - please contribute!!

2014-10-10 Thread Mars0i
I'd be interested in a site that lists examples of academic projects in Clojure. (I know of a few Clojure projects in areas of interest to me.) But only a little bit interested--not enough for me to create such a site. -- You received this message because you are subscribed to the Google Grou

Re: {ANN} defun: A beautiful macro to define clojure functions with pattern match.

2014-10-10 Thread Mars0i
I think it *is* a beautiful macro. On Sep 14, 2014, at 7:45 AM, adrian...@mail.yu.edu wrote: > > Friendly advice: when you describe anything you create with adjectives > like beautiful, it comes off as unnecessarily arrogant to native English > speakers. > > Adrian > > On Sunday, September 14,

Re: Schrodinger's cat in clojure?

2014-10-10 Thread Mars0i
On Saturday, September 13, 2014 9:01:53 AM UTC-5, Lee wrote: > > So now one of my first steps when I'm faced with a confusing bug is to > stamp out all of the laziness except where I'm really doing things lazily > on purpose, for a good reason. I've also come to think that the > pervasiveness

Keyword comparison performance

2014-10-10 Thread Jony Hudson
Hi All, I've been optimising a piece of code lately, and have come to wonder about the performance of keyword comparison. Specifically, I'm not sure whether the performance I'm seeing is what is expected. The data structures page on clojure.org [1] indicates that keywords "provide very fast eq

Re: ANN: State of Clojure 2014 Survey - please contribute!!

2014-10-10 Thread Jony Hudson
If this is the unofficial survey post of academics using Clojure then I'd better add myself to the list :-) @Bruce do you know what course they're going to be teaching Clojure on at Birkbeck? Jony On Friday, 10 October 2014 08:08:28 UTC+1, Bruce Durling wrote: > > I also know that Birkbeck C

Re: Schrodinger's cat in clojure?

2014-10-10 Thread Mars0i
On Friday, October 10, 2014 5:20:30 PM UTC-5, Mars0i wrote: > > Maybe an ideal world would be one in which there was a global setting to > turn laziness on and off. When you want it, have it, and know your risks. > After looking at the source for some of the lazy functions, I've come to > s

Re: Why is my function faster with eval?

2014-10-10 Thread Jason Wolfe
Zipmap doesn't use transients, so calling it at runtime will be significantly slower than constructing a literal map. http://dev.clojure.org/jira/browse/CLJ-1005 On Friday, October 10, 2014 11:42:14 AM UTC-7, Michael Blume wrote: > > So I'm reading a bunch of rows from a huge csv file and mars

Re: Keyword comparison performance

2014-10-10 Thread Stephen Gilardi
> I've been optimising a piece of code lately, and have come to wonder about > the performance of keyword comparison. Specifically, I'm not sure whether the > performance I'm seeing is what is expected. The data structures page on > clojure.org [1] indicates that keywords "provide very fast eq

Re: [ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Xfeep
Hi Balduino, Thank you. This site use CDN http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.0.min.js for jquery , so for security the browser won't load these javascript source when we access it by HTTPS. Regards. Xfeep On Saturday, October 11, 2014 3:11:52 AM UTC+8, Plinio Balduino wrote:

Re: [ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Yuexiang Zhang
We fixed this problem now. Both https://nginx-clojure.github.io/ and http://nginx-clojure.github.io/ can work now. Regards. Xfeep On Sat, Oct 11, 2014 at 9:49 AM, Xfeep wrote: > Hi Balduino, > > Thank you. > > This site use CDN http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.0.min. > js for