Re: Why does unquote clone values?

2014-07-02 Thread Atamert Ölçgen
Hi Pascal, On Wed, Jul 2, 2014 at 10:19 PM, Pascal Germroth wrote: > I tried replacing a closure with a dynamically built and evaluated > metafunction but discovered that it was actually slower. > If evaluating code during run is slower than AOT compiling it, it wouldn't surprise me. > I gu

Re: guide on how to plug eastwood into clojure.test unittests?

2014-07-02 Thread Atamert Ölçgen
On Wed, Jul 2, 2014 at 3:01 PM, Andy Fingerhut wrote: > Hopefully someone else can describe their preferred method for adding a > command line invocation like 'lein eastwood' to their checkin/CI/release > process. > @Chris Have you tried adding `lein eastwood` to your build process? If you did,

Re: Why does unquote clone values?

2014-07-02 Thread Pascal Germroth
It gets even weirder. I tried this hoping it would create a closure like f1 does: (defn f4 [x] (eval `(let [[x#] ~@[[x]]] (fn [y#] (= x# y#) And indeed using no.disassemble in my test cases f1 and f4 always create the same bytecode: a clojure.la

[ANN] Dynohub: DynamoDB client + transaction layer

2014-07-02 Thread jongwon.choi
Dynohub, a Clojure DynamoDB client with transaction layer https://github.com/ozjongwon/dynohub Dynohub is a transperent DynamoDB client with a port of transaction library(https://github.com/awslabs/dynamodb-transactions) There are three layers of abstraction: * Dynohub - a plain client laye

Why does unquote clone values?

2014-07-02 Thread Pascal Germroth
Hi, I tried replacing a closure with a dynamically built and evaluated metafunction but discovered that it was actually slower. Here's a minimal example: (defn f1 [x](fn [y ] (=x y ))) (defn f2 [x] (eval `(fn [y#] (= ~x y# (defn f3 [x] (eval `(fn [y#] (= ~@[x] y# (use 'c

reloading enlive templates

2014-07-02 Thread Sven Richter
Hi, I am trying to reload my enlive templates with a watcher, how it was suggested in this issue: https://github.com/cgrand/enlive/issues/6 I am calling this function of start of my application: (watcher/watcher ["resources/"] (watcher/rate 50) ; poll every 50ms

Deploying to Clojars no longer works

2014-07-02 Thread Jacob Goodson
I have been deploying the same project to clojars for quite a while now(5 months?); for some reason it decided it no longer wanted to work. After giving my pass phrase I get "peer not authenticated". I have not changed computers nor do I have a new internet connection. Does anyone know what

Re: auto-reloading tests with diffs

2014-07-02 Thread Conrad
FYI, I installed difftest via a plugin entry in my ~/.lein/profiles.clj. This requires me to call "lein difftest", since "lein test" still shows the un-diffed test results. I suspect there's some extra step I need to take to hook difftest into the default error reporting to make it work with "le

auto-reloading tests with diffs

2014-07-02 Thread Conrad
Hi, I'm doing some tests that require diff reporting (ala "lein difftest") but want them to autoreload (ala "lein prism"). Does anyone know if there's a way to make these libraries function together? Is there some other approach/library I should be using to get both diff reporting and autoreloa

Re: Code health metrics

2014-07-02 Thread ian.tegebo
How large is your Clojure codebase? On Wednesday, July 2, 2014 6:33:42 AM UTC-7, Chris Ford wrote: > > A little more context on what I'm considering. > > I work in a team of about 10 developers on a Clojure project. In the > larger enterprise there are mainly Java applications. > > I'm intereste

Re: Broad question about best-practices for structs

2014-07-02 Thread Timothy Baldridge
defstruct is deprecated. You should use defrecord or deftype instead. You can define operations on these via defprotocol. And you can even type hint the members: (defprotocol IScale (scale [this ^double amount])) (deftype Point [^double x ^double y] IScale (scale [this amount] (Point.

Broad question about best-practices for structs

2014-07-02 Thread SharpCoder
As an exercise, I'm trying to port a library that I originally wrote in C#. It's actually a Neural Network, so my imperative design was a pretty straightforward tree-like structure of nodes that could manipulate state. During my port to Clojure, I've been writing functions that take multiple ar

Re: guide on how to plug eastwood into clojure.test unittests?

2014-07-02 Thread Andy Fingerhut
Eastwood is a reasonable tool to consider for lint checking your files, IMNSHO. It is currently lacking a feature that would make it more useful as an automated step in a build/release process, which is the ability to disable particular warnings on very small sections of code. If such a feature i

guide on how to plug eastwood into clojure.test unittests?

2014-07-02 Thread Chris Morgan
Does anyone have a guide on how to plug https://github.com/jonase/eastwood into my clojure.test unittests? Or even if eastwood is the correct tool to be using for lint checking my files? Thanks -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Code health metrics

2014-07-02 Thread Chris Ford
A little more context on what I'm considering. I work in a team of about 10 developers on a Clojure project. In the larger enterprise there are mainly Java applications. I'm interested in a way to visualise which parts of the codebase are getting sticky and might require intervention. As well as

Re: ANN: ClojureScript 0.0-2261

2014-07-02 Thread David Nolen
Some operations are slightly faster. Some operations are slightly slower but should not be noticeable. If you experience otherwise, detailed reports are welcome. David On Wed, Jul 2, 2014 at 8:16 AM, Robin Heggelund Hansen wrote: > Does murmur3 hashing effect performance? > > kl. 04:42:39 UTC+2

Re: ANN: ClojureScript 0.0-2261

2014-07-02 Thread Robin Heggelund Hansen
Does murmur3 hashing effect performance? kl. 04:42:39 UTC+2 onsdag 2. juli 2014 skrev David Nolen følgende: > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code: https://github.com/clojure/clojurescript > > New release version: 0.0-2261 > > Leini

Re: Code health metrics

2014-07-02 Thread Paul deGrandis
Hi Chris, I have long collected metrics on various Clojure code bases, and have had grand plans for automating the process with an open source tool. The metrics you look at depend heavily on what you care about - the most telling metrics I've used recently are Assertion Density [1], an adaption

Re: Best tools for profiling Clojure programs?

2014-07-02 Thread Niels van Klaveren
Oops, forgot to state Java Mission Control flight recording is for Oracle JVM only. On Tuesday, July 1, 2014 1:10:42 PM UTC+2, Niels van Klaveren wrote: > > A new option for test purposes is included in JDK 1.7.0_40 and up and is > called Java Mission Control. It is located in the JDK as /bin/jm