Re: can't set up Clojure 1.2.1

2011-07-16 Thread Larry Travis
Thanks, Sergey. The problem was indeed a classpath problem. The part of my ignorance about Java that seems to cause me the most trouble is my ignorance about Java classpaths. I think some Clojurians underestimate the difficulties involved in learning Clojure without knowing Java first. I

Re: Tail Calls and Continuations in Clojure

2011-07-16 Thread Marek Kubica
On Fri, 15 Jul 2011 12:59:47 -0600 (MDT) Joel Dice joel.d...@gmail.com wrote: The VM in question is Avian (http://oss.readytalk.com/avian/), built with optional tail call and continuation features enabled and using the OpenJDK class library. It's not nearly as fast or sophisticated as e.g.

(doc more-examples)

2011-07-16 Thread Tuba Lambanog
Hello, More examples in how to use a form in the (doc ...) facility within REPL would be very useful to newbies. Thanks. tuba -- 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

Re: can't set up Clojure 1.2.1

2011-07-16 Thread Sergey Didenko
I've updated the wiki [1], can't update the main site page[2]. http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started#Running_Clojure http://clojure.org/getting_started -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group,

Re: How to add jar files to leiningen projects?

2011-07-16 Thread Shantanu Kumar
Done. I have pushed version 0.3 with the changes. Regards, Shantanu On Jul 15, 2:09 am, Mark Rathwell mark.rathw...@gmail.com wrote: Looks good to me ;) On Thu, Jul 14, 2011 at 4:31 PM, Shantanu Kumar kumar.shant...@gmail.comwrote: On Jul 14, 7:55 am, Mark Rathwell

26 July 2011 London Clojure Dojo

2011-07-16 Thread Bruce Durling
Fellow Clojurians! Roll up! Roll up! The sign up is up for the 26 July London Clojure Dojo. Thoughtworks are kindly hosting and sponsoring again. The sign up page is here: https://ldncljdojo.eventwax.com/july-2011-london-clojure-dojo I hope to see you there! cheers, Bruce -- You received

ANN: 3 August Incanter and Clojure talk by Ben Evans (LJC, JCP) in London

2011-07-16 Thread Bruce Durling
Fellow Clojurians, The London Clojure User Group in co-operation with the London Java Community are proud to announce a talk on Clojure and Incanter by Ben Evans on 3 August at Skillsmatter in London. The sign up is here:

Re: can't set up Clojure 1.2.1

2011-07-16 Thread Phil Hagelberg
On Fri, Jul 15, 2011 at 11:29 PM, Larry Travis tra...@cs.wisc.edu wrote: Thanks, Sergey.  The problem was indeed a classpath problem. The part of my ignorance about Java that seems to cause me the most trouble is my ignorance about Java classpaths. I think some Clojurians underestimate the

Cyclic load dependency

