Re: [ANN] Grenada 1.0.0-rc.2

2015-08-26 Thread Richard Möhn
Am Mittwoch, 26. August 2015 14:52:31 UTC+9 schrieb zcaudate: […] Yep, it’s exactly how you’ve described. The main emphasis is on writing documentation that can be verified through tests and so if the api changes, then the documentation can be fixed accordingly. The grenada project

Re: Reviewers needed for new Clojure book!

2015-08-26 Thread Akhil Wali
It's great to see so many volunteers for this project! Like I mentioned earlier, I have notified Packt and they shall contact anyone who is shortlisted as a reviewer. On Monday, August 24, 2015 at 12:16:06 PM UTC+5:30, Akhil Wali wrote: If anyone is interested in being a reviewer for a new

Re: [ANN] Grenada 1.0.0-rc.2

2015-08-26 Thread Francesco Bellomi
Hi Chris, CrossClj is similar in spirit to Hoogle, although it is more focused on cross-project browsing https://crossclj.info/ However, you cannot search by type signature, being Clojure not statically typed ;-) Francesco On Wednesday, August 26, 2015 at 7:52:31 AM UTC+2, zcaudate wrote:

Re: top-level lets or private globals

2015-08-26 Thread Kurt Sys
Well, honestly, I tend to use pretty big lets in my namespaces. I know I can use (private) namespace-scoped variables (or rather, contstants :) ) , but somehow, I don't really like them. So what I mostly have now: (ns my.namespece (require [other.namespace : as o]

Re: top-level lets or private globals

