Re: Compilable clojure program, but unreadable?

2012-03-10 Thread Meikel Brandmeyer
Hi, Clojure doesn't read files. It reads, compiles and executes a stream of toplevel expressions. Hence the file is compilable, but not readable. If you do not want to execute the forms contained in a file, you have to avoid any dynamic feature. In particular aliased keywords with :: since thos

Transients, pods, and monads

2012-03-10 Thread Konrad Hinsen
I finally found the time to watch the video recording of Rich's keynote at Clojure/conj. Lots of interesting stuff, as usual... When he started talking about transients and pods, I saw the term "state monad" flashing in the background. I suppose most people don't see, which is why I am writing thi

Compilable clojure program, but unreadable?

2012-03-10 Thread Jonas
Hi If I have the following short Clojure program: ;; unread.clj (require '[clojure.string :as s]) (prn ::s/kwd) The second form can't be read by the clojure reader: user=> (def reader (java.io.PushbackReader. (clojure.java.io/reader "unread.clj"))) #'user/reader user=>

Re: clojure.io

2012-03-10 Thread Brian Goslinga
On Saturday, March 10, 2012 7:57:59 AM UTC-6, lpetit wrote: > > > > 2012/3/10 Brian Goslinga > >> On Mar 8, 3:12 pm, cej38 wrote: >> > This is a NOOB question. >> > >> > Would it be possible to write a library that could do IO without >> > resorting to the underlying VM? >> I would be suspiciou

Need opinions on arglists with optional arguments

2012-03-10 Thread James Reeves
In the Hiccup library, some functions take an optional map of attributes as their first argument. So I could write: (text-field :name) (text-field :name "Bob") (text-field {:class "foo"} :name) (text-field {:class "foo"} :name "Bob") The question is how best to represent this in the argl

Re: Can Clojure be as readable as Python or Ruby ?

2012-03-10 Thread James Reeves
On 8 March 2012 16:23, Leon Talbot wrote: > What I met by readable, is the capacity of reading someone's code. I develop Ruby professionally, and write Clojure in my spare time. Off hand, I can think of several Ruby libraries I'd consider to have unreadable code, but no Clojure equivalents immed

ANN Leiningen 2.0 [preview2] is now provided on travis-ci.org

2012-03-10 Thread Michael Klishin
Recently released Leiningen 2.0[-preview2] is now provided/supported on travis-ci.org. See our Clojure documentation guide to learn how to switch to it: http://about.travis-ci.org/docs/user/languages/clojure/ If you are new to travis-ci.org, take a look at the Getting Started guide: http://about

Re: Can Clojure be as readable as Python or Ruby ?

2012-03-10 Thread Softaddicts
About item 1: The first Lisp I used was runing on a DEC-10 with 256k 36 bits words of physical memory (magnetic-core memory). It had a structural editor. We would change nodes, add/remove child nodes, ... Of course there were no WYSIWYG GUIs. The representation was all text base showing a tree sh

Re: clojure.io

2012-03-10 Thread Laurent PETIT
2012/3/10 Brian Goslinga > On Mar 8, 3:12 pm, cej38 wrote: > > This is a NOOB question. > > > > Would it be possible to write a library that could do IO without > > resorting to the underlying VM? > I would be suspicious of a cross-implementation wrapper. You'll > probably end up with something

Re: ANN: ringMon Ring middleware that provides monitoring and nREPL remote interface to any Ring based Clojure web app

2012-03-10 Thread zoka
This project is very fresh (only 2 weeks old) - I have just fixed couple of last minute bugs. I had to publish the JAR in Clojars since development process on Heroku requires me to build demo application with lein on their virtual host before it can be deployed. Zoka On Mar 10, 6:41 pm, Shanta

Re: Can Clojure be as readable as Python or Ruby ?

2012-03-10 Thread Evan Gamble
On Mar 10, 12:19 am, Craig Brozefsky wrote: > Sure, you feel your defmacro, oats you write some ghetto macros with > syntactically significant keywords, maybe stay up late a few nights > expanding it into a some monstrosity and suddenly you have loop (I don't > think CL's format is in the same r

Re: Can Clojure be as readable as Python or Ruby ?

2012-03-10 Thread Andrzej
On 03/08/2012 02:39 AM, Leon Talbot wrote: If so, how ? Syntax is a list of arbitrary rules made by a language designers. It's always possible to come up with a different (perhaps more compact, cleaner, more readable) syntax but: - that means creating a new incompatible language, - that woul

Re: Can Clojure be as readable as Python or Ruby ?

2012-03-10 Thread Evan Gamble
On Mar 9, 11:13 am, daly wrote: > There is a bit of brain-training necessary to read code with > parens but not a lot. In fact, my editor can read paren code. Hard to see what your point is there. I didn't write let? because I can't read code with parens. I've been writing Lisp since 1983, star

Re: Can Clojure be as readable as Python or Ruby ?

2012-03-10 Thread Craig Brozefsky
Evan Gamble writes: > I find let? useful and readable, as do others. There's a bit of brain- > training necessary to read it, but not a lot. Probably no more than > the keyword clauses of the "for" comprehension. The argument that > decades of Lisp programmers haven't invented this particular > "