Re: question on clojure library coding standards

2010-08-17 Thread Steve Molitor
Different topic, but are you talking about fields in a record defined via defrecord? I thought those fields were not hidden (i.e. 'public'). Encapsulation of information is folly as it says here: http://clojure.org/datatypes. I agree with your point. Maybe a wee bit of encapsulation of

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-17 Thread Steve Molitor
This is great, thanks! Fuzzy completion (ac-source-slime-fuzzy) isn't working for me. It complains that slime-fuzzy-comp On Sat, Aug 14, 2010 at 5:19 AM, Steve Purcell st...@sanityinc.com wrote: Hi all, A while ago I hooked Slime's completion and documentation features into the popular

Re: ANN: Emacs auto-complete plugin for slime users

2010-08-17 Thread Steve Molitor
-completions. Not sure if there's a newer version of slime.el out there but I did install fresh about a week or two ago. Not to worry; I'm very happy with ac-source-slime-simple. Steve On Tue, Aug 17, 2010 at 3:17 PM, Steve Molitor stevemoli...@gmail.comwrote: This is great, thanks! Fuzzy

Re: Records can't be treated as functions anymore

2010-08-05 Thread Steve Molitor
Maybe Im just getting stuck on semantics, but I'm confused. If maps are collections, and records function as maps, aren't records also collections? Steve On Thu, Aug 5, 2010 at 8:52 AM, Stuart Halloway stuart.hallo...@gmail.comwrote: If records implemented IFn, you could treat them as

Command line debugging

2010-07-16 Thread Steve Molitor
Sorry if this has already been answered, but what's the best recipe for getting a command line debugger going with clojure 1.2 snapshots? I've read about debug-repl and other solutions but I'm not sure what works with 1.2. Thanks, Steve -- You received this message because you are subscribed

Re: Let's respect CLOJURE_HOME

2010-06-30 Thread Steve Molitor
JRuby uses JRUBY_HOME, which contains jruby.jar, a few other other essential jars and gems, and any locally installed gems. (Gems are ruby's packaging mechanism.) It also includes a jruby (jruby.bat on windows) executable script. This script parses command line args, sets up the classpath using

Re: Let's respect CLOJURE_HOME

2010-06-30 Thread Steve Molitor
the true launcher will always be the java JVM executable, and I'm not sure this is something we should really try and hide. I think it should be hidden, at least for newbies. Maven hides it - I invoke 'mvn' and have no idea how it invokes java. I don't know what jars it puts in the classpath,

Re: the joys of lisp

2010-06-29 Thread Steve Molitor
The Python approach leads to more readable code: http://www.mired.org/home/mwm/papers/readability.html The two cases he sites do not apply to Clojure: The first case is a function that is allowed to change the value of a variable passed into it. Variables are immutable in Clojure so you can't

Re: the joys of lisp

2010-06-29 Thread Steve Molitor
hidden side effects in general. If you care about readability you should appreciate a language restricts mutability - call it 'the functional(ish) way'. Steve Steve Molitor stevemoli...@gmail.com wrote: The Python approach leads to more readable code: http://www.mired.org/home/mwm/papers

Weird problem with lazy seqs and throwing exceptions

2010-06-24 Thread Steve Molitor
I'm having trouble throwing an exception with the error message I want from a list of error codes. Here's a simple example of the problem: (def messages (map #(str %) [1 2 3])) (println messages) (throw (java.lang.Exception. (str Whoops: messages))) The println prints the messages just fine -

Re: Weird problem with lazy seqs and throwing exceptions

2010-06-24 Thread Steve Molitor
That did the trick, thanks. Steve On Thu, Jun 24, 2010 at 9:43 AM, Meikel Brandmeyer m...@kotka.de wrote: Hi, On Jun 24, 6:34 am, Steve Molitor stevemoli...@gmail.com wrote: user= (throw (java.lang.Exception. (str Whoops: messages))) java.lang.Exception: Whoops: clojure.lang.lazy

Re: Hiring again - need 3 devs before fall 2010

2010-06-24 Thread Steve Molitor
Tim, I just sent my resume to j...@sonian.net. Thanks! Steve Molitor On Wed, Jun 23, 2010 at 12:02 PM, Tim Dysinger t...@dysinger.net wrote: Sorry I didn't provide enough detail on that last post. Please send your interest to jobs on sonian.net with clojure in the subject. On Wed, Jun 23

Re: Why does clojure-http stores cookies in a ref instead of an atom

2010-06-16 Thread Steve Molitor
easy to use. Also I've learned a lot by looking at the code, which is clear and well written. Steve On Mon, Jun 14, 2010 at 4:56 PM, Phil Hagelberg p...@hagelb.org wrote: On Fri, Jun 11, 2010 at 8:45 AM, Steve Molitor stevemoli...@gmail.com wrote: I'm a clojure newbie trying to understand

Re: review the clojure.string code

2010-06-03 Thread Steve Molitor
How about: pper-case-uay ower-case-ay eft-trim-lay ight-trim-lay and so on... Steve On Wed, Jun 2, 2010 at 10:49 AM, Tom Hickey thic...@gmail.com wrote: Including a space is correct when changing a string to upper case (hence Java's toUpperCase), though no space would be fine

Re: review the clojure.string code

2010-06-03 Thread Steve Molitor
Whoops should have said: upper-case-ay ower-case-lay eft-trim-lay ight-trim-ray Or something like that. Steve On Thu, Jun 3, 2010 at 9:16 AM, Steve Molitor stevemoli...@gmail.comwrote: How about: pper-case-uay ower-case-ay eft-trim-lay ight-trim-lay and so

Re: Emacs - Problem with running tests (yes I installed with ELPA)

2010-06-02 Thread Steve Molitor
) would work? On Tue, Jun 1, 2010 at 11:00 PM, Paul Hobbs paul_ho...@hmc.edu wrote: I have a similar issue whenever I try to print anything from slime. -- Paul Hobbs On Mon, May 31, 2010 at 11:41 PM, Steve Molitor stevemoli...@gmail.com wrote: When I run clojure-test-run-tests

Emacs - Problem with running tests (yes I installed with ELPA)

2010-06-01 Thread Steve Molitor
When I run clojure-test-run-tests I can't see the intermediate test output. Messages like the following flash by as the tests run: error in process filter: Elisp destructure-case failed: (:write- string Testing my-stuff)) I do see the final message: Ran 3 test. 0 failures, 0 errors. If