Re: [ANN] io.aviso/config 0.1.10

2016-03-04 Thread Alan Moore
Howard, Thanks for this... very helpful! Alan On Friday, March 4, 2016 at 10:33:08 AM UTC-8, Howard M. Lewis Ship wrote: > > Library for smart and flexible system configuration > > Config works well with Stuart Sierra's Component library to create a way > to configure a system in a way that is

Re: Possible bug in clojure.set/union?

2016-03-04 Thread Matching Socks
This is an FAQ. It is such a good FAQ that "fixing" it would be a shame. It's a good FAQ because it starts with a real problem that everyone thinks they have, and it leads (if you doggedly pursue it) to a well-rounded enlightenment as to what makes Clojure interesting. -- You received this m

ClojureScript sequence implementation does not print

2016-03-04 Thread William la Forge
I've implemented sequences in Clojure with no problems. But I'm a lot weaker when it comes to clojurescript! When I create an instance of my own sequence type, CountedSequence, and try to print it, all I get is #object[durable.CountedSequence.CountedSequence] Here's the code: https://github.

Re: Clojure beginner: IF statement error!

2016-03-04 Thread Jason Felice
Comments start with a semicolon (;). On Fri, Mar 4, 2016 at 7:23 PM, Joseph Smith wrote: > Those strings are in the if form. > > --- > Joe R. Smith > j...@uwcreations.com > @solussd > > > On Mar 4, 2016, at 6:48 PM, Renata Akhm wrote: > > Hi! I've just strated coding on Clojure and tried to mov

Re: Clojure beginner: IF statement error!

2016-03-04 Thread Joseph Smith
Those strings are in the if form. --- Joe R. Smith j...@uwcreations.com @solussd > On Mar 4, 2016, at 6:48 PM, Renata Akhm wrote: > > Hi! I've just strated coding on Clojure and tried to move some of my Lisp > code to Clojure: > (defn mpow > [N M] > (if (= M 0) 1 "in case pow is

Clojure beginner: IF statement error!

2016-03-04 Thread Renata Akhm
Hi! I've just strated coding on Clojure and tried to move some of my Lisp code to Clojure: (defn mpow [N M] (if (= M 0) 1 "in case pow is 0 return 1" (do (* N (recur N (- M 1) "decrease power M each itr" ) So it just calculates power recursively. When I run it the "Too many arguments to if" e

HTTP basic auth for some pages but not all

2016-03-04 Thread Jonathon McKitrick
I'm using [ring-basic-authentication "1.0.5"] as my auth library for a quick app I need to get up and running. The only catch is I need some routes to be protected, and others public. And I'm not getting it to work with something simple like this: (cc/defroutes (cc/routes pub-routes (a

Re: Clojure as first language

2016-03-04 Thread Elango Cheran
Hi Terje, Answers in line below: The turtle graphics concept is often used as a basic teaching tool. Logo, > Scratch, etc. > It seems easy to understand for children, and is a good way to get started. > > I have some additional questions to that, though: > How long before children get tired (bore

Folks using io.aviso/pretty ... ideas for a 1.0 release?

2016-03-04 Thread Howard Lewis Ship
I'd like to do something relatively unheard of, and create a 1.0 release of io.aviso/pretty. Yes, it turns out, Leiningen will allow a number other than 0 in that first term of the dependency version. In any case, I'm very happy with the current state of io.aviso/pretty, and am curious about what

[ANN] io.aviso/config 0.1.10

2016-03-04 Thread Howard Lewis Ship
Library for smart and flexible system configuration Config works well with Stuart Sierra's Component library to create a way to configure a system in a way that is adaptable to your specific local development and deployment needs. It's seamlessly combines the Clojure ecosystem with the goals of t

Re: Possible bug in clojure.set/union?

2016-03-04 Thread Alex Miller
Hi Randy, Several functions in clojure.set allow non-set arguments and this has been an issue with a long history. There have been or are tickets like this, such as http://dev.clojure.org/jira/browse/CLJ-1682 (although this one is re intersection). This was done somewhat intentionally for perf

Possible bug in clojure.set/union?

2016-03-04 Thread Randy J. Ray
Hi, Fairly-new Clojure enthusiast here, currently using Clojure to work through projecteuler.net problems as a means of learning. While using sets on one of the PE problems, I encountered what *might* be a bug. I admit that I haven't searched the backlog of messages from this group or the issues o

Doing matrix arithmetic with complex numbers

2016-03-04 Thread Willem Price
Hi all, I am trying to use the core.matrix.complex library to do matrix multiplication and such with complex numbers, but I cannot get it to work. The library uses complex.core

Re: [ANN] CIDER 0.11 Released!

2016-03-04 Thread Timothy Washington
Congratulations and thanks to all contributors. Cider really helps my daily workflow. And Common Lispers are starting to feel the heat, from cider approaching the debugging and interactivity they're used to :) Tim On Fri, Mar 4, 2016 at 4:28 AM, Phillip Lord wrote: > > Kudos to Benedek Fazek

Re: find shorter clojure code automatically

2016-03-04 Thread Jeremy Vuillermet
Ok, kibit is definitely what I was looking for. https://github.com/jonase/kibit Just doing a lein kibit on my projects, I quickly got some interesting stuff. There are more functions that I forgot about than things I can learn so far but that's still very useful. Just for informations, I encou

Re: find shorter clojure code automatically

2016-03-04 Thread Jeremy Vuillermet
Thanks a lot for your responses. I'm checking out everything and will post further findings or comments. On Thursday, March 3, 2016 at 7:33:55 PM UTC+1, Jeremy Vuillermet wrote: > > Hello, > > Every time I go to a code base I don't know, I discover new functions from > clojure api that I was not

Re: Gettext key extraction through macro

2016-03-04 Thread Herwig Hochleitner
Back whenI implemented a solution for finding translatable strings from macros, I emitted the table from a repl. Not an optimal solution, but the project was small enough. As you want to automate, I see two solutions: 1. Write the translatable strings out to a file, line-by-line, as you encounter

Re: [ANN] CIDER 0.11 Released!

2016-03-04 Thread Phillip Lord
Kudos to Benedek Fazekas who added that feature. Raymond Huang <12ay.hu...@gmail.com> writes: > Congrats. This was a really awesome release. I really how jack-in > dynamically adds the dependencies & plugins. > > No more out of sync issues :) > > On Thu, Mar 3, 2016 at 4:05 AM Phillip Lord > w

Re: ClojureScript at its best

2016-03-04 Thread Paweł Rozynek
http://jinteki.net is most impressive for me personally as im playing the game. here is the src code: http://github.com/mtgred/netrunner/ regards PR -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google