2015-08-26 Thread Kurt Sys
**EDIT: I've put some (private, mostly pretty small) 'helper'-functions outside the let-block. I like this kind of construct in some way. It makes a clear distinction between: 1. functions that don't use the 'namespace constants', mostly helper functions (very often, most of these can be

Re: ANN: Fink-Nottle 0.1.0 (async SQS + SNS client)

2015-08-26 Thread Matthias Diehn Ingesman
I might have missed one or two of those pieces of documentation; will take a look in the morning tomorrow. My plans are just to use the SNS parts of fink-nottle to create and delete device endpoints, and subsequently publish to them. My use case is about as basic as it gets, I think. -- You

Re: ANN: Fink-Nottle 0.1.0 (async SQS + SNS client)

2015-08-26 Thread Matthias Diehn Ingesman
I might have missed one or two of those pieces of documentation; will take a look in the morning tomorrow. My plans are just to use the SNS parts of fink-nottle to create and delete device endpoints, and subsequently publish to them. My use case is about as basic as it gets, I think. Regards,

Re: [ANN] - New Clojure Instant Answer on DuckDuckGo

2015-08-26 Thread Chris Sims
In a similar vein, you can use ‘!clojars’ to search on Clojars directly, e.g. ‘!clojars cheshire’. —Chris On Aug 26, 2015, at 3:11 AM, Matthias Diehn Ingesman matth...@ingesman.dk wrote: That should come in handy, thanks! Matthias Den onsdag den 26. august 2015 kl. 00.04.34 UTC+2

Re: top-level lets or private globals

2015-08-26 Thread Herwig Hochleitner
I can't really speak to what's more idiomatic, but there is a slight difference between a top-level let and ^:const ^:private. ^:const makes the compiler directly inline the form, thus it works only on pr-dup - able values. This has gotten me by surprise some times. This also duplicates values,

Re: Weird GenSyms behaviour across different quoted blocks in a macro

2015-08-26 Thread Leon Grapenthin
What Ambrose said and: There is no need to use a hash for i in the for form. It is misleading because one thinks it will become a generated symbol as part of the generated form which is untrue. On Wednesday, August 26, 2015 at 11:08:12 PM UTC+2, Rafik NACCACHE wrote: Suppose I have the

Weird GenSyms behaviour across different quoted blocks in a macro

2015-08-26 Thread Rafik NACCACHE
Suppose I have the following macro, which generates a function that does some repetitive generation, let's say: (defmacro a-macro [m] `(fn [f#] ~(for [i# m] `(* (:val f#) ~i# Note how I start with a quoted block in which I emit the fn header, and in which I use a gensym to

Re: Weird GenSyms behaviour across different quoted blocks in a macro

2015-08-26 Thread Ben Wolfson
unify-gensyms from potemkin will fix this: https://github.com/ztellman/potemkin On Wed, Aug 26, 2015 at 2:07 PM, Rafik NACCACHE rafik.nacca...@gmail.com wrote: Suppose I have the following macro, which generates a function that does some repetitive generation, let's say: (defmacro a-macro

Re: Weird GenSyms behaviour across different quoted blocks in a macro

2015-08-26 Thread Ambrose Bonnaire-Sergeant
You want an explicit gensym that scopes over both positions. (defmacro a-macro [m] (let [f (gensym f)] `(fn [~f] ~(for [i# m] `(* (:val ~f) ~i# ) Thanks, Ambrose On Wed, Aug 26, 2015 at 5:07 PM, Rafik NACCACHE rafik.nacca...@gmail.com wrote: Suppose I have the

Re: Weird GenSyms behaviour across different quoted blocks in a macro

2015-08-26 Thread Timothy Baldridge
Auto generated symbols (x# style) are only valid within a single syntax quote form. Instead declare the symbol ahead of time, something like this: (let [fsym (gensym f_)] `(fn [~fsym] ~@(for [x (range 10] `(println ~fsym ~x Hope this helps. Timothy On Wed, Aug 26, 2015

Re: Reviewers needed for new Clojure book!

2015-08-26 Thread andrea crotti
I reviewed the Python3 cookbook a while ago and would love to do the same for a Clojure book, thanks, Andrea 2015-08-26 7:03 GMT+01:00 Akhil Wali green.transis...@gmail.com: It's great to see so many volunteers for this project! Like I mentioned earlier, I have notified Packt and they shall

Re: How to move an element within a vector?

2015-08-26 Thread Linus Ericsson
It is correct that vectors aren't a suitable choice for datastructures that need random-access-removal. The problem is that you seem to need both fast index lookup and be able to access elements after removed elements quickly even when there are holes in the backing array. There are some

Re: ANN: Fink-Nottle 0.1.0 (async SQS + SNS client)

2015-08-26 Thread Moe Aboulkheir
Matthias, On Wed, Aug 26, 2015 at 9:31 AM, Matthias Diehn Ingesman matth...@ingesman.dk wrote: That looks really useful, and as far as I can tell yours is the only library for SNS. I'm considering using your library in a production app, are there any pitfalls I should be aware of? Nothing

Re: ANN: Fink-Nottle 0.1.0 (async SQS + SNS client)

2015-08-26 Thread Matthias Diehn Ingesman
Hi Moe. That looks really useful, and as far as I can tell yours is the only library for SNS. I'm considering using your library in a production app, are there any pitfalls I should be aware of? From quickly browsing the sources, it is not clear to me what the functions declared by the

Re: [ANN] - New Clojure Instant Answer on DuckDuckGo

2015-08-26 Thread Matthias Diehn Ingesman
That should come in handy, thanks! Matthias Den onsdag den 26. august 2015 kl. 00.04.34 UTC+2 skrev Rafik NACCACHE: Hi Guys, I contributed an Instant Answer to DuckDuckGo. When you search for Clojure with a number of terms, you directly have under the software tab all the packages

Ratio implementation questions

2015-08-26 Thread Alex Miller
This is logged at http://dev.clojure.org/jira/browse/CLJ-1435 - feel free to vote for it. -- 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 -

Re: Ratio implementation questions

2015-08-26 Thread Andy Fingerhut
On Wed, Aug 26, 2015 at 3:26 PM, waffletower christopherpenr...@gmail.com wrote: Would someone care to rationalize the implementation of (rationalize)? Sorry, I don't have an answer of the form Rich Hickey's rationale for this behavior is X, because I don't know what X is for this behavior. I

Re: top-level lets or private globals

2015-08-26 Thread Kevin Downey
On 8/25/15 12:06 AM, Kurt Sys wrote: I'm refering to a few posts in an old thread: https://groups.google.com/d/msg/clojure/r_ym-h53f1E/RzUdb5oYeX4J What really puzzles me is that it doesn't seem to be generally regarded as idiomatic Clojure style to just use top-level (let)s for

Re: Reviewers needed for new Clojure book!

2015-08-26 Thread J.-F. Rompre
I am interested too if not too late... Thanks -- 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