[ANN] manners 0.2.0 released

2013-11-27 Thread Ryan McGowan
A validation library built on using predicates properly. I just released a new version of my take on a simple, general purpose validation library. Version 0.2.0 includes a chaining feature very much like (and inspired by) the chain function in vlad, another val

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Mimmo Cosenza
in the mean time you can clone the repo, cd into it and lein install # from the terminal mimmo On Nov 27, 2013, at 8:00 AM, Deniz Kurucu wrote: > Ah yes, sorry it is not on clojars yet. Wanted some feedback before pushing > it there :) > > > On Wed, Nov 27, 2013 at 2:26 AM, Plinio Balduino

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Deniz Kurucu
Thanks! On Wed, Nov 27, 2013 at 10:31 AM, Mimmo Cosenza wrote: > in the mean time you can clone the repo, cd into it and > > lein install # from the terminal > > mimmo > > On Nov 27, 2013, at 8:00 AM, Deniz Kurucu wrote: > > Ah yes, sorry it is not on clojars yet. Wanted some feedback before >

Re: Working with zippers and trees

2013-11-27 Thread Martin Clausen
Ah, sorry. You could use a map-tree instead. It is a bit more verbose, but I believe it does what you want. (defn map-tree [root] (z/zipper map? #(seq (:cs %)) (fn [node children] (assoc node :cs (and children (apply vector children roo

Releasing Static Prime: A static website editor and server written in Clojure and ClojureScript.

2013-11-27 Thread Kelker Ryan
Static PrimeA static website editor and server written in Clojure and ClojureScript. Visual Documentation Supportsin browser mouse only layout arrangementdynamic template loading for static filesstatic site indexmultiple adminshtml and markdown editingwrite, edit, delete pages -- -- You receiv

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-11-27 Thread Magnar Sveen
I think it would be best if the author chimed in, but it looks like there has been done some good work on optimizing the development workflow when you're working with languages that need to be transpiled. There isn't much front-end optimization, but looks like it's on the todo-list. There's also

To refer an auto-gensymed symbol in an internal unquoted expression?

2013-11-27 Thread Yoshinori Kohyama
Hello clojurians. Someone, please teach me how I can refer an auto-gensymed symbol of an external syntax-quoted expression from an internal unquoted expression? A simplified example: user=> ((fn [d] `(fn [a#] ~(if d `(drop ~d a#) `a#))) 3) (clojure.core/fn [a__**__auto__] (clojure.core/drop

Re: To refer an auto-gensymed symbol in an internal unquoted expression?

2013-11-27 Thread Meikel Brandmeyer (kotarak)
Hi, you want gensym directly: (fn [d] (let [a gensym("a")] `(fn [~a] ~(if d `(drop ~d ~a) a Kind regards Meikel -- -- 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 fr

Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-27 Thread test Comptetest
On Monday, November 25, 2013 7:59:00 PM UTC+1, Magomimmo wrote: > what are: > > > - you operating system > - java virtual machine (java -version # from the terminal) > - leiningen version (lein version # from the terminal) > > > Have you tried to create a project with others lein-template? e.g.

Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-27 Thread mynomoto
Then the solution should be the same. As Magomimmo wrote: you need to upgrade to leiningen >= 2.2.0 lein upgrade # from the terminal On Wednesday, November 27, 2013 8:40:24 AM UTC-2, bernardH wrote: > > On Monday, November 25, 2013 7:59:00 PM UTC+1, Magomimmo wrote: > > what are: > > > >

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread James Reeves
It'll be easier to get feedback if you push it to Clojars. I want to try it out, but not enough to clone the repo and manually install it. Since it's only version 0.1.0, it's not as if it's expected to be flawless. - James On 27 November 2013 07:00, Deniz Kurucu wrote: > Ah yes, sorry it is n

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-11-27 Thread Stefan Kamphausen
On Wednesday, November 27, 2013 11:11:27 AM UTC+1, Magnar Sveen wrote: > > I think it would be best if the author chimed in, > me too > but it looks like there has been done some good work on optimizing the > development workflow when you're working with languages that need to be > transpil

Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-27 Thread Mimmo Cosenza
confirm. mimmo On Nov 27, 2013, at 11:56 AM, mynomoto wrote: > Then the solution should be the same. > > As Magomimmo wrote: > > you need to upgrade to leiningen >= 2.2.0 > > lein upgrade # from the terminal > > > > On Wednesday, November 27, 2013 8:40:24 AM UTC-2, bernardH wrote: > On Mo

Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-27 Thread Mimmo Cosenza
I should submit an issue to lein, because even if I set the min-lein-version to 2.2.0 in the project.clj the eerro message you receive when you run from a lein version < 2.2.0 is misleading. mimmo On Nov 27, 2013, at 11:56 AM, mynomoto wrote: > Then the solution should be the same. > > As Ma

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Mimmo Cosenza
Deniz, you need to install gpg to be able to push a release to clojars. here is the lein documentation When deploying a release that's not a snapshot, Leiningen will attempt to sign it using GPG to prove your authorship of the release. See the deploy guide. for details of how to set that up. T

Re: To refer an auto-gensymed symbol in an internal unquoted expression?

2013-11-27 Thread Yoshinori Kohyama
Meikel, I see! Thanks a lot. Best regards, Yoshinori Kohyama -- -- 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 yo

Re: Working with zippers and trees

2013-11-27 Thread dabd
Your map-tree is exactly like an xml-zip. The problem I find with it is that now branch? also returns true for leaf nodes: (def m (map-tree {:v 1 :cs [{:v 2} {:v 3 :cs [{:v 4} {:v 5}]}]})) > (-> m z/down) [{:v 2} {:l [], :pnodes [{:v 1, :cs [{:v 2} {:v 3, :cs [{:v 4} {:v 5}]}]}], :ppath nil, :r

Re: ClojureCLR 1.5.1 compiler problem

2013-11-27 Thread Brian Barnes
> > It worked fine for me as well for a long time. Then I started playing with >> the vsClojure extension, and added a build task extension to compile >> projects internally without using Clojure.Compile.exe (for better control) >> that consists of code almost identical to the code in the 'main

Breaking out of doseq

2013-11-27 Thread Jonathon McKitrick
I'm iterating a map (regex -> function) and I'd like to call FUNCTION with the result of re-groups after a match for REGEX is found. I also want to exit the sequence, returning the results of FUNCTION. In common lisp, I would use return-from, but how would this be done in clojure? -- -- You

Re: Breaking out of doseq

2013-11-27 Thread Ambrose Bonnaire-Sergeant
Hi Jonathon, I'm not sure I fully understand what you're after, but I suspect reduce + reduced would be helpful. (reduce (fn [a c] (reduced 'foo)) [] [1 2 3]) ;=> 'foo As far as I'm aware you can't exit a doseq early. (Actually I guess you could use a mutable reference as the argument to :while,

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Deniz Kurucu
Thanks, will check docs and will push to clojars. On Wed, Nov 27, 2013 at 2:20 PM, Mimmo Cosenza wrote: > Deniz, > you need to install gpg to be able to push a release to clojars. > > here is the lein documentation > > When deploying a release that's not a snapshot, Leiningen will attempt to > s

Re: Breaking out of doseq

2013-11-27 Thread Jay Fields
I'm not sure doseq is what you want.. I'd probably just use loop recur. On Wed, Nov 27, 2013 at 9:43 AM, Jonathon McKitrick wrote: > To clarify what I'm trying to do, I have a map of regexes, and after > iterating them, when one matches (the order of the regexes is significant) I > want exactly o

Re: Breaking out of doseq

2013-11-27 Thread Jonathon McKitrick
Ah, maybe recursion is the answer! On Wednesday, November 27, 2013 9:26:21 AM UTC-5, Jonathon McKitrick wrote: > > I'm iterating a map (regex -> function) and I'd like to call FUNCTION with > the result of re-groups after a match for REGEX is found. I also want to > exit the sequence, returning

Re: Breaking out of doseq

2013-11-27 Thread Jonathon McKitrick
To clarify what I'm trying to do, I have a map of regexes, and after iterating them, when one matches (the order of the regexes is significant) I want exactly one result returned by applying the looked up function to the string. After that regex matches, no more matches should be attempted. Wh

Re: Breaking out of doseq

2013-11-27 Thread Ambrose Bonnaire-Sergeant
reduced wraps a value in such a way that it stops the current reduce and returns a value. You might want `some` in this case. (let [matched (some matches? regexes)] ...) http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/some Also filter + first has a similar effect. Thanks,

Re: Breaking out of doseq

2013-11-27 Thread Michael Klishin
2013/11/27 Jonathon McKitrick > To clarify what I'm trying to do, I have a map of regexes, and after > iterating them, when one matches (the order of the regexes is significant) > I want exactly one result returned by applying the looked up function to > the string. After that regex matches, no

Re: Breaking out of doseq

2013-11-27 Thread Phillip Lord
I think you want to use "some" instead -- you need a list of regexps anyway given that, as you say, the order is significant. Some can return the first match that hits. doseq is not good for this anyway, since doseq doesn't return anything. Phil Jonathon McKitrick writes: > To clarify what I'

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Mimmo Cosenza
Great. And remember to add it to the plugins directory as suggested by Phil. During the wend I'll try to use it in my now project for the same reason you created it (i.e. to automagically run the unit tests when an emitted js file changes) and I'll let you know about my experience with it. It co

Re: Working with zippers and trees

2013-11-27 Thread Martin Clausen
You are right, but why is this a problem? The zipper works as intended and if you need to detect leaf nodes, that kan be done by checking for the presence of a non-empty value of the children key. On Wed, Nov 27, 2013 at 2:18 PM, dabd wrote: > Your map-tree is exactly like an xml-zip. > The probl

Re: Working with zippers and trees

2013-11-27 Thread dabd
Shouldn't be a practical problem just wondering if it's correct given the zipper definition requirements. On Wednesday, November 27, 2013 3:40:36 PM UTC, martin_clausen wrote: > > You are right, but why is this a problem? The zipper works as intended > and if you need to detect leaf nodes, that

Re: [ANN] Overtone 0.9.0 Released

2013-11-27 Thread Cedric Greevey
Ah, good. In the past I've been curious, but what little documentation I found seemed to imply* that there were a number of dependencies that sounded like external libraries or applications that were needed, and which (being not Java/Clojure components themselves) would not be installed automatical

Obtain name of interface from java file, regex + slurp doesn't works

2013-11-27 Thread Simone Mosciatti
Hi all, I am trying to parse some java source file that contain the definition of an interface, what I need is to get the name of the interface, what methods it defines and what other interfaces it extend. I used a regex (there is any clever way other than analyze the source ?) that works pret

Re: Breaking out of doseq

2013-11-27 Thread Cedric Greevey
What about (first (filter identity (map (fn [[rx f]] (if (matches? rx input) (f input))) regexes))), where regexes is something like [[regex1 f1] [regex2 f2] ...] and input is some string. As long as none of the fs returns nil, this should work, using lazy sequence behavior to stop at the first mat

Re: [ANN] Overtone 0.9.0 Released

2013-11-27 Thread Samuel Aaron
Hi Cedric, if you're interested in installing Overtone and understanding its dependencies, I highly recommend you take a look at the installation instructions on our Wiki: https://github.com/overtone/overtone/wiki/Installing-overtone If anything isn't clear or obvious - please do let me know.

Re: [ANN] Overtone 0.9.0 Released

2013-11-27 Thread Mark Engelberg
One point of confusion for me when installing overtone was that the docs say that the internal server "doesn't work everywhere", without providing any info about what systems it is known to work on or known not to work on. A second point of confusion is that I can't determine from the docs what's

Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-27 Thread test Comptetest
Indeed, with a fresh lein it now works. Thanks again, I'll be sure to use it with my students ! Cheers, B. -- -- 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 me

Re: Releasing Static Prime: A static website editor and server written in Clojure and ClojureScript.

2013-11-27 Thread Kelker Ryan
There's now a video demo of this project at www.dailymotion.com/video/x17pggk_high-resolution-static-prime-a-static-website-editor-and-server-written-in-clojure-and-clojurescrip_tech  27.11.2013, 18:50, "Kelker Ryan" :Static PrimeA static website editor and server written in Clojure and ClojureScri

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Plínio Balduino
Hi, Deniz I cloned the repo and installed locally to use with my code that count the size of and article and it was very useful. Thanks for your contribution and congratulations for your work. Plinio Balduino > On 27/11/2013, at 05:00, Deniz Kurucu wrote: > > Ah yes, sorry it is not on clo

Re: 2013 State of Clojure & ClojureScript survey results

2013-11-27 Thread Brian Craft
I at least partly agree with most of the replies here. Yes, interop counts for something, and I arguably should have started there, but it's orthogonal to the question of how solid clojure libraries are, on average. You might choose not to write a library because it adds nothing beyond what int

Re: 2013 State of Clojure & ClojureScript survey results

2013-11-27 Thread David Nolen
On Wed, Nov 27, 2013 at 1:41 PM, Brian Craft wrote: > have pointed out, the host is inconsistent, so "use interop" is not a > complete solution. Interop is a poor excuse for writing poor libraries. For > comparison, consider that javascript library authors manage to deliver a > consistent API acr

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Deniz Kurucu
Hi, I'm glad it was useful for you, if you notice any bugs please let me know. Thanks. On Wed, Nov 27, 2013 at 8:17 PM, Plínio Balduino wrote: > Hi, Deniz > > I cloned the repo and installed locally to use with my code that count the > size of and article and it was very useful. > > Thanks for

Re: [ANN] Optimus - a Ring middleware for frontend performance optimization.

2013-11-27 Thread Magnar Sveen
On Wednesday, November 27, 2013 1:08:34 PM UTC+1, Stefan Kamphausen wrote: > Howard has quite some experience with this and I'd expect he put a great > deal of that into the new library. :-) > Indeed. There's certainly a lot of care that's been put into the features that are in Twixt now. :

Re: [ANN] Overtone 0.9.0 Released

2013-11-27 Thread Cedric Greevey
Uh ... so it *does* require something to be installed separately, or it *doesn't*? Make up your mind. :) On Wed, Nov 27, 2013 at 1:00 PM, Mark Engelberg wrote: > One point of confusion for me when installing overtone was that the docs > say that the internal server "doesn't work everywhere", wit

Re: [ANN] Yesql 0.2.1 - Clojure & SQL queries rethought.

2013-11-27 Thread Kris Jenkins
Hi Paul, Good catch. The call to lazy-seq was a bit of a hangover from an earlier implementation. I've just pushed v0.2.2 to clojars to fix. Thanks for flagging it up. Cheers, Kris On Saturday, 23 November 2013 01:02:08 UTC, Paul Samways wrote: > > (premature send, sorry) > > For example: > >

Re: [ANN] manners 0.2.0 released

2013-11-27 Thread Craig
Looks interesting. I've come to Clojure from Java, and validation of arbitrary data is important for my applications. Thanks for the contribution. On Wednesday, November 27, 2013 7:15:43 PM UTC+11, Ryan McGowan wrote: > > A validation library built on using predicates properly. > > I just relea

Re: How to store the results in a vector ?

2013-11-27 Thread sindhu hosamane
Hello Tried using ??- and ??<- It didn't work . I still get an error IllegalArgumentException Parameter declaration let should be a vector clojure.core/assert-valid-fdecl (core.clj:6732) my output looks like Warning Warning Warning Sequence Hold Warning S

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Deniz Kurucu
Hi, Just pushed fsrun to clojars : [fsrun "0.1.1"] Thanks, for looking. On Wed, Nov 27, 2013 at 8:58 PM, Deniz Kurucu wrote: > Hi, > > I'm glad it was useful for you, if you notice any bugs please let me know. > > Thanks. > > > On Wed, Nov 27, 2013 at 8:17 PM, Plínio Balduino wrote: > >> Hi

Re: How to store the results in a vector ?

2013-11-27 Thread James Reeves
Hi Sindhu Let's start from the beginning. You have some source of data. I'll simulate this with a vector: (def info [["Warning" "Something went wrong"] ["Status" "Error"] ["Sequence Hold" "Holding"]]) No doubt your actual data looks quite different, but bear with me. Nex

Re: .cljrc

2013-11-27 Thread Dave Tenny
Thanks, I seem to have accomplished what I need for now. It was a bit frustrating to figure out exactly what I could do in profiles.clj. For example, I can't find any documentation on :injections, which was key to evaluating some code once I'd specified libraries as dependencies. Where are the f

Re: To refer an auto-gensymed symbol in an internal unquoted expression?

2013-11-27 Thread Yoshinori Kohyama
Meikel and people seeing this topic, Meikels' works fine with fix of a typo: gensym("a") -> (gensym "a") Code below to make it easier to distinguish a gensymed symbol from its var name. user=> ((fn [d] (let [a (gensym "foo")] `(fn [~a] ~(if d `(drop ~d ~a) a 3) (clojure.core/fn [foo20] (c

how to convert LISP to Java class

2013-11-27 Thread Shabbir Ahamed
Dear All, I am trying to transfer data from one database to the other and in between I am using a LISP file which has to be converted to a Java Class. I want to know is there any implementation in Clojure that does the logic for me. If any please e-mail me at shabbu4j...@gmail.com Thanks & Reg

Re: CloudFormation template generation with Clojure

2013-11-27 Thread Marshall Brekka
I recently wrote a CF template building tool for my company. its part of a larger project that we want to eventually open source, but the CF template stuff is small enough that I can put most of it into a gist. https://gist.github.com/marshallbrekka/7686151 This was basically copied and pasted f

Re: CloudFormation template generation with Clojure

2013-11-27 Thread Kevin Bell
Cool, thanks Marshall! I do think it would be nice to have an option to more or less compile/decompile between Clojure and CloudFormation templates. That would help lower the barrier to entry for people currently heavily using CF but not so much Clojure. (I'm kind of trying to use this project

Re: how to convert LISP to Java class

2013-11-27 Thread Mars0i
Shabbir Ahamed, People here can be very helpful. However, I don't think that you have described your problem in enough detail for anyone to know how to answer. Why is there a Lisp file in the middle of the process? What's in it? What dialect of Lisp is it in? Why does it need to be convert

Re: how to convert LISP to Java class

2013-11-27 Thread Gary Verhaegen
Clojure is a separate dialect of LISP that happens to run on the JVM. It is not a tool to magically turn existing LISP dialects into Java. That said, manually converting from Scheme or Common Lisp to Clojure could be relatively easy, if the LISP code is small. Clojure does not emit Java code, thou