Re: using contrib functions

2014-03-31 Thread Sean Corfield
Thank you. I just submitted an edit to remove the link to the richhickey.github.com repo since that's so outdated, and add a note about clojure.contrib no longer being maintained. It's a slow process to update the web to remove all the outdated stuff :) Sean On Mon, Mar 31, 2014 at 5:06 PM, Chris

scrolling content of ac-nrepl-popup-doc

2014-03-31 Thread Nehal Patel
Hi -- I'm trying out Emacs Live. When I "M-x ac-nrepl-popup-doc" how do I scroll the displayed text (The popup disappears immediately for the few keys that I have tried) Should popup-doc also be bound to a keyboard shortcut in Emacs Live (as opposed to just being triggered by autocomplete)?

Re: [ANN] Clojure 1.6

2014-03-31 Thread Alex Miller
Sounds right to me. On Monday, March 31, 2014 5:40:09 PM UTC-5, Stuart Sierra wrote: > > Yes, during the upgrade to the new Nexus release plugin > (required by Sonatype OSS) we forgot to include the > "distribution" profile, which builds the ZIP, in the Hudson > configuration for Clojure. > > I've

Re: REPL: viewing data structures containing infinite lists

2014-03-31 Thread Gary Trakhman
http://clojuredocs.org/clojure_core/clojure.core/*print-length* On Mon, Mar 31, 2014 at 8:49 PM, Christopher Howard wrote: > Is there some kind of "safe" function for printing representations of > lazy, infinite data structures? I'm finding I like using them inside > other data structures here a

REPL: viewing data structures containing infinite lists

2014-03-31 Thread Christopher Howard
Is there some kind of "safe" function for printing representations of lazy, infinite data structures? I'm finding I like using them inside other data structures here and there. However, when I go to play around with things in the REPL, sooner or later my workflow is interrupted by 3 million charact

Re: Clojure Cookbook is out

