On Dec 19, 8:02 pm, Mike K mbk.li...@gmail.com wrote:
[:foo] evaluates to true by virtue of being a keyword.
To be precise, it evaluates to true by virtue of it not being nil nor
boolean false; being a keyword doesn't really have anything to do with
it.
user= (cond nil :n false :f (Object.)
On 18 Dec 2009, at 15:03, Sean Devlin wrote:
The last entry is the most relevant to a map-utils library. Check out
the visitor stuff:
http://groups.google.com/group/clojure-dev/msg/6c1bbce17cafdf52
The idea is to take your generic functor application idea and put it
on steroids. I'm
2009/12/20 ataggart alex.tagg...@gmail.com
On Dec 19, 8:02 pm, Mike K mbk.li...@gmail.com wrote:
[:foo] evaluates to true by virtue of being a keyword.
To be precise, it evaluates to true by virtue of it not being nil nor
boolean false; being a keyword doesn't really have anything to do
I don't know if anybody mentioned this before, (it was not suggested to me
when I asked a similar question earlier),
but Stuart's explanation on OOP in Clojure is the best I've ever found.
It's simple, clear and takes on each of the 4 pieces nicely.
I may be way off here and if I am feel free to flame!
isn't it true that lisp being an AST transfers the overhead of parsing to
humans ?
Let me restate that: lisp manages to skip a step that other languages do,
i.e. parsing the language to AST ?
I understand that it gives you great power but at
+ Paredit
--
http://wave.theWE.net
http://twitter.com/theWE_
On Sat, Dec 19, 2009 at 10:17 PM, ddyer ddyer-goog...@real-me.net wrote:
Parens are really a non-issue once you are using an editor
that counts them and highlights matching appropriately.
--
You received this message because
As for Ten parentheses, i do not see a single one. Noone notices
starting parens because they are markers saying this is a function.
And of course noone notices ending parens because they are for your
IDE, not for the human.
This is I like, I'd never thought about S-exprs this way
On 20 Dec 2009, at 07:27, ajay gopalakrishnan wrote:
Precedence is an overrated thing. You dont run into that issue every day.
Yeah, only every time you write a simple mathematical expression. And how often
does that happen when you're programming?!
Martin
--
You received this message
On 20 Dec 2009, at 06:51, ajay gopalakrishnan wrote:
Yes, Martin, please give it a try. Only then can we know if the parenthesis
is real issue or not. There is no point arguing about it. The only
disadvantage is that, over time, people will forget that it is actually a
list. But, hey, if
On Nov 8, 2009, at 6:03 PM, Phil Hagelberg wrote:
(add-hook 'clojure-mode-hook (lambda () (set (make-local-variable
'before-save-hook) 'delete-trailing-whitespace))
One wrinkle here is that in Clojure , is whitespace. It would be nice not to
strip out trailing commas within doc strings.
Martin Coxall pseudo.m...@me.com writes:
I might try to knock up optional parens inference for Clojure and
add in some manner of curly infix as an exercise. It doesn't look like
it will be too hard. Since {} is taken for literal maps, I'd need
something else for curly infix. [|...|], %...%,
I have been studying Clojure for 3 months. My experience:
* After knowing about Lisp coding style and indents: parens
disappeared
* After knowing about reading from inside to outside: Clojure code is
more understandable (http://groups.google.com/group/clojure/
Alex,
I just thought of something. I think we're all forgetting the amount
of hacking done at the REPL.
;This is easy to type
user=(from (too (many (parens
;Uh-oh
user=to
too
many
nesting
levels?
This might be an area where the parens are a win.
Sean
On Dec 20, 10:05
Hi Rob,
I made the changes src/leiningen/jar.clj that you suggested.
Then issued the commands:
E:\etc\clojure\Leiningen\lein.py clean
E:\etc\clojure\Leiningen\lein.py deps
E:\etc\clojure\Leiningen\lein.py compile
E:\etc\clojure\Leiningen\lein.py jar
E:\etc\clojure\Leiningen\lein.py uberjar
and
On Dec 19, 2009, at 7:50 PM, Chouser wrote:
I've updated http://clojure.org/transients to reflect vectors and
hash-map support of 'transient' in 1.1.0
Hash-sets appear to work in 1.1.0 as well.
--Steve
--
You received this message because you are subscribed to the Google
Groups Clojure
Could we also include some words explicitly stating that the sorted
versions are not supported in 1.1.0?
Sean
On Dec 20, 11:56 am, Stephen C. Gilardi squee...@mac.com wrote:
On Dec 19, 2009, at 7:50 PM, Chouser wrote:
I've updatedhttp://clojure.org/transientsto reflect vectors and
hash-map
It's better if we can support both. It's never one size fits all.
On Sun, Dec 20, 2009 at 11:49 AM, Sean Devlin francoisdev...@gmail.comwrote:
Alex,
I just thought of something. I think we're all forgetting the amount
of hacking done at the REPL.
;This is easy to type
user=(from (too
It's better if we can support both. It's never one size fits all.
Who is we?
If you're talking about something *you* want, you can go build it…
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
On 20/12/2009 5:39 PM, Richard Newman wrote:
It's better if we can support both. It's never one size fits all.
Who is we?
If you're talking about something *you* want, you can go build it…
I see Clojure is well on the way to building a community at least as
repellingly exclusionary as all
Martin,
I see Clojure is well on the way to building a community at least as
repellingly exclusionary as all the other Lisps nobody uses.
Thanks for the thinly veiled jab.
I've worked on a bunch of libraries, answered a bunch of questions on
the mailing list, and attended a few meetups. I
Hi,
On 20 Dez., 18:41, Martin Coxall pseudo.m...@me.com wrote:
On 20/12/2009 5:39 PM, Richard Newman wrote:
It's better if we can support both. It's never one size fits all.
Who is we?
If you're talking about something *you* want, you can go build it
I see Clojure is well on the way
can't you understand the reactions? The Lisp-people have been through
this discussion for what? 20 years, 30 years, 40 years? And it comes
up in intervalls which feel like once a month (don't nail me down on
the numbers). Go to comp.lang.lisp and do a search for it. Really.
There is
At 12:09 PM 12/20/2009, Richard Newman wrote:
[...]
I think most of the active Clojure community ranges from not caring to
genuinely liking s-expression notation,
And all the way to disliking the replacement of many parens
with square brackets in the syntax. That's why I, a pendant
who prior
John john.b.ga...@gmail.com writes:
Hi Rob,
I made the changes src/leiningen/jar.clj that you suggested.
Then issued the commands:
E:\etc\clojure\Leiningen\lein.py clean
E:\etc\clojure\Leiningen\lein.py deps
E:\etc\clojure\Leiningen\lein.py compile
E:\etc\clojure\Leiningen\lein.py jar
Just for kicks, I wrote a terribly simple implementation of an OO
system (with sub-type polymorphism).
Here's an example of it in use -
http://s-expressions.com/2009/12/10/frumios-a-silly-object-system-for-clojure/
Obviously one wouldn't use it in a real production system (one would
use
That's a concise and clear way to summarize the issue.
If you compare the IDE support required for different languages, the
support required to write syntactically correct Clojure code is pretty
small compared to others.
I do not get it, it's longer and much more painful to write Java code
with
Peace, brother.
And btw, who are you to tell others what they ought to do or not to do ?
Regards,
--
Laurent
2009/12/20 Charras guido.carba...@gmail.com
can't believe, you guys, WAIST! your time discussing about
parentheses. There are far more interesting things to discuss. Please
don't
Hi everyone,
After hacking Clojure for a while, I've come to the conclusion that
studying a second Lisp would help. So, what do the people here
think? What is a good Lisp to study? Are there particular dialects
distributions that are interesting? The things that are important to
me are:
A
plt scheme seconded. great language, great libraries, great community,
great documentation, and under active development.
martin
On Mon, Dec 21, 2009 at 2:13 AM, Mark Engelberg
mark.engelb...@gmail.com wrote:
http://plt-scheme.org/
Use the textbook htdp.org and you will develop a very deep
If you're going to try the straight Scheme avenue, you might try the
Gambit implementation, which is touted as very fast.
http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page
A good way to good if you already use Emacs as your IDE.
For something different but still Scheme based, there
At 02:31 PM 12/20/2009, Sean Devlin wrote:
Hi everyone,
After hacking Clojure for a while, I've come to the conclusion that
studying a second Lisp would help. So, what do the people here
think? What is a good Lisp to study?
While my preference here prior to learning about Clojure has
been
2009/12/20 Mike K mbk.li...@gmail.com:
On Dec 19, 8:27 pm, Sean Devlin francoisdev...@gmail.com wrote:
:else was chose because it is simply not nil, and therefor always true.
I suspected something along these lines soon after I posted. I did
some more experimenting and discovered that :foo
This question is tricky to answer, do to the way things are bound in
Clojure.
It is possible to get the name of a the symbol the fn is bound to, but
the fn object itself has no name. Also, fn objects can't take
metadata (but this is supposed to be fixed eventually), so what you
are looking for
On Dec 20, 3:55 pm, David Cabana drcab...@gmail.com wrote:
Suppose we define a function called sq:
(defn sq [x]
(do (println sq)
(* x x)))
I wanted sq to print it's own name when run; to make it do so I
inserted the name as a string.
Is there some way to dynamically determine
On Sun, Dec 20, 2009 at 02:30:58PM -0500, Luc Préfontaine wrote:
People bought HP calculators not for the Postfix notation but for all
the others things it offered at the time...
Some of us _still_ only buy HP calculators because of the postfix
notation. Oh, the other things are nice, too.
Sean Devlin francoisdev...@gmail.com writes:
After hacking Clojure for a while, I've come to the conclusion that
studying a second Lisp would help. So, what do the people here
think? What is a good Lisp to study? Are there particular dialects
distributions that are interesting?
Emacs
On Dec 21, 7:31 am, Sean Devlin francoisdev...@gmail.com wrote:
What is a good Lisp to study? Are there particular dialects
distributions that are interesting?
The free downloadable SICP lectures (and book) were for me really
illuminating after initial contact with Clojure. Engaging and
:))
Luc
On Sun, 2009-12-20 at 15:00 -0800, David Brown wrote:
On Sun, Dec 20, 2009 at 02:30:58PM -0500, Luc Préfontaine wrote:
People bought HP calculators not for the Postfix notation but for all
the others things it offered at the time...
Some of us _still_ only buy HP
On Sun, Dec 20, 2009 at 5:48 PM, Luc Préfontaine
lprefonta...@softaddicts.ca wrote:
:))
The Lisp Beard?
Luc
On Sun, 2009-12-20 at 15:00 -0800, David Brown wrote:
On Sun, Dec 20, 2009 at 02:30:58PM -0500, Luc Préfontaine wrote:
People bought HP calculators not for
John McCarthy the creator of lisp does have beard. :)
http://www-formal.stanford.edu/jmc/personal.html
On Sun, Dec 20, 2009 at 7:37 PM, David Nolen dnolen.li...@gmail.com wrote:
On Sun, Dec 20, 2009 at 5:48 PM, Luc Préfontaine
lprefonta...@softaddicts.ca wrote:
:))
The Lisp
Martin Coxall pseudo.m...@me.com writes:
For each line that is not within a vector, and does not have an
opening parenthesis, infer an opening parenthesis at the start of the
line. Remember the level of indentation, and infer a closing
parenthesis at the end of the line *before* the next line
Is there an API document like http://richhickey.github.com/clojure/index.html
for clojure.contrib?
Indeed:
http://richhickey.github.com/clojure-contrib/index.html
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
http://clojure.org/api
http://richhickey.github.com/clojure-contrib/
On Dec 21, 12:23 pm, Mike K mbk.li...@gmail.com wrote:
Is there an API document likehttp://richhickey.github.com/clojure/index.html
for clojure.contrib?
If not, what's the best way to discover what's in a library,
Lisp Flavored Erlang is an extremely interesting lisp. in my opinion.
You get Erlang, and you also get s-expressions and macros.
Common Lisp and Scheme are the obvious choices, I suppose.
Learning common lisp I would probably go towards clozure common lisp,
or clisp.
(SBCL is fine (great,
I do have one but it still has some grey in it :)
On Sun, 2009-12-20 at 19:41 -0500, Wilson MacGyver wrote:
John McCarthy the creator of lisp does have beard. :)
http://www-formal.stanford.edu/jmc/personal.html
On Sun, Dec 20, 2009 at 7:37 PM, David Nolen dnolen.li...@gmail.com wrote:
Hi: I've recently discovered Clojure and have loosely followed some
of the discussions here. First of all, I think Clojure is a great
language, since I also love Lisp, and I feel that the Java platform is
the most robust for web development. But I perhaps come from a
background a little
On 20 Dec 2009, at 19:30, Luc Préfontaine wrote:
That's a concise and clear way to summarize the issue.
If you compare the IDE support required for different languages, the support
required to write syntactically correct Clojure code is pretty small compared
to others.
I like Clojure, I
Hey guys,
I have a small weekend hack, I thought it might be interesting.
It is a pong clone including the ability to control it using knobs
like the original.
Part one goes over building the game,
http://nakkaya.com/2009/12/19/cloning-pong-part-1/
Part two goes over building the controller
48 matches
Mail list logo