Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread faenvie
@nchubrich It did go on too long.  I hope when someone \does read it, they will see I am not being wholly unreasonable. i liked to read through it anyway ... I was drawn to Clojure because I felt it was another evolutionary step in programming. I hope I am not wrong. i feel and hope

Re: Correct way to define the else clause of a cond form?

2011-07-07 Thread Tassilo Horn
Ken Wesson kwess...@gmail.com writes: Hi! Remove the question mark... or whatever this is...  and you'll be fine. Whatever WHAT is? There's nothing in your post there but three blank lines. Sure there is! ;-) , | character:  (65532, #o14, #xfffc) | preferred charset:

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread nchubrich
I think we need to nail the intro / setup experience and I'm nailing my colors to Leiningen. I think that needs to be adopted as the default, standard way to get up and running on Clojure and all the official tutorials need to be updated to reflect that. I think getting an experienced

Re: Correct way to define the else clause of a cond form?

2011-07-07 Thread Ken Wesson
On Thu, Jul 7, 2011 at 2:47 AM, Tassilo Horn tass...@member.fsf.org wrote: Ken Wesson kwess...@gmail.com writes: Hi! Remove the question mark... or whatever this is...  and you'll be fine. Whatever WHAT is? There's nothing in your post there but three blank lines. Sure there is! ;-)

Re: emacs-clojure-vagrant: a sane development virtual environment