2014-03-31 Thread Marcus Blankenship
Will do. ;-) Sorry to be the bearer of bad news. On Mar 31, 2014, at 5:46 PM, Ryan Neufeld wrote: > Wow, that's crazy, 4/30!? I'm not sure what's going on there, but if you want > it way sooner, try O'Reilly. > > -Ryan > > > On March 31, 2014 at 8:44:43 PM, Marcus Blankenship (mar...@c

Re: Clojure Cookbook is out

2014-03-31 Thread Ryan Neufeld
Wow, that’s crazy, 4/30!? I’m not sure what’s going on there, but if you want it way sooner, try O’Reilly. -Ryan  On March 31, 2014 at 8:44:43 PM, Marcus Blankenship (mar...@creoagency.com) wrote: Ok, cool.  Amazon just sent me a note offering to cancel my pre-order of the book, saying they

Re: Clojure Cookbook is out

2014-03-31 Thread Marcus Blankenship
Ok, cool. Amazon just sent me a note offering to cancel my pre-order of the book, saying they didn't think they could get it until 4/30. I actually had to go back to their site and reconfirm the order, or it would be cancelled. Needless to say, I took the time to reconfirm. ;-) Marcus On M

Re: Clojure Cookbook is out

2014-03-31 Thread Ryan Neufeld
Should be out any day now. The O’Reilly store has been selling them in print for almost a week, and our release date was supposed to be the 24th… -Ryan  On March 31, 2014 at 8:37:16 PM, Marcus Blankenship (mar...@creoagency.com) wrote: Cool! I just tried to buy this on Amazon and it’s not av

Re: Clojure Cookbook is out

2014-03-31 Thread Marcus Blankenship
Cool! I just tried to buy this on Amazon and it's not available. Is the paper version out yet? On Mar 31, 2014, at 5:35 PM, Brian Craft wrote: > Just wanted to say how much I like this book. I got a copy at Clojure/West. > Though it's structured like a reference book, I'm enjoying reading it

Re: Clojure Cookbook is out

2014-03-31 Thread Brian Craft
Just wanted to say how much I like this book. I got a copy at Clojure/West. Though it's structured like a reference book, I'm enjoying reading it cover-to-cover, and learning a lot. The discussion sections provide valuable contexts for many libraries and features that had previously escaped me.

Re: using contrib functions

2014-03-31 Thread Christopher Howard
On Fri, 28 Mar 2014 20:06:59 -0700 Sean Corfield wrote: > BTW, where did you find the references to defadt and > clojure.contrib.types? Perhaps we can get the original references > updated so people aren't misled in future... > > Sean > I think it was this old StackOverflow post: http://stack

Re: [ANN] Clojure 1.6

2014-03-31 Thread Stuart Sierra
Yes, during the upgrade to the new Nexus release plugin (required by Sonatype OSS) we forgot to include the "distribution" profile, which builds the ZIP, in the Hudson configuration for Clojure. I've updated the Hudson configuration, so future releases should get a ZIP. I will manually build a ZI

Re: [ANN] Clojure 1.6

2014-03-31 Thread David Nolen
Thanks! On Mon, Mar 31, 2014 at 6:26 PM, Stuart Sierra wrote: > Oof, it's been ages since I looked at that stuff. I'll take a look. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.co

Re: [ANN] Clojure 1.6

2014-03-31 Thread Stuart Sierra
Oof, it's been ages since I looked at that stuff. I'll take a look. -- 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 y

Re: Function from a symbolic expression

2014-03-31 Thread Lee Spector
On Mar 31, 2014, at 5:59 PM, François Rey wrote: > Forget that, my code does not work with 'z too, obviously. > Too late, time to go to bed for me But my code *does* work with 'z as long as z is also the variable used in the expression, which is what I assume was intended: (defn functional

Re: Function from a symbolic expression

2014-03-31 Thread François Rey
On 31/03/14 23:51, François Rey wrote: On 31/03/14 23:25, Lee Spector wrote: (defn functionalise [ex var] (eval (list 'fn (vector var) ex))) (def ex '(+ 1 x)) (def exf (functionalise ex 'x)) (exf 3) ;; => 4 This calls eval only once when you call functionalise, and doesn't do any tree

Re: Function from a symbolic expression

2014-03-31 Thread François Rey
On 31/03/14 23:25, Lee Spector wrote: (defn functionalise [ex var] (eval (list 'fn (vector var) ex))) (def ex '(+ 1 x)) (def exf (functionalise ex 'x)) (exf 3) ;; => 4 This calls eval only once when you call functionalise, and doesn't do any tree walking. FWIW this is the trick I use

Strange behaviour for proxy when two abstract classes are passed in

2014-03-31 Thread zcaudate
I know this is a silly example but I am curious to know what is happening with the proxy method. I have set up two calls to proxy: 1. (def cp (proxy [java.util.AbstractMap clojure.asm.ClassVisitor] [])) 2. (def cp (proxy [clojure.asm.ClassVisitor java.util.AbstractMap] [])) The fi

Re: Function from a symbolic expression

2014-03-31 Thread Lee Spector
On Mar 31, 2014, at 1:27 PM, A. Webb wrote: > > If you are working with quoted expressions, you'll have to eval in the macro > and take the one-time hit there > > (defmacro functionalise2 > [ex var] > (let [arg (gensym) > body (clojure.walk/postwalk-replace {var arg} ex)] > `(f

Re: Clojars is down?

2014-03-31 Thread Nelson Morris
Yes it was down as part of a linode issue. As a co-maintainer for clojars, if this inconvenienced anyone's business I'd be happy to hear from you. - Nelson Morris On Mon, Mar 31, 2014 at 2:14 PM, Gal Dolber wrote: > nevermind > > > On Mon, Mar 31, 2014 at 4:00 PM, Gal Dolber wrote: > >> >> >

Re: test.check, quickcheck concurrency

2014-03-31 Thread Kevin Downey
On 3/28/14, 9:48 PM, Brian Craft wrote: > Re: John Hughes' talk at clojure/west, at the end he did a fairly > incredible demo of testing concurrency. It doesn't look like this was > implemented in test.check (or I'm not finding it). Are there any plans? > from my understanding his approach is u

Re: lein2 - lein version fails due to org.apache.http.impl.client.DefaultRequestDirector

2014-03-31 Thread Mauricio Aldazosa
Yep, there seems to be something wrong with clojars. If you already have all the dependencies you need, running lein with the -o flag might solve the issue. Mauricio -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

lein2 - lein version fails due to org.apache.http.impl.client.DefaultRequestDirector

2014-03-31 Thread Andrew Xue
my lein started not working mysteriously. i can't even get lein version to work w/o a weird error: lein version Mar 31, 2014 3:11:38 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect INFO: I/O exception (java.net.NoRouteToHostException) caught when connecting to the target host:

Re: Clojars is down?

2014-03-31 Thread Gal Dolber
nevermind On Mon, Mar 31, 2014 at 4:00 PM, Gal Dolber wrote: > > -- 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

Clojars is down?

2014-03-31 Thread Gal Dolber
-- 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. To unsubscribe from this group, send email to cloj

Re: Function from a symbolic expression

2014-03-31 Thread A. Webb
On Monday, March 31, 2014 12:13:25 PM UTC-5, Jony Hudson wrote: > > > (defmacro functionalise > [ex var] > (let [arg (gensym) > body (postwalk-replace {var arg} ex)] > `(fn [~arg] ~body))) > > This works as written, it is just that macros do not evaluate their arguments, so you d

Function from a symbolic expression

2014-03-31 Thread Jony Hudson
Hi all, I've gotten myself stuck with what is probably a simple question, and wonder if someone can advise. What I want to be able to do is to take a symbolic expression, like '(+ 1 x) say, and turn it in to a function programmatically, so that I can call something like: (def ex '(+ 1 x)) (de

Re: om: state management considerations

2014-03-31 Thread icamts
Hi Rle, I'm a clojurescript / om newbie too. I'll try to answer to the best of my knowledge and maybe someone else can improve this first guess. Il giorno giovedì 27 marzo 2014 09:20:41 UTC+1, rlewczuk ha scritto: > > Hi, > > After playing a bit with om, I'm somewhat confused about state maintai

Re: STM and persistent data structures performance on mutli-core archs

2014-03-31 Thread Andy C
Memory access patterns make a huge a difference to memory throughput. I've > explored this in some detail in the following blog. > > > http://mechanical-sympathy.blogspot.co.uk/2012/08/memory-access-patterns-are-important.html > > Thanks for sharing. From the Clojure perspective and using reducers,

Re: STM and persistent data structures performance on mutli-core archs

2014-03-31 Thread Andy C
This is a slightly different result as this time I measure elapsed time (see appendix and excuse not so nice code) as opposed to a clock time. Results are similar (unless you have more processes than cores). I am planning to release the code to github soon. +--++---+ | # of