Re: Clojure Conj extracurricular activities spreadsheet

2011-10-27 Thread Kevin Lynagh
On Oct 26, 4:48 pm, Michael Fogus mefo...@gmail.com wrote: I've given edit rights to organizers and people on this thread, so please feel free to make additions and modifications.  :-)Please add me to ClojureScript Heroku Drinkup Literate Programming The web and Clojure Also add a new

Re: Literate programming

2011-10-27 Thread daly
Try http://en.wikipedia.org/wiki/Literate_programming or the original paper www.literateprogramming.com/knuthweb.pdf or from the master himself: http://www-cs-faculty.stanford.edu/~uno/lp.html Tim Daly On Wed, 2011-10-26 at 19:49 -0700, jaime wrote: is there a place introducing (e.g.

Re: Literate programming

2011-10-27 Thread Mark Engelberg
Tim, I recall that at some point you described your setup for doing Clojure literate programming, and if I recall correctly, you were primarily working in LaTeX, relying on incremental compilation to test little snippets of code as you wrote them. Have there been any new developments on the

Re: (dir *ns*) doesn't work??

2011-10-27 Thread Matjaz Gregoric
The dir macro is quite picky in what it accepts as arguments. Try: (dir user) (dir clojure.core) On Thu, Oct 27, 2011 at 10:57 AM, jaime xiejianm...@gmail.com wrote: Hi there, when I tried to execute (dir *ns*) in REPL, I found it doesn't work -- with exception of: Exception No

Re: (dir *ns*) doesn't work??

2011-10-27 Thread Ben Smith-Mannschott
dir is a macro. It doesn't evaluate its arguments. So when you say (dir *ns*), Clojure sees: show me what's in the namespace named *ns*, and there is no such namespace because *ns* is the name of a variable which contains the name of the current namespace. Dir is this way because for interactive

appengine-magic, directory not found, strange file: hierarchy

2011-10-27 Thread Thorsten Wilms
Hi! I recently upgraded my Linux distribution and while everything regarding Clojure, Leiningen, Emacs and my project should be like it was before, but I get the following error when trying to test my website project in a browser: --- HTTP ERROR 500 Problem accessing /. Reason: Directory

Re: appengine-magic, directory not found, strange file: hierarchy

2011-10-27 Thread Paul Koerbitz
Hello Thorsten, are you sure you used OpenJDK before the upgrade? I remember having problems with OpenJDK + AppengineMagic which were resolved by switching to Sun's JDK (this was on Ubuntu 10.04). Cheers Paul On Thu, Oct 27, 2011 at 13:29, Thorsten Wilms t...@freenet.de wrote: Hi! I

Re: (dir *ns*) doesn't work??

