Re: [ANN] fs - file system utilities for Clojure

2011-01-13 Thread Steve Miner
default package use being > nonexistent in the Java space. And, you may not care about Java interop now, > but either (a) you might later, or (b) your users might, now. Finally, > gen-class will simply not work (last I checked) from a single-segment > namespace. Best Regards,

Oracle and Apple announce OpenJDK support for Mac

2010-11-12 Thread Steve Miner
Apple made some news during the Clojure Conj by announcing that Java support from Apple was being deprecated. The good news today is that Oracle will deliver future updates of Java on the Mac. I think it's safe to say that the Mac remains a viable platform for Clojure development. http://www.

Re: faster flatten?

2010-07-14 Thread Steve Miner
On Jul 14, 2010, at 2:40 PM, Cam wrote: > I definitely like this version a little better. If you change the else > of the if to be just (list), it returns the empty list just as core/ > flatten does. Mind if I update the ticket with this patch? It's all yours. Really, just a slight change from

Re: faster flatten?

2010-07-14 Thread miner
I think it's worthwhile to have a faster flatten even if it doesn't look as elegant as the current implementation. You could do a bit of refactoring and save yourself a call to sequential? since the recursive calls are guaranteed to have seqs (as a result of next). Also, I'd prefer flatten to ret

Re: Variadic arguments and macros

2010-07-07 Thread miner
I think you're missing a quote in your original macro. You wrote: (defmacro foo [& xs] `(map identity ~xs)) Try this in a REPL: user=> (macroexpand-1 '(foo 1 2)) (clojure.core/map clojure.core/identity (1 2)) That shows you that it's going to try to evaluate the form (1 2). The original complai

Re: Counterclockwise version 0.0.59.RC2

2010-07-07 Thread miner
Many years of Emacs have trained me to expect evaluation of the form before the cursor. For example, with | standing for the cursor position: -- (+ 3 4)| (* 2 3) -- I expect to evaluate (+ 3 4). Often I put my cursor right after an expression just so I can execute it. Again, that's ho

Re: Counterclockwise version 0.0.59.RC2

2010-07-07 Thread miner
First, thanks for your work. I appreciate it. Now some comments: "Select top level s-expression" and "evaluate current selection or top- level s-expression" should act on the sexp in front of the cursor, especially if the cursor is at the end of an sexp. When I tried it, I was getting the next

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

2010-06-24 Thread miner
I'd call it with-auto-promotion. -- 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 unsubscribe fro

Re: Enhanced Primitive Support

2010-06-18 Thread miner
the cost. By the way, I also want to know if a library is using auto-promotion so that I can avoid it unless I really need it. And, yes, I think I'll know enough about my domain to make that decision. Steve Miner -- You received this message because you are subscribed to the Googl

contrib javalog depends on Java 6

2009-05-10 Thread miner
I'm just getting started with Clojure. I had a small issue trying to build the clojure-contrib project. I'm on an old PPC Mac with only Java 5. The javalog.clj file requires Java 6. There's an easy fix for javalog.clj. GLOBAL_LOGGER_NAME is always just "global", so you can use the literal val

Re: Clojure 1.0

2009-05-04 Thread miner
(dosync (alter congrats conj (System/getProperty "user.name"))) --~--~-~--~~~---~--~~ 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 To unsubscribe from this

<    1   2