This is the first release of the lein-sablecc leiningen plugin.
This project is on github at https://github.com/rritoch/lein-sablecc
It has been released to clojars at https://clojars.org/lein-sablecc
Description:
This plugin integrates the SableCC Compiler Compiler with a leiningen
project. T
Sorry, that should be
(defmacro listen
[[topic-sym topic-name] & body]
`(on-message ~topic-name
(fn [~topic-sym] (~@body)
On Thu Jan 01 2015 at 11:01:53 PM Michael Blume
wrote:
> If it were me I'd avoid making 'topic a "magic symbol" and let the user
> choose a symbol to bind. It'd
If it were me I'd avoid making 'topic a "magic symbol" and let the user
choose a symbol to bind. It'd look something like
(defmacro listen
[[topic-sym topic-name] & body]
`(on-message ~topicname
(fn [~topic-name] (~@body)
(listen [topic "topic-test"] (println topic "test))
this way
Thank you for the superfast response. I take it implementing your own
transducing process is not something you would usually do unless you have a
unique use case (my own use case being already implemented by chan taking a
transducer).
Still, I was wondering about the use of ArrayList in partiti
Here is an experiment to figure out what causes the problem. If this is an
issue of the lazy sequence, then this code should be equally bad:
(defn lazy-seq-fibo
([]
(concat [0 1] (lazy-seq-fibo 0N 1N)))
([a b]
(let [n (+ (mod a 1000) (mod b 1000))]
(lazy-seq
Core.async already has pipeline, pipeline-blocking and pipeline-async. In
addition you can use a transducer inside a channel. Use those instead.
Timothy
On Thu, Jan 1, 2015 at 6:55 PM, shintotomoe wrote:
> I was wondering how to apply a transducer inside a go process. What I've
> so far is the
I was wondering how to apply a transducer inside a go process. What I've so
far is the following
(defn pipe-xform [in-ch out-ch xform]
(let [tr
(let [tr (xform (fn
([result] result)
([result input] (conj! result input]
(f
Benchmarks like this are often considered red herrings by language
developers. Mostly because they are testing the wrong thing. In this case
you are basically testing the performance of big ints in Python to the
performance of big ints in Clojure (and Java). Since no one really ever
uses big intege
Implement a custom buffer type, or use mult. With mult, use tap/untap to
control reading. Items sent to mult are dropped if there are no taps.
Jozef
On Mon, Dec 29, 2014 at 12:38 PM, Yehonathan Sharvit
wrote:
> Hello,
>
>
> I would like to create a channel that will drop messages if no consumer