Re: Request for Feedback: Improve VimClojure's documentation

2010-02-13 Thread Meikel Brandmeyer
Hi, ok. Let's show off some environments. I work at home on the small MacBook. Although I was first skeptical about the VimRepl I now mostly use it as Repl. I found that easy deleting of output (eg. a stacktrace) is quite nice to keep interesting things on the screen. One just has to keep the

Re: Request for Feedback: Improve VimClojure's documentation

2010-02-13 Thread Meikel Brandmeyer
Hi, Am 12.02.2010 um 14:18 schrieb Quzanti: I looked at all of them and would have liked to go with VIM as I am a VIM user. For VIM it looked like I was going to have to go though some elaborate procedure (there was a webcast for it) rather than just stuff a config file in a directory so I

Re: Which do you prefer, expressing points in {:x 0, :y 0} or [0 0]?

2010-02-13 Thread Conrad
My rule of thumb is to place items into maps if there are more than 2-3 elements- After that point, it becomes hard to read code that manipulates a raw vector without position labels. Of course I have allowances for performance-sensitive situations. On Feb 12, 10:36 pm, Hozumi

clojure-dev: #55: clojure.contrib.sql expects *err* to be a PrintWriter Ticket updated - Resolution?

2010-02-13 Thread entaroadun
In reference to this thread on the clojure-dev group: http://groups.google.com/group/clojure-dev/browse_thread/thread/369734ff42cbb06a/cc9e30534c78b6b3?lnk=gstq=sql+println#cc9e30534c78b6b3 Has there been any resolution? I'm using clojure.contrib.sql and Emacs with clojure-swank. When an error

Interest in Google Summer of Code 2010?

2010-02-13 Thread defn
Hello all, Is there any interest in GSoC 2010 for Clojure? Devin Walters -- 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

Re: How to catch exception and keep looping?

2010-02-13 Thread Konrad Kułakowski
Thanks Adrian et al. I am going to remove recur from try catch special form. (BTW: doseq is not the case since I need to modify freely the collection during looping) On the other hand I am curios whether no recur inside the try-catch special form might be adopted as a rule of thumb. It is

Re: Clojure Dev Environment

2010-02-13 Thread Carl Smotricz
La Clojure is working fine for me. The problem seems to be simply one of version numbering. If you let Idea auto-download/auto-install the plugin, chances are you'll get a plugin that specifies an Idea version number different from the one you're running. I downloaded the plugin by hand, found

First program, in case you want to give hints

2010-02-13 Thread alux
Hi, I just finished my first (very small) Clojure program. I come from Java, so it will be everything but idiomatic Clojure, so I post it here and you may give as much criticism as you want. I'm here to learn. It implements JHConway prime machine. The program does not want to be a quick prime

How to turn quick Slime workaround into a real patch?