2011-07-16 Thread Razvan Rotaru
Hi, I'm trying to use r0man / appengine-clj, and when :use-ing the datastore namespace I get a cyclic load dependency. Doesn't clojure allow such cyclic references? (use 'appengine.datastore) Cyclic load dependency: [ /appengine/datastore/entities ]-/appengine/ datastore/query-[

Re: can't set up Clojure 1.2.1

2011-07-16 Thread Sergey Didenko
It was already mentioned recently that clojure.org looks outdated. May be we just need the main site to link to a few valuable proven community resources? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: What's the best way to test private functions?

2011-07-16 Thread Benjamin Esham
Brian Marick wrote: Benjamin Esham wrote: I am writing a library [1] which has only one function that should be exposed to users. I'd like to be able to test all of the other functions, which are marked private with defn-. Of course, these functions are inaccessible from the testing

Increasing indent level in pprint

2011-07-16 Thread Asim Jalis
Is there an easy way to increase the indent of pprint data structures from 1 to something like 2 or 4? I've been searching on Google and going through the docs and don't see anything. For example, I would like the following command to produce something closer to output 2 than to output 1.

Re: (doc more-examples)

2011-07-16 Thread Sean Corfield
On Sat, Jul 16, 2011 at 2:23 AM, Tuba Lambanog tuba.lamba...@gmail.com wrote: More examples in how to use a form in the (doc ...) facility within REPL would be very useful to newbies. Thanks. That would mean the docstrings need to provide more detail in the source code. Not sure how practical

Re: can't set up Clojure 1.2.1

2011-07-16 Thread Sean Corfield
On Fri, Jul 15, 2011 at 11:29 PM, Larry Travis tra...@cs.wisc.edu wrote: Thanks, Sergey.  The problem was indeed a classpath problem. The part of my ignorance about Java that seems to cause me the most trouble is my ignorance about Java classpaths. I think some Clojurians underestimate the

Re: Increasing indent level in pprint

2011-07-16 Thread Sean Corfield
On Sat, Jul 16, 2011 at 12:46 PM, Asim Jalis asimja...@gmail.com wrote: Is there an easy way to increase the indent of pprint data structures from 1 to something like 2 or 4? I've been searching on Google and going through the docs and don't see anything. For example, I would like the

java.lang.IllegalArgumentException: More than one matching method found: submit - when letting an ExecutorService

2011-07-16 Thread Alf Kristian Støyle
Hi guys. Experimenting a bit with code from The joy of Clojure, and I ran into a little problem. Trying to run this in the REPL gives the following error: user= (import [java.util.concurrent Executors]) java.util.concurrent.Executors user= (let [*pool* (Executors/newFixedThreadPool (+ 2

Re: FleetDB or other NoSQL store for Clojure?

2011-07-16 Thread Geoff Wilson
I’ve found the MongoDB integration to Clojure to be really good for most of what I wanted for my app. With the Congomongo driver, you very strongly tick off the first two points, but I don’t think it will go so well with your other constraints. Mongo explicitly excludes transactions

Re: Anyone on Google+ yet?

2011-07-16 Thread gyomalin
https://plus.google.com/106530605770958961477/posts -- 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.

Re: Increasing indent level in pprint

2011-07-16 Thread Asim Jalis
The position of the braces might be a red herring here. I was mostly interested in figuring out how to increase the indentation level from 1 to something larger. Even an indentation step of 2 for each level would be easier on the eye than 1. On Sat, Jul 16, 2011 at 4:23 PM, Sean Corfield

leiningen 1.6.1 not compatible with lein-nailgun 1.1.0

2011-07-16 Thread Wei
Hello, I've upgraded leiningen to 1.6.1, and found that I can't use it on my old projects. wei$ lein help Leiningen is a tool for working with Clojure projects. Several tasks are available: leiningen.classpath Problem loading: clean Remove compiled class files and jars from project.

Questions About Assoc-in, Dissoc-in, etc.

2011-07-16 Thread Asim Jalis
I've been using assoc-in and dissoc-in to navigate through nested associative structures (HTTP requests). Had some questions: 1. Why doesn't dissoc-in take multiple key-sequences? For example: (dissoc-in m [:a :b :c] [:a :b :d]) I can do this using a series of dissoc-in calls, but it might be

Re: (doc more-examples)

2011-07-16 Thread Stuart Halloway
On Sat, Jul 16, 2011 at 2:23 AM, Tuba Lambanog tuba.lamba...@gmail.com wrote: More examples in how to use a form in the (doc ...) facility within REPL would be very useful to newbies. Thanks. That would mean the docstrings need to provide more detail in the source code. Not sure how

Re: Questions About Assoc-in, Dissoc-in, etc.

2011-07-16 Thread Benny Tsai
W.r.t. item 2, would get-in be close to what you're looking for? http://clojuredocs.org/clojure_core/clojure.core/get-in -- 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

Re: Increasing indent level in pprint

2011-07-16 Thread Sean Corfield
On Sat, Jul 16, 2011 at 7:05 PM, Asim Jalis asimja...@gmail.com wrote: The position of the braces might be a red herring here. I was mostly interested in figuring out how to increase the indentation level from 1 to something larger. Even an indentation step of 2 for each level would be easier

Re: FleetDB or other NoSQL store for Clojure?

2011-07-16 Thread Michael Gorsuch
Hello - I'd like to throw in my vote for Redis. The only downside is that there is not an officially supported port on Windows. However, you may consider using a service such as Redis to Go (http://redistogo.com) and just accessing that as you need it. Best, Michael 2011/7/15 Elías Alonso

Re: Questions About Assoc-in, Dissoc-in, etc.

2011-07-16 Thread Alan Malloy
On Jul 16, 7:11 pm, Asim Jalis asimja...@gmail.com wrote: I've been using assoc-in and dissoc-in to navigate through nested associative structures (HTTP requests). Had some questions: 1. Why doesn't dissoc-in take multiple key-sequences? For example: (dissoc-in m [:a :b :c] [:a :b :d]) I

Re: can't set up Clojure 1.2.1

2011-07-16 Thread Larry Travis
Phil: You ask whether, if I had found it, the following web page would have helped: http://dev.clojure.org/display/doc/Getting+Started+with+Emacs The answer: Definitely yes. The page advises me to use for bringing up a Clojure REPL java -cp path/to/clojure.jar clojure.main whereas the page

Re: Increasing indent level in pprint

2011-07-16 Thread Asim Jalis
Okay. I see what you mean. On Jul 16, 2011, at 8:39 PM, Sean Corfield seancorfi...@gmail.com wrote: On Sat, Jul 16, 2011 at 7:05 PM, Asim Jalis asimja...@gmail.com wrote: The position of the braces might be a red herring here. I was mostly interested in figuring out how to increase the