2011-07-07 Thread Sunil S Nandihalli
Hi I am new to both vagrant and ruby. I followed the steps in the readme up to step 3 .. but after running vagrant up I get /var/lib/gems/1.8/gems/vagrant-0.7.6/bin/vagrant:2:in `require': no such file to load -- vagrant (LoadError) from /var/lib/gems/1.8/gems/vagrant-0.7.6/bin/vagrant:2 can

Re: Discovering a function's closure

2011-07-07 Thread Oded Badt
Thanks, the command you wrote indeed works, but I cant get it to work for just 'some' function I defined in the repl. Here's my repl transcript, let me know what I'm doing wrong user= (def f (let [a 5] (fn [x] (+ x a #'user/f user= (f 6) 11 user= (read-string (with-out-str (source f))) Source

Re: Discovering a function's closure

2011-07-07 Thread Sunil S Nandihalli
Oded, If you look at the source of source .. you will notice that the source is not stored in the meta information but it just picks up the filename and line-number form the meta info of the function and reads the corresponding files to obtain the source.. This would not be possible if you

Re: Correct way to define the else clause of a cond form?

2011-07-07 Thread Michael Wood
On 7 July 2011 09:10, Ken Wesson kwess...@gmail.com wrote: On Thu, Jul 7, 2011 at 2:47 AM, Tassilo Horn tass...@member.fsf.org wrote: Ken Wesson kwess...@gmail.com writes: Hi! Remove the question mark... or whatever this is...  and you'll be fine. Whatever WHAT is? There's nothing in

Re: Collaboration Proposal: Beyond CLOS Generic Methods, Predicate Dispatch, and Pattern Matching

2011-07-07 Thread Ambrose Bonnaire-Sergeant
I'm interested too. Just sent in my CA from Australia, so hopefully shouldn't be too long. I think I looked through the essays briefly when this was first posted, I coincidentally am working through the The Art of the Metaobject Protocol right now. +1 on an update please :) Ambrose On Thu, Jul

Re: I cannot scroll up down REPL in konsole

2011-07-07 Thread Eric Krohn
Antonio, The only way I've found to scroll back in screen is to enter copy mode: ^A[ and then use vi-ish keystrokes to scroll up and down. -- Eric Krohn -Original Message- From: Antonio Recio amdx6...@gmail.com Date: Wed, 6 Jul 2011 19:56:36 -0700 (PDT) To: clojure@googlegroups.com

Re: Clojure for large programs

2011-07-07 Thread Feng Shen
Our codebase is 6.8k kloc of production code, 4k of test code. We use emacs, slime+swank to develop. The editor is great, REPL is great. But lacking debuging and refactoring support is a pain. On Jul 3, 9:26 am, Mark Engelberg mark.engelb...@gmail.com wrote: Ideally, I was hoping to start a

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Jonathan Fischer Friberg
On Thu, Jul 7, 2011 at 7:42 AM, nchubrich nchubr...@gmail.com wrote: * Since Lisp is highly extensible, in the long run being 'prescriptive' is a losing battle. It is better to eventually add standard 'bad' features to the language than to tempt third parties to do it in even worse and

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Stuart Halloway
It may be that I am really talking about the website (clojure.org, not any of the auxiliary ones, which are a bit of a mess in themselves) more than the language itself. If people receive the \right instructions, setting up Emacs/Leiningen/Web servers etc. is actually not so hard. The

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Timothy Washington
On Thu, Jul 7, 2011 at 1:42 AM, nchubrich nchubr...@gmail.com wrote: ... * It also can do a better job of attracting and retaining core contributors. I cited an example of someone who posted a patch to make refs persistent. She ended up being ignored, and left for Erlang. But Clojure

Re: Collaboration Proposal: Beyond CLOS Generic Methods, Predicate Dispatch, and Pattern Matching

2011-07-07 Thread David Nolen
I've been busy optimizing core.logic so I haven't been actively working on this. However I did get some basic bits working here: https://github.com/swannodette/match/blob/master/src/match/core.clj You can see that columns are selected by necessity. It's promising though there's quite a bit more

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread James Keats
On Jul 7, 6:42 am, nchubrich nchubr...@gmail.com wrote: I'll try :)  It was really a polemical post for a polemical thread, but my main points can be extracted here.  Feel free to read as many or as few of them as you are inclined nchubrich, I've read your original post in its entirely, so

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread James Keats
On Jul 7, 8:09 am, nchubrich nchubr...@gmail.com wrote (As for Steve Yeggeis he reading all this?if he's totally wrong, then of course people should feel free to disagree with him, and forget about the consequences.  But if he happens to be \right, and I do think he mostly is, then

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Stuart Halloway
For instance, a little while ago I was corresponding with someone who had released a patch to Clojure. (This was Alyssa Kwan, in case you want to look up the thread.) Her patch made refs persistent to disksomething that seemed very much in the spirit of Clojure. Dealing with disk

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Steve Miner
On Jul 6, 2011, at 10:06 PM, nchubrich wrote: And as to improving documentation, how is one to go about doing it? This would be an excellent area to have some community effort on, especially from relative beginners, and that is an itch I would not mind scratching. Stuart Halloway

Re: Clojure now officially supported on Heroku

2011-07-07 Thread John Palgut
This gives me a reason to try Heroku! -- 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. To unsubscribe

Re: emacs-clojure-vagrant: a sane development virtual environment

2011-07-07 Thread nil
Setting up PuTTY and the vagrant.ppk file (according to the page you mentioned) helps. PuTTY successfully gives me a vagrant@natty session *but* vagrant ssh doesn't behave any differently -- so I can't tell if this is fine or if I'm missing something. Also, if I type emacs at the prompt, I get

Re: emacs-clojure-vagrant: a sane development virtual environment

2011-07-07 Thread Justin Lilly
emacs24 should be installed. My suggestion would be to delete the vm and restart. Perhaps not having putty broke the initial install? If it breaks, please send the full output of the console with what is broken. -justin On Thu, Jul 7, 2011 at 9:30 AM, nil ache...@gmail.com wrote: Setting up

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread logan
I think Yegge clarified in a follow-up post that what he really meant to say was say yes to USERS, not say yes to FEATURES, but in his typical off-the-cuff ranty writing style, he had accidentally conflated the two. As far as saying yes to every feature, I think that is obviously not a great

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread nchubrich
Thank you, Logan, you put it very well. You're absolutely right there can be an inherent instinct against user-friendliness in open-source software, as well as a kind of hierarchyand you've identified the source and nature of it, I think. The response to this is not to try to become

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Sean Corfield
On Thu, Jul 7, 2011 at 6:12 AM, Stuart Halloway stuart.hallo...@gmail.com wrote: (1) Edit and improve the official docs: http://dev.clojure.org/display/doc/Getting+Started I think one sticking point here is that there are (so far) seven IDEs/editors listed and five build tools. For a n00b,

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread James Keats
On Jul 7, 8:03 pm, logan duskli...@gmail.com wrote: This poisonous attitude is perfectly exemplified in this thread by James Keats. I completely disagree with your mis-characterization and invite you to read again what I had maintained: - I had implored that technical arguments alone should

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread nchubrich
Stu--- Thanks for the links. I took a look at clojure dev and signed up. I don't see any way to editdoes that happen after I mail in the Contributor agreement? It does seem a little medieval to have to mail it in. Clojure dev though doesn't seem like such a direct way of improving

Avoiding nils

2011-07-07 Thread octopusgrabbus
This code (defn ret-odd [seq-val] (if (not (nil? seq-val)) (if (odd? seq-val) seq-val))) (def my-seq '(1 2 3 4 5 6 7 8 9)) (map ret-odd my-seq) finds the odd numbers, but also returns nil. How do I find just the odd numbers? Thanks. cmn -- You received this message because you

Re: Avoiding nils

2011-07-07 Thread Allen Johnson
On Thu, Jul 7, 2011 at 4:27 PM, octopusgrabbus octopusgrab...@gmail.com wrote: This code (defn ret-odd  [seq-val]  (if (not (nil? seq-val))    (if (odd? seq-val)      seq-val))) (def my-seq '(1 2 3 4 5 6 7 8 9)) (map ret-odd my-seq) finds the odd numbers, but also returns nil. How do

Re: Avoiding nils

2011-07-07 Thread octopusgrabbus
Many thanks. I've clearly got to get better acquainted with various functions. On Jul 7, 4:30 pm, Allen Johnson akjohnso...@gmail.com wrote: On Thu, Jul 7, 2011 at 4:27 PM, octopusgrabbus octopusgrab...@gmail.com wrote: This code (defn ret-odd  [seq-val]  (if (not (nil? seq-val))    

Confused about sequential definition

2011-07-07 Thread octopusgrabbus
What does this mean exactly? sequential? function Usage: (sequential? coll) Returns true if coll implements Sequential from http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/sequential -- You received this message because you are subscribed to the Google Groups Clojure

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread James Keats
On Jul 7, 8:35 pm, nchubrich nchubr...@gmail.com wrote someone whose name I can't remember right now once said, There are no bad students, only bad teachers. There are three good books already and more on the way (I look forward to Clojure in Action later this month), there are excellent

Re: Confused about sequential definition

2011-07-07 Thread Ken Wesson
On Thu, Jul 7, 2011 at 4:48 PM, octopusgrabbus octopusgrab...@gmail.com wrote: What does this mean exactly? sequential? function Usage: (sequential? coll) Returns true if coll implements Sequential from http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/sequential

Re: Confused about sequential definition

2011-07-07 Thread Mark Rathwell
What it means exactly is that there is an interface called Sequential (defined in https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Sequential.java) that some other interfaces and abstract classes implement or extend, and some clojure data structures that you use implement or

Re: Any ways to prevent protocol functions from being hardcoded in?

2011-07-07 Thread Meikel Brandmeyer
Salut Christophe, Am 02.07.2011 um 22:07 schrieb Christophe Grand: my 2 cents, Understatement! Thank you for the clarifications. I wrote them up with an example (hopefully) illustrating the issue. http://bit.ly/nOHgle Cordialement Meikel -- You received this message because you are

Print Friendly (For PDF) Version of Clojure API

2011-07-07 Thread octopusgrabbus
Is there a printer-friendly version of the Clojure API? http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/identity -- 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

Re: Confused about sequential definition

2011-07-07 Thread octopusgrabbus
Thank you for the explanations. I saw sequential in an example out on the web. At first, I thought it had something to do with the ordering of a sequence's elements. cmn On Jul 7, 5:22 pm, Mark Rathwell mark.rathw...@gmail.com wrote: What it means exactly is that there is an interface called

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Meikel Brandmeyer
Hi, Am 07.07.2011 um 21:54 schrieb Sean Corfield: I think one sticking point here is that there are (so far) seven IDEs/editors listed and five build tools. For a n00b, that's too much choice. I'm always bewildered by this argument. What has a newbie to choose here? Of course he uses what

Re: Confused about sequential definition

2011-07-07 Thread David Nolen
On Thu, Jul 7, 2011 at 5:14 PM, Ken Wesson kwess...@gmail.com wrote: (defn array? [x] (and x (contains? (set (.getName (.getClass x))) \[))) (defn seqable? [x] (or (coll? x) (nil? x) (instance? java.util.Collection x) (instance? java.util.Map x) (instance? java.util.Set

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread nchubrich
I'm always bewildered by this argument. What has a newbie to choose here? Of course he uses what he's used to. Many Java devs probably want one of the IDEs they already know. Old-time Lispers use emacs. I think it's a question of style and how to present the information (which is why it

Re: Print Friendly (For PDF) Version of Clojure API

2011-07-07 Thread Devin Walters
A couple ideas: 1.) I used to do something simple: (map (juxt :name :arglists :doc) (map #(meta (second %)) (ns-publics 'clojure.core))) I'd then take that output and use hiccup to make a big html file that I could then print. You could pdf-ize that easily. 2.)

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Sean Corfield
On Thu, Jul 7, 2011 at 2:37 PM, Meikel Brandmeyer m...@kotka.de wrote: I'm always bewildered by this argument. What has a newbie to choose here? Of course he uses what he's used to. Many Java devs probably want one of the IDEs they already know. Old-time Lispers use emacs. And yet the #1 FAQ

Re: Clojure for large programs

2011-07-07 Thread Scott Jaderholm
On Thu, Jul 7, 2011 at 2:45 AM, Feng Shen shen...@gmail.com wrote: But lacking debuging and refactoring support is a pain. In case you're not familiar with these (not saying they're full-featured): https://github.com/pallet/ritz http://www.youtube.com/watch?v=d_L51ID36w4

Re: Confused about sequential definition

2011-07-07 Thread Ken Wesson
On Thu, Jul 7, 2011 at 6:00 PM, David Nolen dnolen.li...@gmail.com wrote: On Thu, Jul 7, 2011 at 5:14 PM, Ken Wesson kwess...@gmail.com wrote: (defn array? [x] (and x (contains? (set (.getName (.getClass x))) \[))) (defn seqable? [x]  (or    (coll? x)    (nil? x)    (instance?

Re: Confused about sequential definition

2011-07-07 Thread David Nolen
On Thu, Jul 7, 2011 at 11:21 PM, Ken Wesson kwess...@gmail.com wrote: Interesting, but there is still going to be a performance issue for the perhaps-common case of testing a non-seqable for seqability: in that case, it will do the reflective check for isArray and it won't use the protocol to

Re: Confused about sequential definition

2011-07-07 Thread Ken Wesson
On Fri, Jul 8, 2011 at 12:58 AM, David Nolen dnolen.li...@gmail.com wrote: (extend-type Object   ISeqable   (seqable? [x]             (let [c (.getClass x)]              (if (.isArray c)                (do                  (extend-type (.getClass x)                    ISeqable           

Re: Confused about sequential definition

2011-07-07 Thread David Nolen
On Fri, Jul 8, 2011 at 1:00 AM, Ken Wesson kwess...@gmail.com wrote: On Thu, Jul 7, 2011 at 11:21 PM, Ken Wesson kwess...@gmail.com wrote: ... it won't use the protocol to cache the result. Making it do so, however, would cause problems if one had (seqable? some-foo) and later attempted

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Lee Spector
On Jul 7, 2011, at 7:29 PM, Sean Corfield wrote: And yet the #1 FAQ we see on lists and reflected in blog posts is about getting Clojure up and running... We see Java developers, committed to their favorite IDE, still asking Should I install / learn Emacs? We see old-time Lispers, happy with

Re: Confused about sequential definition

2011-07-07 Thread Ken Wesson
On Fri, Jul 8, 2011 at 1:06 AM, David Nolen dnolen.li...@gmail.com wrote: On Fri, Jul 8, 2011 at 1:00 AM, Ken Wesson kwess...@gmail.com wrote: On Thu, Jul 7, 2011 at 11:21 PM, Ken Wesson kwess...@gmail.com wrote: ... it won't use the protocol to cache the result. Making it do so, however,

Re: Please stand firm against Steve Yegge's yes language push

2011-07-07 Thread Ken Wesson
On Fri, Jul 8, 2011 at 1:07 AM, Lee Spector lspec...@hampshire.edu wrote: On Jul 7, 2011, at 7:29 PM, Sean Corfield wrote: And yet the #1 FAQ we see on lists and reflected in blog posts is about getting Clojure up and running... We see Java developers, committed to their favorite IDE, still