Re: [ANN] Ansible roles for deploying Clojure + book on using them

2017-03-16 Thread Janko Muzykant
Daniel Higginbotham writes: [cut] > The deployment tools rely on scripts that I developed for my own sites, > including Community Picks, a site for community-powered product > recommendations. I didn't know about Community Picks before. Awesome idea, thanks :) -- "This is so f*cking simple t

Re: Combinatorics partitions that preserves adjacency?

2017-03-16 Thread Paul Gowder
Ooh, thank you---those are both lovely solutions! -- 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 be patient with your first post.

Re: Handling dependency conflicts

2017-03-16 Thread arthur
Howard, thanks for posting that library. I've passed on the info to some of the other developers at work. That kind of tool is highly valuable, I'll likely start using it soon. Gary, the MrAnderson approach sounds similar to shading; I'll take a look today. Stuart, the most common approach boi

Re: Combinatorics partitions that preserves adjacency?

2017-03-16 Thread Paul Gowder
For sake of completeness/if this is useful for anyone else, a full implementation of the number-the-possible-split-locations method, including the original API with :min and :max options. Could probably be tidied up with transducers and such for all those filters but does the job. (require '[c

Re: go local variable binding

2017-03-16 Thread Christian Weilbach
You cannot do so in cljs though: http://dev.clojure.org/jira/browse/CLJS-1634 Just in case you expect to write cross-platform code with dynamic bindings. Am 16.03.2017 um 01:01 schrieb Timothy Baldridge: > Yes, that should work fine, do your tests confirm otherwise? Also if > you're not doing a

Re: go local variable binding

2017-03-16 Thread Timothy Baldridge
Yes, dynamic vars do not exist in CLJS, so naturally binding doesn't work as you would expect. On Thu, Mar 16, 2017 at 11:36 AM, Christian Weilbach < whitesp...@polyc0l0r.net> wrote: > You cannot do so in cljs though: > http://dev.clojure.org/jira/browse/CLJS-1634 > > Just in case you expect to w

[ANN] Virgil 0.1.6

2017-03-16 Thread Zach Tellman
I figured it was worth reminding everyone that this library exists: https://github.com/ztellman/virgil. It now seems to work on Java projects of arbitrary size and structure (the in-process compiler is very fussy about compile order, you need to topologically sort the classes), and I've been u

Re: [ANN] Virgil 0.1.6

2017-03-16 Thread Gregg Reynolds
On Mar 16, 2017 1:13 PM, "Zach Tellman" wrote: I figured it was worth reminding everyone that this library exists: https://github.com/ztellman/virgil. It now seems to work on Java projects of arbitrary size and structure (the in-process compiler is very fussy about compile order, you need to top

Re: [ANN] Virgil 0.1.6

2017-03-16 Thread Zach Tellman
The code is split into a library and a minimal Leiningen plugin which runs it at startup. If someone wants to contribute a Boot equivalent, I'm happy to accept that PR. On Thursday, March 16, 2017 at 11:18:16 AM UTC-7, Gregg Reynolds wrote: > > > > On Mar 16, 2017 1:13 PM, "Zach Tellman" > > w

Re: Handling dependency conflicts

2017-03-16 Thread Daniel Compton
One option to help with this is OSGi which does have support in Clojure. https://github.com/talios/clojure.osgi As Stuart alluded to in his message, the cure to dependency conflicts (OSGi) may be worse than the disease. I’d guess that the venn diagram of people using both Clojure and OSGi is prett

Re: [ANN] Virgil 0.1.6

2017-03-16 Thread Ralf Schmitt
Zach Tellman writes: > I figured it was worth reminding everyone that this library > exists: https://github.com/ztellman/virgil. Hi Zach, thanks for the reminder. I've read about Virgil some weeks ago, and today I thought I could use this project, but couldn't remember the name. I'm using it

No :out in my nREPL responses

2017-03-16 Thread Terje Dahl
I am attempting to embed an nREPL server in my application (version 0.2.12). Everything seems to work nicely, except I am not able to get any out from print statements et al. Even the basic example on the README "(time (reduce + (range 1e6)))" doesn't work for me: I do not get back the map co

Re: No :out in my nREPL responses

2017-03-16 Thread Terje Dahl
UPDATE: I only just discovered: It *does* work as expected when I run it from the "standard" REPL in JVM (in IntelliJ/Cursive), And it *does* work as expected when I run it in my own "home grown" REPL stack. It does *not* work as expected when running it in any variant of nREPL - including: -

Re: No :out in my nREPL responses

2017-03-16 Thread Colin Fleming
Hi Terje, When you say the "standard" REPL in Cursive, are you referring to the "Use nREPL in normal JVM process" option, or the "Use clojure.main in normal JVM process" option? Obviously the first does use nREPL, but doesn't go through lein - Cursive just runs a JVM process, starts a bare-bones n