Re: Why we cannot do this now?

2016-06-22 Thread Erik Assum
Using Cider and clj-refactor, you can do M-x cljr-add-project-dependency to add (or update) a dependency. Erik. -- i farta > Den 22. jun. 2016 kl. 23.50 skrev Ritchie Cai : > > Just curious, how do you add new dependencies to a running REPL? Do you just > restart REPL? I used to able to add

Re: [ANN] core.async 0.2.382

2016-06-22 Thread Daniel Compton
I knew I must be missing something. You can also set the core.async threadpool size with (System/setProperty "clojure.core.async.pool-size" "42") as long as that runs before any core.async code tries to use the threadpool. Some context on why the change was made to 8 would be good, but it is easy

Re: Joy of Clojure : Backward running lisp ??

2016-06-22 Thread Baishampayan Ghose
Running "backwards" here pertains to logic/relational programming in MiniKanren/core.logic style. Roughly here programs are expressed in terms of relations between the input and output. So given an input and an output query you'll run it forwards and by making the input itself a variable with a fix

Joy of Clojure : Backward running lisp ??

2016-06-22 Thread Ashish Negi
I am reading joy of clojure. In the "forward to second edition" William E Byrd and Daniel P Firedman says : *As with recursion, the art of defining little languages encourages—and rewards—wishful thinking. You might think to yourself, “If only I had a language for expressing the rules for leg

Re: Too over complicated

2016-06-22 Thread Alan Thompson
Olek - You may find some of the convience functions you are missing in the Tupelo library. In particular: https://github.com/cloojure/tupelo#convenience-in-testing-seqs https://github.com/cloojure/tupelo#keeping-it-simple-with-not-nil Keeping It Simple with not-nil? Clojure has the build-in fun

Re: Why we cannot do this now?

2016-06-22 Thread Sean Corfield
On 6/22/16, 2:50 PM, "Ritchie Cai" wrote: > Just curious, how do you add new dependencies to a running REPL? Do you just > restart REPL? Our project is pretty stable so we don’t add new dependencies very often (nor change existing ones), so yes, we just restart the REPL in the project context.

Re: tips on writing modern idiomatic code

2016-06-22 Thread Rangel Spasov
Great book resources, IMO: Clojure Programming (Emerick, Carper, Grand; O’Reilly) - book Clojure Applied (Alex Miller, Ben Vandgrift) - book If you understand the majority of what those books say and why, read Zach's Elements of Clojure. General recommendations: - understand why transducers, us

Re: Why we cannot do this now?

2016-06-22 Thread Ritchie Cai
Just curious, how do you add new dependencies to a running REPL? Do you just restart REPL? I used to able to add new dependencies using alembic, but it seems it's not really compatible with clojure 1.8, not an option anymore. Thanks Ritchie On Monday, June 20, 2016 at 3:42:02 PM UTC-5, Sean Co

Re: [ANN] core.async 0.2.382

2016-06-22 Thread Daniel Compton
Bumping this too. What was the context for this change? I don’t see any JIRA tickets linked in the commits with a rationale for why 8 was picked as the thread pool siz

Re: [ANN] Flake 0.4.0: Decentralized, k-ordered unique ID generator

2016-06-22 Thread Max Countryman
> On Jun 22, 2016, at 06:27, Bruno Bonacci wrote: > > @Brian, The clock drift problem was in answer to your question and generally > it was referring to the pure System/currentTimeMillis implementation. The > System/nanoTime, as it is now, is completely broken as it offsets against the > wall

Re: [ANN] Flake 0.4.0: Decentralized, k-ordered unique ID generator

2016-06-22 Thread Bruno Bonacci
On Wed, Jun 22, 2016 at 2:17 PM, Brian Platz wrote: > > > On Wednesday, June 22, 2016 at 7:25:50 AM UTC-4, Bruno Bonacci wrote: >> >> >> To answer Brian on the "potential" problem of the clock drift I would >> recommend to have a look to >> https://aphyr.com/posts/299-the-trouble-with-timestamps.

ANN: ClojureScript 1.9.89 - cljs.spec & :preloads

2016-06-22 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript Leiningen dependency information: [org.clojure/clojurescript "1.9.89"] This release fixes several cljs.spec issues. It also includes a new compiler option

Re: [ANN] Flake 0.4.0: Decentralized, k-ordered unique ID generator

2016-06-22 Thread Brian Platz
On Wednesday, June 22, 2016 at 7:25:50 AM UTC-4, Bruno Bonacci wrote: > > > To answer Brian on the "potential" problem of the clock drift I would > recommend to have a look to > https://aphyr.com/posts/299-the-trouble-with-timestamps. Beside the > hardware problems you have to account for thin

Re: [ANN] Flake 0.4.0: Decentralized, k-ordered unique ID generator

2016-06-22 Thread Bruno Bonacci
Hi, Yes adding more bits to the id is certainly undesirable, however it isn't uncommon. For example Linked just published a paper on Ambry a distributed datastore which uses a total of *40 bytes* to identify a blob (8 bytes for the partition + 32 bytes for UUID, see: http://dprg.cs.uiuc.edu/docs/S