Re: [ccw-users] Re: [ANN] New release 0.28.1 of Counterclockwise

2014-10-04 Thread Lee Spector
What would this mean in practice for using the new drag/drop functionality to open Clojure projects, regardless of origin or history? Would some require an additional manual step to behave as proper Leiningen projects? This new functionality has been making life *much* better for me and for my

Re: [ANN] New release 0.28.1 of Counterclockwise

2014-10-04 Thread Laurent PETIT
Hello lee, The drag and drop of projects with a project.clj file should not be affected : - if the project already has eclipse metadata (that's what .project and .classpath files are), then ccw will rely on them and not try to overwrite them. - if the project has no eclipse metadata (or no metada

[ANN] rmap - define lazy, recursive maps

2014-10-04 Thread Arnout Roemers
I would like to announce a very little utility library for defining recursive maps in Clojure, called rmap. For example: (def m (rmap X {:what "awesome!" :clj (str "Clojure is " (:what X))}) (:clj m) ;=> "Clojure is awesome!" An object of type IFn + ILookup + Seqable is currently ret

Re: For async, expose the channel directly or expose a function?

2014-10-04 Thread Stuart Sierra
On Sat, Oct 4, 2014 at 12:31 AM, Brian Guthrie wrote: > But I'm troubled by the idea of accepting channels as arguments, even > though there's a lot to be said for consumer control of buffer sizes (to > say nothing of providing potential fakes for test purposes). In that > scenario you'd essentia

Re: [ANN] New release 0.28.1 of Counterclockwise

2014-10-04 Thread Lee Spector
Sounds great -- thanks Laurent. -Lee On Oct 4, 2014, at 10:24 AM, Laurent PETIT wrote: > Hello lee, > > The drag and drop of projects with a project.clj file should not be affected : > > - if the project already has eclipse metadata (that's what .project and > .classpath files are), then c

Re: Getting rid of boxing and reflection when working with characters

2014-10-04 Thread Fluid Dynamics
On Friday, October 3, 2014 2:45:09 PM UTC-4, adrian...@mail.yu.edu wrote: > > You can also call (.getNumericValue (.charAt "foo" 0)) to get the int the > static Character isX methods expect. >> >> >>> Boxing, boxing, boxing! Apparently it did not occur to the Clojure developers that tight loop

Re: [ANN] rmap - define lazy, recursive maps

2014-10-04 Thread Mayank Jain
This looks amazing! Could you write a blog post explaining in detail your thought process, what inspired you, and walking through what you have written? Thanks! This is beautiful! :D On Sat, Oct 4, 2014 at 8:57 PM, Arnout Roemers < goo...@company.romeinszoon.nl> wrote: > I would like to announce

Re: [Job spam] Write Clojure in your pajamas, for decent money in a pleasant company, remote pairing all the time

2014-10-04 Thread Alexey Verkhovsky
At a sort of leisurely pace, but yes, we are. We have quite a few members of this list on our dev team these days :) Please reply off list. --Alex On Fri, Oct 3, 2014 at 9:20 PM, Lucas Daniel wrote: > Hey Alex are you still looking for devs? > Cheers! > > -- > You received this message because

unknown recursion

2014-10-04 Thread emptya45
Hi, I am trying to write a function to return a boolean as to whether parenthesis are balanced or not? (defn bal-parens? [parens] (let [replaced (clojure.string/replace parens "()" "") checked (re-seq #"\(\)" replaced)] (println checked) (if-not (nil? checked) (bal-parens

Re: unknown recursion

2014-10-04 Thread Maciej Jaśkowski
A single issue here: This (defn bal-parens? [parens] (let [replaced (clojure.string/replace parens "()" "") checked (re-seq #"\(\)" replaced)] (println checked) (if-not (nil? checked) (bal-parens? replaced) (do (println (str "replaced is " replaced)) (empty?

`as->` does not work with `recur`.

2014-10-04 Thread Jan-Paul Bultmann
Hey, I just noticed that while recur can be the last statement in most threading macros, it can't be used within an `as->` macro. user=> (macroexpand '(-> x (recur))) (recur x) user=> (macroexpand '(as-> x % (recur %))) (let* [% x % (recur %)] %) This means that a recur within a `as->`

Re: `as->` does not work with `recur`.

2014-10-04 Thread Leon Grapenthin
Thought: (defmacro as-> [expr name & forms] `(let [~name ~expr ~@(interleave (repeat name) (butlast forms))] ~(last forms))) On Sunday, October 5, 2014 1:02:50 AM UTC+2, Jan-Paul Bultmann wrote: > > Hey, > I just noticed that while recur can be the la

Re: core.async: peek the next value from a channel without consuming it

2014-10-04 Thread Leon Grapenthin
Why would you want this? To leave the value inside the channel for other consumers? In that case there would be no guarantee that the value returned by the peek operation is the next value in the channel, because it might have been consumed already. Best regards, Leon On Monday, September 29

Re: `as->` does not work with `recur`.

2014-10-04 Thread Sunil S Nandihalli
This issue has been reported May be you should upvote this.. http://dev.clojure.org/jira/browse/CLJ-1418 On Sun, Oct 5, 2014 at 4:56 AM, Leon Grapenthin wrote: > Thought: > > (defmacro as-> > [expr name & forms] > `(let [~name ~expr >~@(interleave (repeat name

Re: [ANN] rmap - define lazy, recursive maps

2014-10-04 Thread Sunil S Nandihalli
On Sun, Oct 5, 2014 at 1:17 AM, Mayank Jain wrote: > This looks amazing! > Could you write a blog post explaining in detail your thought process, > what inspired you, and walking through what you have written? > +1 for usage patterns that motivated this... > > Thanks! This is beautiful! :D > > O

Re: core.async: peek the next value from a channel without consuming it

2014-10-04 Thread Nahuel Greco
I was thinking in a single-consumer scenario with a buffered chan, in which you want to check if you can consume the value before effectively consuming it. As you said, a peek operation has no sense if the channel has multiple consumers. Saludos, Nahuel Greco. On Sat, Oct 4, 2014 at 9:17 PM, Leon

Re: What is the best setup to program Clojurescript IF...

2014-10-04 Thread Aleš Roubíček
LighTable is really friction less. On Thursday, October 2, 2014 9:13:14 PM UTC+2, Peter Mancini wrote: > > What is the best setup to program Clojurescript IF: > >- you hate EMACS >- use linux or windows > > Any suggestions? > -- You received this message because you are subscribed to the

Re: [ANN] rmap - define lazy, recursive maps

2014-10-04 Thread Daniel Slutsky
Wonderful! It would be interesting to compare this with the syntax choices of Prismatic's Graph: https://github.com/Prismatic/plumbing/tree/master/src/plumbing/fnk . On Sunday, October 5, 2014 6:08:59 AM UTC+3, Sunil Nandihalli wrote: > > > On Sun, Oct 5, 2014 at 1:17 AM, Mayank Jain > wrote: