Re: Use of volatile! in stateful transducers

2015-01-02 Thread Jörg Winter
reads, but > only 1 thread "owns" it at a given time. > > Timothy > > On Fri, Jan 2, 2015 at 7:11 AM, Jörg Winter > wrote: > >> Hi, >> >> As seen in this example of a stateful transducer... >> >> http://crossclj.info/ns/org.clojure/cl

Re: Use of volatile! in stateful transducers

2015-01-02 Thread Jörg Winter
ead "owns" it at a given time. > > Timothy > > On Fri, Jan 2, 2015 at 7:11 AM, Jörg Winter wrote: > >> Hi, >> >> As seen in this example of a stateful transducer... >> >> http://crossclj.info/ns/org.clojure/clojure/latest/clojure.core.html#_part

Use of volatile! in stateful transducers

2015-01-02 Thread Jörg Winter
Hi, As seen in this example of a stateful transducer... http://crossclj.info/ns/org.clojure/clojure/latest/clojure.core.html#_partition-by ... I am wondering what is the concrete motivation behind using 'volatile!' instead of say a simple (mutable) Java-Object wrapper ? In the partition-all exam

Re: [ANN] www.core-async.info: a new web resource for core.async

2014-09-25 Thread Jörg Winter
Same problem with iOS 7 and 8 on iPad Safari and Chrome Does not finish loading -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please

Re: core.async is very slow for some cases, what to do?

2014-03-13 Thread Jörg Winter
You could also try out: http://docs.paralleluniverse.co/pulsar/ Am Dienstag, 11. März 2014 18:39:54 UTC+1 schrieb Эльдар Габдуллин: > > Each go block is executed via thread pool. On a channel side, producers > and consumers are also decoupled. > Such decoupling costs around 10-20 us per async op

Re: cgrand's parsley... text offsets ?

2013-08-24 Thread Jörg Winter
..so an example of using /iterating a "nonrec-view" would be great! Hope I'm putting this question right Joerg -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new

Re: Interest in a commercial IDE for Clojure?

2013-08-24 Thread Jörg Winter
Totally agree with Francesco, Once your used to IntelliJ's comfort you're pretty much hooked. I would pay a reasonable price for an Intellij-based IDE anytime. Colin, hope this is underway already and I wish you success with it. One thing though: Many Lisp-specific (especially homo-iconicity) pro

Re: cgrand's parsley... text offsets ?

2013-08-24 Thread Jörg Winter
Just what I was looking for, yes, thanks! >From the tests I can see an example for views: (deftest path-to (is (= (-> (v/path-to ftree 10) peek first v/text) "world"))) But what is the way to access the resulting map(?) of v/offsets ? what are the keys to the offsets.. the :tag items ? Joerg

cgrand's parsley... text offsets ?

2013-08-22 Thread Jörg Winter
Hi, Is there any existing option/fn to get the offsets and lengths of parsed content ? For example for this: > (-> sexpr p/incremental-buffer (p/edit 0 0 "(") (p/edit 1 0 "x)") p/parse-tree clojure.pprint/pprint) ...instead of: {:tag :root, :content [{:tag :list, :content ["(" {:tag :symbol

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-06 Thread Jörg Winter
Hey Zach, great initiative! Keep it going.. much needed toole there! Just wanted to say that for indenting/reformatting clojure-code, it is indeed possible to use clojure's own "pprint" function. Unfortunately the official java API.invoke() is only available in clojure 1.6 But I have used this

Re: Clojure 1.6 API: clojure.lang.IFn and clojure.api.API

2013-06-24 Thread Jörg Winter
Hi Stuart, ok, so my question is actually more about how to create some clojure Runtime, filling it with additional namespaces, i.e. more than just clojure.core. I just discovered the RT class which could be what I want ( though its not official "API" ?) I need to make clojure runtime avail

Clojure 1.6 API: clojure.lang.IFn and clojure.api.API

2013-06-22 Thread Jörg Winter
So these APIs are new in 1.6-SNAPSHOT and from what I understand provide an integration api between Java and Clojure-Runtime (symbols and their invocation). Apart from limitations which probably exist, what is the mode of execution for these API-calls ? For example if a tool/IDE starts a (REPL)