2010-02-13 Thread Tayssir John Gabbour
Hi! Yesterday I installed Slime Clojure via ELPA. Unfortunately, the REPL had no indent support for [] and {}. So this workaround runs in a slime-repl-mode-hook: (defun set-clojure-brackets () (interactive) (set-syntax-table clojure-mode-syntax-table) (set (make-local-variable

Re: First program, in case you want to give hints

2010-02-13 Thread Sean Devlin
Alux, Welcome to Clojrue! Thanks for posting this example. At first glance I would combine power-of-two? and what-power-of-2 into one fn. Also, I would change the order you wrote the method calls in to favor the .method style (defn power-of-2 Returns log_2(n) iff n is an exact pwoer of 2.

Re: Clojure Dev Environment

2010-02-13 Thread Wilson MacGyver
With the latest intelliJ 9.0.1, la clojure now just works. It's back to click on plugins, pick la clojure, install and restart. Done. On Feb 13, 2010 10:40 AM, Carl Smotricz carl.smotr...@gmail.com wrote: La Clojure is working fine for me. The problem seems to be simply one of version numbering.

Re: clojure-dev: #55: clojure.contrib.sql expects *err* to be a PrintWriter Ticket updated - Resolution?

2010-02-13 Thread Richard Newman
The above thread suggests defining *err* as a PrintWriter instead of as a Writer. Has this been patched, and is it official? If so, I'll patch clojure-swank to use PrintWriter. If not, I'll patch clojure.contrib.sql to not use println. I patched swank-clojure: diff --git

Idea for operations on mixed data structures of maps and sequences

2010-02-13 Thread Brent Millare
Recently, I've been taking advantage of the rich API for manipulating clojure's builtin data structures such as Maps and Vectors. In a small example, I have different user settings stored as maps and I can easily merge them using the function merge. As I've developed the application further,

Re: How to turn quick Slime workaround into a real patch?

2010-02-13 Thread Brent Millare
I think Phil is writing a guide about how he wants others to send him patches but I think I can still provide some hints. First, I think this belongs in swank-clojure.el its the only place where the context of a clojure repl comes up. Phil prefers pull requests so fork swank- clojure (I only know

Re: Clojure Dev Environment

2010-02-13 Thread Steven E. Harris
Wilson MacGyver wmacgy...@gmail.com writes: With the latest intelliJ 9.0.1, la clojure now just works. On /one/ of my computers running Windows XP, I find that the REPL doesn't start properly. Tracing IDEA and Java through Process Monitor, it looks as though Java's attempt to open clojure.jar

Re: clojure-dev: #55: clojure.contrib.sql expects *err* to be a PrintWriter Ticket updated - Resolution?

2010-02-13 Thread Steve Purcell
On 13 Feb 2010, at 19:03, Richard Newman wrote: The above thread suggests defining *err* as a PrintWriter instead of as a Writer. Has this been patched, and is it official? If so, I'll patch clojure-swank to use PrintWriter. If not, I'll patch clojure.contrib.sql to not use println. I

[ANN] clj-peg 0.7 (switch to EPL)

2010-02-13 Thread Richard Lyman
All, I've switched the clj-peg library to be under the EPL. This project adds support in Clojure for Parsing Expression Grammarshttp://en.wikipedia.org/wiki/Parsing_expression_grammar. In addition to the basic operators I've added tracking AST branches, referring to tracked branches, gathering

My first Clojure try-out

2010-02-13 Thread Joop Kiefte
I thought it would be nice to share my first Clojure-code. http://github.com/LaPingvino/Calculator-with-Parens/blob/master/src/calculator.clj -- Communication is essential. So we need decent tools when communication is lacking, when language capability is hard to acquire... -

Re: [ANN] clj-peg 0.7 (switch to EPL)

2010-02-13 Thread Richard Lyman
On Sat, Feb 13, 2010 at 5:33 PM, Brendan Ribera brendan.rib...@gmail.comwrote: Cool! I'll probably make use of this soon. Any plans to get it set up on github for contributions? No plans right now. I'm open to the idea, but I'd like to see what it's like to work with contributions in the

Re: Idea for operations on mixed data structures of maps and sequences

2010-02-13 Thread David Nolen
On Sat, Feb 13, 2010 at 2:46 PM, Brent Millare brent.mill...@gmail.comwrote: I'm interested in your thoughts, criticisms and improvements. I feel like this seemed like a place for monads given all the packaging, function passing, partial functions, and threading but trying to understand

ClojureCLR under slime / emacs?

2010-02-13 Thread Mike K
Does anyone have ClojureCLR running under emacs via slime? Failing that, can anyone give me some pointers as to how I might hacking swank-clojure.el (or whatever) to get this to work? Mike -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

deftype comment

2010-02-13 Thread Mark Engelberg
I was doing some experimenting with deftypes this evening. I understand that you need to specify clojure.lang.IPersistentMap as an interface in order to make your type behave like a general-purpose map (supporting assoc, dissoc, etc.). After playing around, I think it would be ideal that if you

A couple of namespace questions

2010-02-13 Thread Mike Meyer
I've got two questions about namespaces; one is pretty clojure-specific, the other possibly more related to java's classpath stuff. First, is there either a way to use names that exist in clojure.core? I.e., if wanted variable called map, can I get it somehow? If not, is there an idiom for such

Re: A couple of namespace questions

2010-02-13 Thread Michał Marczyk
On 14 February 2010 08:09, Mike Meyer mwm-keyword-googlegroups.620...@mired.org wrote: First, is there either a way to use names that exist in clojure.core? I.e., if wanted variable called map, can I get it somehow? If not, is there an idiom for such names, akin to Python's use of a postfix _

Re: deftype comment

2010-02-13 Thread Brendan Ribera
You should be able to do (assoc p :x 3), you should get back #:Posn{:x 1, :y 2} You meant that you get back #:Posn{:x 3, :y 2}, right? Sounds reasonable to me. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: deftype comment

2010-02-13 Thread Mark Engelberg
Yes, that's what I meant :) . On Sat, Feb 13, 2010 at 11:27 PM, Brendan Ribera brendan.rib...@gmail.com wrote: You should be able to do (assoc p :x 3), you should get back #:Posn{:x 1, :y 2} You meant that you get back #:Posn{:x 3, :y 2}, right? Sounds reasonable to me. -- You received