Re: [ANN] New release 0.28.1 of Counterclockwise

2014-10-04 Thread Laurent PETIT
Points taken. After rethinking about this, thanks to your feedback, it seems indeed really wrong to silently automatically override existing Java build paths. I think I will confine the automatic leiningen conversion only for projects which do not yet appear to be Java/just projects - those

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

2014-10-04 Thread Lucas Daniel
Hey Alex are you still looking for devs? Cheers! -- 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

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

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

[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 returned,

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 btguth...@gmail.com 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

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 laurent.pe...@gmail.com 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

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 loops sometimes

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 a

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 ldanielmadari...@gmail.com wrote: Hey Alex are you still looking for devs? Cheers! -- You

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-` will

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 last

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

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 grapenthinl...@gmail.com wrote: Thought: (defmacro as- [expr name forms] `(let [~name ~expr

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 firesof...@gmail.com 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

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,