Re: labrepl incanter IntelliJ Ubuntu 64-bit X11 error

2011-04-10 Thread peterg
OK that's nice and clear. Thanks for your help --PG On Apr 11, 1:31 pm, Aaron Bedra wrote: > I'm on Ubuntu 10.10 64.  I use it as my daily development environment.   > I just installed IntelliJ community edition 10 and checked out labrepl.   > I used the maven browser and selected the clojur

Re: Clojures macro system is essentially hygienic -- In the good sense.

2011-04-10 Thread Konrad Hinsen
On 11 Apr 2011, at 03:50, George Rogers wrote: ;;2) Shadowing a macro does not change macros that depend on it. (defmacro foobar [x] `(let [a# ~x] (+ a# a#))) (defmacro let [] `(guik.evil/let*)) (foobar 10) ;=> 20 That's due to namespaces, which indeed solve many of the "hygiene" probl

Re: Contrib.Logging enhancements: set-log-level!, spy for lazy sequences

2011-04-10 Thread Aaron Bedra
Just a reminder that logging has moved to it's own repository in the clojure space. It can be found at http://github.com/clojure/tools.logging and is where all future development of the library should exist. If you would like to submit patches for logging, please do so against the new proje

Re: labrepl incanter IntelliJ Ubuntu 64-bit X11 error

2011-04-10 Thread Aaron Bedra
I'm on Ubuntu 10.10 64. I use it as my daily development environment. I just installed IntelliJ community edition 10 and checked out labrepl. I used the maven browser and selected the clojure:repl task and everything worked successfully. You can still try out Clojure though labrepl using an

Contrib.Logging enhancements: set-log-level!, spy for lazy sequences

2011-04-10 Thread Paul Legato
Hi, I'd like to suggest two enhancements to clojure-contrib.logging: 1) There should be an easy way to set the current log level threshold (DEBUG, WARN, etc.) I've written two set-log-level! functions which do this, at http://www.paullegato.com/blog/setting-clojure-log-level/ . I'm not sure why

labrepl incanter IntelliJ Ubuntu 64-bit X11 error

2011-04-10 Thread peterg
Has anyone got the current labrepl/IntelliJ configuration running on Ubuntu 64-bit? I get the following error when trying to run the first incanter graph exercise: user=> (def words (read-lines "data/words")) #'user/words user=> (count words) user=> 234936 user=> user=> (use '[incanter core chart

Clojures macro system is essentially hygienic -- In the good sense.

2011-04-10 Thread George Rogers
(ns guik.evil) ;;1) Special forms cannot be shadowed (defmacro let* [] (+ 1 1)) ;; (let*) ; would yield ;=> clojure.lang.Compiler$CompilerException: java.lang.IllegalArgumentException: Bad binding form, expected vector (evil.clj:6) ;;2) Shadowing a macro does not change macros that depend on it.

Re: refer-clojure does not prevent namespace conflicts

2011-04-10 Thread Meikel Brandmeyer
Hi, Am 10.04.2011 um 14:37 schrieb limux: > java.lang.IllegalStateException: distinct already refers to: > #'clojureql.core/distinct in namespace: myoa.core (core.clj:1). but in > clojureql/core.clj has already (:refer-clojure > :exclude [take drop sort distinct conj! disj! compile case]). Wha

Re: Announcement: pretzel - a predicate library + call for suggestions

2011-04-10 Thread Ken Wesson
On Sun, Apr 10, 2011 at 1:37 PM, James Reeves wrote: > By adding error messages to predicates, we tightly couple the > validation error with the predicate, which in general is considered > bad. However, this might be a valid compromise, but only if it > improves readability. I showed two posts ag

Re: Announcement: pretzel - a predicate library + call for suggestions

2011-04-10 Thread James Reeves
On 10 April 2011 12:33, Ken Wesson wrote: > I thought you were the one who wanted the strings moved out to a data > structure that could be swapped with localized versions? :) Not really. I just want the error messages to be independent of the predicates. In essence, I'm looking for a solution w

Re: refer-clojure does not prevent namespace conflicts

2011-04-10 Thread Stuart Halloway
Odds are your namespace conflict is not in your core.clj, but in somebody who uses core.clj, e.g. the REPL. Stu Clojure/core http://clojure.com > I use compojure, hiccup and clojureql to study web development, in my > myoa project's core.clj, require clojureql with cause > java.lang.IllegalStat

Re: Announcement: pretzel - a predicate library + call for suggestions

2011-04-10 Thread Ken Wesson
On Sun, Apr 10, 2011 at 11:42 AM, James Reeves wrote: > On 10 April 2011 09:49, Ken Wesson wrote: >> (def age-invalid-en >>  {:low "age must be at least 1" >>   :high "nobody is THAT old!" >>   :blank "age is required" >>   :non-integer "age must be a whole number"}) >> >> (def qty-invalid-en >>

Re: Announcement: pretzel - a predicate library + call for suggestions

2011-04-10 Thread James Reeves
On 10 April 2011 09:49, Ken Wesson wrote: > (def age-invalid-en >  {:low "age must be at least 1" >   :high "nobody is THAT old!" >   :blank "age is required" >   :non-integer "age must be a whole number"}) > > (def qty-invalid-en >  {:low "quantity must be at least 1" >   :high "maximum 10 per cu

Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-10 Thread David Nolen
On Sun, Apr 10, 2011 at 6:11 AM, faenvie wrote: > very interesting stuff. i will follow this with pleasure ... > > to get into it, a basic tutorial that focuses on solving > one or two classical problems using logos would > probably be a winner. Thanks. A tutorial is definitely planned. David

Re: clj3D, a Clojure 3D Library

2011-04-10 Thread Alfredo
The second screencast is out! http://www.youtube.com/watch?v=Xg2gZpWU6AE Enjoy! Alfredo -- 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 - p

Re: Announcement: pretzel - a predicate library + call for suggestions

2011-04-10 Thread Ken Wesson
On Sat, Apr 9, 2011 at 10:12 PM, James Reeves wrote: > On 9 April 2011 10:07, Ken Wesson wrote: >>> That particular example ties a predicate to a particular error >>> message. Error messages should be independent of predicates, otherwise >>> they can't be localized or changed to fit a specific si

refer-clojure does not prevent namespace conflicts

2011-04-10 Thread limux
I use compojure, hiccup and clojureql to study web development, in my myoa project's core.clj, require clojureql with cause java.lang.IllegalStateException: distinct already refers to: #'clojureql.core/distinct in namespace: myoa.core (core.clj:1). but in clojureql/core.clj has already (:refer-cloj

Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-10 Thread faenvie
very interesting stuff. i will follow this with pleasure ... to get into it, a basic tutorial that focuses on solving one or two classical problems using logos would probably be a winner. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post