[ANN] stateful-check 0.1.0 - test stateful systems with test.check

2014-11-27 Thread Carlo Zancanaro
I've been working on a library for a little bit which I'm calling stateful-check (at least for now). It's mainly my attempt to work towards the sort of stateful testing that I first saw in John Hughes' talk "Testing the Hard Stuff and Staying Sane"[1]. https://github.com/czan/stateful-check ht

Re: Core.async unordered pipeline-blocking ?

2014-11-27 Thread Timothy Baldridge
eh, that one line should be: (let [rf (fn [_ x] (>!! to-chan x)) ...) On Thu, Nov 27, 2014 at 3:15 PM, Timothy Baldridge wrote: > This wasn't included in core.async mostly because it's fairly easy to > write. The code looks something like this (untested): > > (def from-chan) > (def to-chan) > >

Re: Core.async unordered pipeline-blocking ?

2014-11-27 Thread Timothy Baldridge
This wasn't included in core.async mostly because it's fairly easy to write. The code looks something like this (untested): (def from-chan) (def to-chan) (dotimes [_ num-threads] (let [rf (fn [_ x] (>!! to-chan)) f (xform rf)] (thread (loop [] (when-some [x ( wrote:

Core.async unordered pipeline-blocking ?

2014-11-27 Thread Niels van Klaveren
Recently in creating load testing I've been in need of throttling certain mixed IO/CPU bound processes and have been using claypoole.core/upmap for those situations (require '[com.climate.claypoole :as cp]) (defn wait-and-return [w] (Thread/sleep (* 1000 w)) w) (def to-sort [38 20 22 2

[ANN] java-jdbc/dsl 0.1.1

2014-11-27 Thread Sean Corfield
What? A basic SQL DSL (that was briefly part of org.clojure/java.jdbc). Version 0.1.1 Where? https://github.com/seancorfield/jsql https://clojars.org/java-jdbc/dsl Changes? Add support for WHERE .. IN ( .. ) as (where :col [val1, val2, val3]) Courte

Re: [ClojureScript] Re: [ANN] freactive - high performance, pure Clojurescript, declarative DOM library

2014-11-27 Thread Aaron Craelius
So, you've made a good observation about the spec - it doesn't proscribe any convention for dealing with sequences of items. The reason for this is pretty much that the DOM is the only modern UI framework that I've worked with that doesn't include something like an "items view". So, I understand th

[ANN] FFDC - A template for chestnut / friend / friendui / datomic and reactive

2014-11-27 Thread Sven Richter
Hi: This is the github repo: https://github.com/sveri/ffdc >From the Readme: This is a template (not a leiningen) combining several projects to get started with. Included are: - friend with friendui - datomic pro (should be easily replacable by datomic free edition) - chestnut templa

[ANN] defrecord-wrapper 0.1.3 - wrapping clojure.core/defrecord

2014-11-27 Thread JUAN ANTONIO Ruz
https://github.com/tangrammer/defrecord-wrapper This library lets you apply middleware to protocol implementations of clojure.core/defrecord in the same way as AOP does. The idea behind defrecord-wrapper is pretty simple. It creates another defrecord instance (wrapper) that will contain the ori

Re: Any Clojure programming recording around?

2014-11-27 Thread Fernando Varesi
+1 for zombileclj.no I don't speak a word in Norwegian, but I can follow along since the function names are in English. I found those screencasts very useful to learn a possible workflow for TDD in clojure. Fernando. On Wednesday, November 26, 2014 7:54:41 PM UTC-2, Stig Brautaset wrote: > > I

Re: Clojure / Lisp Developers job listings

2014-11-27 Thread juan.facorro
Hi all, I just discovered this list of Clojure job postings thanks to a co-worker and just wanted to share with those who might have not heard about it, like me until today :P. http://lispjobs.wordpress.com/ Cheers, Juan On Tuesday, March 9, 2010 1:00:15 PM UTC-3, Will Fitzgerald wrote: >

Re: Wouldn't it be nice if if-let allowed more bindings?

2014-11-27 Thread Fluid Dynamics
On Wednesday, November 26, 2014 10:06:41 PM UTC-5, Michael Blume wrote: > > Instead of the deshadowing logic, why not > > (defn if-and-let* > [bindings then-clause else-fn-name] > (if (empty? bindings) > then-clause > `(if-let ~(vec (take 2 bindings)) >~(if-and-let* (drop 2 bin

Re: ring jetty adaptor: any way to abort on unrecoverable error?

2014-11-27 Thread Karsten Schmidt
Would this maybe help? (try (run-jetty handler {:port 8080}) (catch java.net.BindException e (println "Can't launch jetty:" (.getMessage e)) (System/exit 1))) On 27 November 2014 at 03:51, Brian Craft wrote: > If jetty fails to bind a port because it's in use an exception is thrown,

Re: How to supress warning when including cljx?

2014-11-27 Thread r0man
It's a bug in cljx related to the middleware I think. Try this one: [org.clojars.cemerick/cljx "0.5.0-SNAPSHOT"] On Thursday, November 27, 2014 12:22:54 PM UTC+1, Colin Yates wrote: > > I have included cljx and everytime lein starts it gives the following: > > [code] > WARNING!!! version ranges fo

How to supress warning when including cljx?

2014-11-27 Thread Colin Yates
I have included cljx and everytime lein starts it gives the following: [code] WARNING!!! version ranges found for: [com.keminglabs/cljx "0.4.0"] -> [org.clojars.trptcolin/sjacket "0.1.0.6"] -> [org.clojure/clojure "[1.3.0,)"] Consider using [com.keminglabs/cljx "0.4.0" :exclusions [org.clojure/c