Re: [clojure.spec] Best practices for programmatically generating specs?

2017-12-14 Thread Aaron Brooks
f this, so > stay tuned for that. > > > > On Wednesday, December 13, 2017 at 5:14:34 PM UTC-6, Aaron Brooks wrote: >> >> I've found in several projects that I want to have families of specs that >> have some shared structure but some differing structure. >>

[clojure.spec] Best practices for programmatically generating specs?

2017-12-13 Thread Aaron Brooks
I've found in several projects that I want to have families of specs that have some shared structure but some differing structure. Consider a case where I have some, possibly nested, structure which in some cases will have some type of place-holder values which will later be replaced with actu

Re: T-shirts?

2013-12-11 Thread Aaron Brooks
Out of curiosity, who is behind ClojureAppreciation? (i.e Who gets the ~21% markup?) If this is Rich and/or Tom, I'm more than glad to pay $37 for a t-shirt. If it's a for-profit entity (such as Cognitect), I think the price is a bit extravagant

ops' macro to tidy +', -', *', /' operations?

2010-06-23 Thread Aaron Brooks
I'm afraid I have nothing to contribute to the on-going discussions of what the default numerical behavior should be and what the prime version operations should do. I did, however, notice that the prime ops tend to be clustered together in the examples given and seem likely to be clustered in real

Re: Searching the group archives

2009-09-02 Thread Aaron Brooks
Rich, Chouser or other Clojure group admin, It may be helpful to put the search link in the currently unused welcome message section of the group "Home" page. -Aaron On Sat, Aug 29, 2009 at 3:34 PM, Daniel wrote: > > On Sun, Aug 30, 2009 at 1:54 AM, Rich Hickey wrote: >> >> While the "Searc

Re: March 20th 2009 Rich Hickey Appreciation Day!

2009-03-20 Thread Aaron Brooks
Here, here! +1 +1 +1 ... !! On Fri, Mar 20, 2009 at 2:26 PM, Rayne wrote: > > I Anthony Simpson, with the support of fellow Clojurists hereby > declare March 20th, the first day of spring, Rich Hickey appreciation > day! > > Rich Hickey has certainly done a lot for us, making this wonderful > l

Re: "08" and "09" are invalid numbers, but "01" through "07" are fine?

2009-03-15 Thread Aaron Brooks
Rather than going to the horrible effort of looking up to see if Clojure had support for binary notation, I had a Clojure prompt so I just tried it and got semi-surprising results: user=> #b010001 java.lang.Exception: No dispatch macro for: b 4097 I'm not surprised that Clojure complains of not

Re: categorizing forms

2009-03-08 Thread Aaron Brooks
Mark, I've thought about doing this in the past (partially for my own reference) but never got around to it. Thanks so much for your effort! It might be beneficial to make the function names links to the API reference. I also found it a little hard when scanning the functions to clearly

Re: 12 Days of Christmas in idiomatic(?) clojure

2008-12-29 Thread Aaron Brooks
On Dec 24, 4:20 pm, Mibu wrote: > I'd write it this way: > (apply + (mapcat #(range 1 %) (range 2 14))) > > I think idiomatically I would have written it with (partial range 1) > instead of #(range 1 %), but I prefer compact forms. In Clojure (anybody correct me if I'm wrong) I think it's prefer

Re: POLL: Domain name for project hosting site.

2008-11-17 Thread Aaron Brooks
Other options: - creatjure? - featjure? - cultjure? All three have low Google search hit counts. I think cultjure is better suited for discussion forums. Creatjure seems a good place for our Clojure creatures. On Nov 17, 2:52 pm, Drew Crampsie <[EMAIL PROTECTED]> wrote: > Hey All, > > I've f

Re: Dealing with keyword-keyed maps in Java land

2008-10-13 Thread Aaron Brooks
Having looked at Keyword.java, I'll amend my example: import clojure.lang.Keyword; x map.get(new Keyword("myns","foo")); The above may well reveal that I remember very little Java from previous lives so feel free to correct any errors. -Aaron. On Oct 13, 9:33

Re: Dealing with keyword-keyed maps in Java land

2008-10-13 Thread Aaron Brooks
All, I would think that changing or wrapping the map would create confusion and additional overhead. In my mind the most natural interaction would be to provide a way for Java code to create references to keywords: x = map.get(clojure.keyword("foo"));// ... or something along these lines

Native library calls from Clojure via JNA

2008-09-29 Thread Aaron Brooks
All, I've had success using JNA to call system libraries I thought I'd post an example snippet in case it helps someone else. The below demo requires a clojure-contrib.jar from http://sf.net/projects/clojure-contrib and a jna.jar from https://jna.dev.java.net/ (be sure it's actually, jna.jar not

Re: Clojure: self hosting and .Net port?

2008-09-25 Thread Aaron Brooks
On Sep 24, 9:37 am, soyrochus <[EMAIL PROTECTED]> wrote: > Hi all, > > I have been playing with Clojure. Impressive indeed. I´ve got two > questions. Please consider these to be idle speculation (and as such > worthy of your attention) and no "feature requests". > > First, is there any intention t

Re: "Getting Started" is NOT starting for me...

2008-09-19 Thread Aaron Brooks
Cliff, This works fine for me with Sun JDK 1.6.0.05 on Gentoo Linux. I assume this is on Windows for you? -Aaron On Sep 19, 1:25 pm, cliffc <[EMAIL PROTECTED]> wrote: > I downloaded clojure to my pc. I tried the "Getting Started" page: > >   user=> (+ 1 2 3) >   6 > > Worked great...  next