2011-10-27 Thread jaime
Oh yes you guys are right. I should have look at the source first: (defmacro dir Prints a sorted directory of public vars in a namespace [nsname] `(doseq [v# (dir-fn '~nsname)] (println v#))) from it, we can see the quote thing. Thank you all. I got it now! On Oct 27, 5:12 pm, Ben

Re: appengine-magic, directory not found, strange file: hierarchy

2011-10-27 Thread Thorsten Wilms
On 10/27/2011 02:45 PM, Paul Koerbitz wrote: are you sure you used OpenJDK before the upgrade? I remember having problems with OpenJDK + AppengineMagic which were resolved by switching to Sun's JDK (this was on Ubuntu 10.04). Switching to Oracle's version fixed it. I must have had it

ClojureScript and Counterclockwise?

2011-10-27 Thread Base
Hi All - Do any of you happen to know if Counterclockwise supports the development of apps using ClojureScript? Thanks! Base -- 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

Re: Literate programming

2011-10-27 Thread daly
On Thu, 2011-10-27 at 00:17 -0700, Mark Engelberg wrote: Tim, I recall that at some point you described your setup for doing Clojure literate programming, and if I recall correctly, you were primarily working in LaTeX, relying on incremental compilation to test little snippets of code as

ultra-noob read-line question

2011-10-27 Thread Andrew
At the REPL in Emacs, shouldn't the following code allow me to type something followed by [Enter] and then shouldn't it print my input back out? (println (read-line)) When I enter this at the prompt, I immediately see the following. It doesn't wait for input. user (println (read-line)) nil

Re: ultra-noob read-line question

2011-10-27 Thread Phil Hagelberg
On Thu, Oct 27, 2011 at 11:32 AM, Andrew ache...@gmail.com wrote: At the REPL in Emacs, shouldn't the following code allow me to type something followed by [Enter] and then shouldn't it print my input back out? (println (read-line)) When I enter this at the prompt, I immediately see the

Re: Literate programming

2011-10-27 Thread Daniel Jomphe
I would gladly pay for such a thing to materialize on my screen; if it only took money to get that, I'm sure we'd all be willing to finance such an effort however we can. On Thursday, October 27, 2011 1:58:52 PM UTC-4, TimDaly wrote: So imagine a world where the eloquence of Rich Hickey was

Re: Literate programming

2011-10-27 Thread bernardH
Thank you for your persistence on this subject : I'm sure that I'm not the only lurker on this list that you manage to get interested in LP. I wanted to share two thought that I had when looking at your LP take on Clojure code : 1°) The infrsastructure should really lower the barrier to

Re: ultra-noob read-line question

2011-10-27 Thread Andrew
What does the exception below mean? Does trampoline require something to be defined/included that the usual way doesn't? Exception in thread main java.lang.IllegalArgumentException: No implementation of method: :make-writer of protocol: #'clojure.java.io/IOFactory found for class: nil

Rides to the conj

2011-10-27 Thread Aaron Cohen
Hi everyone, I haven't seen a lot of discussion about people organizing rides/roomshares etc for the conj so far, I hope this is an appropriate venue. Is anyone driving down from the DC area who could offer a ride down? I'll be flying out of Durham after the conj, but I can help with gas

Re: repl output for list seems inconsistent and a holdover from yesteryear

2011-10-27 Thread Nicolas
Hi! Well [1 2 3] is just a syntaxic sugar for (vector 1 2 3): =(vector 1 2 3) [1 2 3] When you enter a vector in the repl, it is evaluted to itself. Here an example that show it: =[1 2 (+ 1 2)] [1 2 3] And you can use the vector function for the same result: =(vector 1 2 (+ 1 2)) [1 2 3] The

Re: Clojure Conj extracurricular activities spreadsheet

2011-10-27 Thread Daniel Solano Gomez
On Tue Oct 25 14:10 2011, Roger Austin wrote: One idea would be to organize something for people wanting to set up local clojure meetups. I don't think this needs to be a BOF, but I don't know the best way to promote the idea. Anyone coming with family and/or spouse-dates? If so, let us

Re: repl output for list seems inconsistent and a holdover from yesteryear

2011-10-27 Thread e
On Oct 26, 2011 7:15 PM, Stuart Halloway stuart.hallo...@gmail.com wrote: checking out the Try Clojure: if you type the following, you get output that matches what you typed in every case except for lists. Vectors: -- [1 2 3 4] [1 2 3 4] Maps: -- {:foo bar 3 4} {:foo bar 3 4} Lists:

Re: repl output for list seems inconsistent and a holdover from yesteryear

2011-10-27 Thread e
You can also use the list function if you don't care about syntactic sugar, and it seems. Like it should look like this: = (list 1 2 3 4) '(1 2 3 4) or 1 2 3 4 -- although i'd use that for vectors and use [] for lists. Wouldn't that be cool? I imagine (set 1 2 3 4) prints as #{1 2 3 4} On Oct

Re: repl output for list seems inconsistent and a holdover from yesteryear

2011-10-27 Thread Stephen C. Gilardi
On Oct 26, 2011, at 7:08 PM, e wrote: [1 2 3] is a vector that is not evaluated. Since there is no overload with things that are, there's no need for a special mark. If you type [1 2 3] into the REPL it is evaluated. The E part of the REPL always runs. Some expressions evaluate to

Re: ClojureScript and Counterclockwise?

2011-10-27 Thread Luc Prefontaine
I run cljs_watch in a terminal window at the top of the project and I defined .cljs files to use the CCW editor. cljs_watch spots the changed .cljs files through Eclipse and recompiles on the fly. Then I refresh the browser. It does most of the job. Luc P. On Thu, 27 Oct 2011 10:27:29 -0700

Re: repl output for list seems inconsistent and a holdover from yesteryear

2011-10-27 Thread Mark Rathwell
Maybe it would be clearer if I proposed some other, lesser-used chars, like %(1 2 3 4) or even 1 2 3 4.  That is, I'm not so much saying, this needs to be treated as data and not eval'd as I am simply saying, this is the 'list' data structure as opposed to some other. A list data structure

Extending IFn

2011-10-27 Thread Sean Devlin
I'm experimenting with creating my own fn types. I was wondering if there was a better way of extending IFn than this: https://gist.github.com/1321330 Is there a more idiomatic way? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: Clojure Conj extracurricular activities spreadsheet

2011-10-27 Thread Carin Meier
Please sign me up for ClojureScript, Heroku Drinkup, and the Web and Clojure. Another thing I would be interested in hearing about and discussing is development techniques with Clojure and ClojureScript. What practices people are using and finding that work best for them. -- You received

Re: Is there a String protocol?

2011-10-27 Thread Sean Devlin
Eh, I'm more interested in the int/long/double protocol, and was asking about the string one as a matter of completeness. NumberClass/parseNumber doesn't take a broad range of inputs, yadda yadda yadda... On Oct 25, 5:06 pm, Ben Smith-Mannschott bsmith.o...@gmail.com wrote: On Tue, Oct 25, 2011

modern clojure summary

2011-10-27 Thread falcon
Hi, I took a look at clojure when it first came out. I never wrote many programs with it but spent a few nights reading docs and experimenting with the repl. In Rich's most recent talk, Simple Made Easy, he mentioned that clojure for javascript was built from the ground up using protocols and

Re: modern clojure summary

2011-10-27 Thread Sean Devlin
You're probably best suited with Clojure for Java programmers, it covers a lot of basic stuff fundamental motivation. http://blip.tv/clojure/clojure-for-java-programmers-1-of-2-989128 On Oct 27, 9:10 pm, falcon shahb...@gmail.com wrote: Hi, I took a look at clojure when it first came out. I

Re: modern clojure summary

2011-10-27 Thread falcon
Looks like this video is from 2008. I remember going through all the videos back then. I'm not looking for a basic introduction to lisp like languages. I'm interested in a description and an explanation of clojure + modern features such as protocols. For example, Rich said that clojurescript

Re: Literate programming

2011-10-27 Thread Larry Johnson
I'm a bit reluctant to get into this, because I'm new to clojure (and don't know the backstory of this post), but an old hand at literate programming (I recently did a podcast interview with Donald Knuth on LP). I'll be interested in the results of your survey. Larry On Wed, Oct 26, 2011 at

Re: Literate programming

2011-10-27 Thread Tim Sally
Programming pearls: a literate program http://www.cs.tufts.edu/~nr/cs257/archive/don-knuth/pearls-1.pdf On Wed, Oct 26, 2011 at 10:49 PM, jaime xiejianm...@gmail.com wrote: is there a place introducing (e.g. overview) more about Literate? have no ideas about this stuff. On Oct 27, 3:06 am,

Re: Literate programming

2011-10-27 Thread Larry Johnson
My two favorite articles on Literate Programming are both from Donald Knuth's book *Literate Programming*. One is Computer Programming as an Art, and the other is Literate Programming. When I was preparing to interview Knuth a bit over a year ago I re-read the entire book. I expected it to be a

Re: Literate programming

2011-10-27 Thread daly
On Thu, 2011-10-27 at 20:11 -0400, Larry Johnson wrote: My two favorite articles on Literate Programming are both from Donald Knuth's book Literate Programming. One is Computer Programming as an Art, and the other is Literate Programming. When I was preparing to interview Knuth a bit over

Re: Literate programming

2011-10-27 Thread Robert McIntyre
I've found org-mode in emacs quite acceptable for literate programming in clojure. http://orgmode.org/ git://orgmode.org/org-mode.git Here are some things I've used it for: http://aurellem.com/abomination/html/no_parens.html http://aurellem.com/pokemon-types/html/lpsolve.html

Re: repl output for list seems inconsistent and a holdover from yesteryear

2011-10-27 Thread e
On Thu, Oct 27, 2011 at 7:42 PM, Stephen C. Gilardi squee...@mac.comwrote: On Oct 26, 2011, at 7:08 PM, e wrote: [1 2 3] is a vector that is not evaluated. Since there is no overload with things that are, there's no need for a special mark. If you type [1 2 3] into the REPL it is

core.match 0.2.0-alpha6, breaking change for or patterns

2011-10-27 Thread David Nolen
The biggest change is the removal of the infix or pattern syntax. Feedback appreciated. Fixes * MATCH-34: no more infix or pattern syntax * MATCH-10: support maps with keys of heterogenous types * MATCH-30: throw if same binding name used in row * MATCH-33: fix readme typo Enhancements

Re: repl output for list seems inconsistent and a holdover from yesteryear

2011-10-27 Thread e
On Thu, Oct 27, 2011 at 8:26 PM, Mark Rathwell mark.rathw...@gmail.comwrote: Maybe it would be clearer if I proposed some other, lesser-used chars, like %(1 2 3 4) or even 1 2 3 4. That is, I'm not so much saying, this needs to be treated as data and not eval'd as I am simply saying, this

Re: repl output for list seems inconsistent and a holdover from yesteryear

2011-10-27 Thread e
I think I understand more now though, everyone. Thanks. clojure chose lists for the data structure for code so lists sort of have a special place in the language. Thanks again. On Fri, Oct 28, 2011 at 1:13 AM, e evier...@gmail.com wrote: On Thu, Oct 27, 2011 at 8:26 PM, Mark Rathwell