On Tue, Nov 4, 2008 at 6:23 AM, Mark H. <[EMAIL PROTECTED]> wrote:
>
> On Nov 3, 6:48 pm, Cosmin Stejerean <[EMAIL PROTECTED]> wrote:
>> I think clearly spelling out how objects of a type should be sorted is
>> the point of the Comparable interface.
>
> Ah, yes, this is true, I hadn't realized tha
http://blogs.sun.com/bmc/entry/concurrency_s_shysters
I'm new to clojure... and like what I see.
Just passing this blog post on as a discussion point...
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cl
Hello,
On Nov 3, 7:54 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On Nov 3, 5:35 am, J. Pablo Fernández <[EMAIL PROTECTED]> wrote:
>
> > One thing that might be doable and acceptable is dual licensing. If
> > Clojure is realsed as CPL *and* GPL, it can be combined with GPL
> > programs a
On Nov 3, 12:36 pm, Matthias Benkard <[EMAIL PROTECTED]> wrote:
> Yes, it's worth worrying about. The problem is, you're going to have
> the danger of fragmenting the Clojure user base.
I think Clojure has potential to become *very much* more well known
and used.
Are we sure we want to risk go
On Nov 3, 6:48 pm, Cosmin Stejerean <[EMAIL PROTECTED]> wrote:
> I think clearly spelling out how objects of a type should be sorted is
> the point of the Comparable interface.
Ah, yes, this is true, I hadn't realized that String and Date both
implement Comparable. Comparable is supposed to im
On Nov 3, 3:35 pm, Konrad Hinsen <[EMAIL PROTECTED]> wrote:
> On 03.11.2008, at 17:22, Kelsin wrote:
>
> > First is the use of keywords as the predicate in some forms. For
> > example in the turn function: (:ant @p)
>
> > Does :ant become a function of the map because it's a map? Can you
> > alway
@Phlex & @MikeM, apologies I checked back on Chouser's post and it helped me
to understand that Clojure takes a different approach to macros than Common
Lisp:
Common Lisp
-
(defmacro foobar ()
`(+ a b))
(let
((a 5)
(b 6))
(foobar))
Clojure
On Nov 3, 2008, at 8:35 PM, Mark H. wrote:
>
> On Nov 3, 5:39 pm, "Paul Stadig" <[EMAIL PROTECTED]> wrote:
>> Could/Should the max function be modified to work against the
>> Comparable interface instead of expecting its arguments to be
>> numbers?
>>
>> I'm working with a sequence of strings
Hi all.
First of all, thanks for the joyful language, Clojure.
I am having struggle in understanding functional programming,
which Clojure dictates.
Though I'm not a big fan of object oriented programming,
I totally agree with the model of objects - objects and methods,
entities and functions i
> The semantics of "max string" are unclear enough that it would be
> better to write out the operation explicitly so that all readers of
> the code know what you mean.
Agreed. For example, the semantics of "max string" are locale-
dependent.
Bill
--~--~-~--~~~---~--
On Nov 3, 2008, at 4:09 PM, Paul Stadig wrote:
>
> Hey Drew,
> I'd like to see this come to fruition, and help administer if needed.
I'll volunteer some time to help admin as well.
>
>
> Coming from Ruby (most recently) I may have a Ruby bias, but I think
> that RubyForge has been a great boon
On Nov 3, 2008, at 9:35 PM, Mark H. wrote:
>
> On Nov 3, 5:39 pm, "Paul Stadig" <[EMAIL PROTECTED]> wrote:
>> Could/Should the max function be modified to work against the
>> Comparable interface instead of expecting its arguments to be
>> numbers?
>>
>> I'm working with a sequence of strings
On Nov 3, 4:09 pm, "Paul Stadig" <[EMAIL PROTECTED]> wrote:
> Hey Drew,
> I'd like to see this come to fruition, and help administer if needed.
>
> Coming from Ruby (most recently) I may have a Ruby bias, but I think
> that RubyForge has been a great boon to the Ruby community. It is nice
> to be
On Nov 3, 5:39 pm, "Paul Stadig" <[EMAIL PROTECTED]> wrote:
> Could/Should the max function be modified to work against the
> Comparable interface instead of expecting its arguments to be numbers?
>
> I'm working with a sequence of strings that are dates in the
> "-mm-dd" format, and I want to
Could/Should the max function be modified to work against the
Comparable interface instead of expecting its arguments to be numbers?
I'm working with a sequence of strings that are dates in the
"-mm-dd" format, and I want to find the max. Calling max gives an
exception about not being able to
On Nov 3, 7:03 pm, Chouser <[EMAIL PROTECTED]> wrote:
> [...] It's not pretty, and it only works on functions defined in the clojure
> namespace. [...]
The variation below works in a more general setting: it will look for
the source file anywhere in the classpath (including jar files) or in
user
Just had a quick play with the example you provide, good fun. Almost
impossible to believe, but I think you're on the way to making working
with processing even more interactive!
On Sep 8, 10:43 pm, fyuryu <[EMAIL PROTECTED]> wrote:
> Hi all, I've written a wrapper for Processing.org. It covers m
Hey Drew,
I'd like to see this come to fruition, and help administer if needed.
Coming from Ruby (most recently) I may have a Ruby bias, but I think
that RubyForge has been a great boon to the Ruby community. It is nice
to be able to go to a single site (or do a google site: search) to
find Ruby
Hey Clojurians,
My name is Drew Crampsie, and i'm the administrator of the machine
that runs common-lisp.net, cliki, and paste.lisp.org. I'm interested
in setting up an similar site for clojure projects. If you don't know
about cl-net, it's a project hosting site that provides version
control ser
And of course after I post this the original finally posts, sorry
about that, should have waited longer.
Chris G
On Nov 3, 3:05 pm, Kelsin <[EMAIL PROTECTED]> wrote:
> Howdy, I posted this a little while ago and it doesn't seem to have
> posted so I'm reposting. If this comes through twice I'm s
On Nov 3, 7:59 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I'm not advocating the GPL...only a GPL compatible license. Regarding
> the benefits to a dual license or reclicense, are you sure there
> *aren't* benefits? If it is easy to move to GPL compatibility, then
> is it worth worryin
On 03.11.2008, at 17:22, Kelsin wrote:
> First is the use of keywords as the predicate in some forms. For
> example in the turn function: (:ant @p)
>
> Does :ant become a function of the map because it's a map? Can you
> always do this? Isn't this the same as (@p :ant)?
Yes, yes, and yes.
> Is
Howdy, been enjoying learning Clojure and watching some screencasts
but had to simple (I think) questions about the ant code that I
haven't been able to find info about on the site or in this group
(though I admit my lack of knowledge about what to call these two
questions could lead me to not fin
Howdy, I posted this a little while ago and it doesn't seem to have
posted so I'm reposting. If this comes through twice I'm sorry for
double posting.
My first question is about the form: (:ant @p)
How does :ant get to be used as a verb? Do all keywords expand to
(@p :ant) if @p is a map or some
*
*
*2nd European Lisp Symposium (ELS 2009)
*
*
*
* Milan, Italy, May 27-29, 2009
*
* Università degli Studi di Milano-Bicocca
*
*
*
**
I've been trying to get clojure working with slime (on windows). I can
run ants.clj from the command line fine. I can run simple expressions
under slime (e.g. (+ 2 3)). However, when I try to run ants.clj from
within slime, I get the following warning in the inferior lisp buffer,
and nothing happe
Dear Clojurians,
since there were several questions on the list concerning
macros I put up a tutorial on the Wiki. Please feel free to
comment, modify and improve:
http://tinyurl.com/6y8857
Sincerely
Meikel
smime.p7s
Description: S/MIME cryptographic signature
@Phlex, I understand why the code is usually bad form.
@MikeM, I had already noticed that it worked on the REPL when I defined
vars. My questions was _why_ it does not work in the case where I have
locals via a let expression?
David
On Mon, Nov 3, 2008 at 12:27 PM, MikeM <[EMAIL PROTECTED]>wrote
On Sat, Nov 1, 2008 at 12:33 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> http://www.dwheeler.com/essays/gpl-compatible.html
>From that page, "it is possible that the CPL is compatible with GPL
version 3" Sounds like GPL-compatibility may be coming to us without
us having to change anyth
On Nov 2, 10:52 pm, "Mark H." <[EMAIL PROTECTED]> wrote:
> On Nov 2, 10:31 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > (There are examples of projects 'weakening' the GPL in various ways
> > to suit their needs.)
>
> Just out of curiosity (I don't have an interest in this partic
On Nov 3, 2:14 am, mritun <[EMAIL PROTECTED]> wrote:
> Hi Chris
>
> What said problem would moving to GPL solve ? Shouldn't we hear
> atleast a couple of benefits that may be derived from moving to GPL ?
> Are there (GPL) projects that clojure would benefit from incorporating
> directly into the
On Nov 3, 5:35 am, J. Pablo Fernández <[EMAIL PROTECTED]> wrote:
> One thing that might be doable and acceptable is dual licensing. If
> Clojure is realsed as CPL *and* GPL, it can be combined with GPL
> programs and it is not in any way more free than the CPL (say, like if
> you add BSD in the ba
On Sun, Nov 2, 2008 at 6:34 PM, Mark McGranaghan <[EMAIL PROTECTED]> wrote:
>
> I really like being able to find and check documentation in the REPL
> with find-doc and doc, but I often would like to see the source code
> of a function or macro to be able to understand it better or learn
> from th
On Nov 3, 9:57 am, David Nolen <[EMAIL PROTECTED]> wrote:
> (defmacro foobar []
> `'(+ a b))
>
> (let
> [a 5
> b 6]
> (eval (foobar)))
>
> I know that the above is completely useless but I'm just trying to get
> an intuitive understanding of how macros work under Clojure. At the
>
On Nov 3, 2008, at 9:34 AM, Stuart Sierra wrote:
> Hmm, not sure. I don't use SLIME, but I know that run-tests prints
> results to *test-out*, which by default is bound to
> java.lang.System.err. You could try re-binding *test-out* to standard
> output like this:
>
> (binding [*test-out* System
On Sun, Nov 2, 2008 at 6:34 PM, Mark McGranaghan <[EMAIL PROTECTED]> wrote:
>
> I really like being able to find and check documentation in the REPL
> with find-doc and doc, but I often would like to see the source code
> of a function or macro to be able to understand it better or learn
> from th
And this could open the door to "organic code" : dynamically
discovering the source code of functions, and - why not- correcting /
adjusting the code by re-def ining the function by manipulating its
original source code.
Some sort of macro, at runtime :-)
On Nov 3, 3:57 pm, Paul Barry <[EMAIL PR
David Nolen wrote:
> (defmacro foobar []
> `'(+ a b))
>
> (let
> [a 5
> b 6]
> (eval (foobar)))
>
>
>
-You should almost never have to use eval.
-Don't use macros when a function will do
Thanks to the answer of chooser a bit earlier :
cara.trie> (defmacro foobar [] `(+ ~'a ~'b)
Chouser wrote:
> On Mon, Nov 3, 2008 at 9:13 AM, Chanwoo Yoo <[EMAIL PROTECTED]> wrote:
>
> Another option is ~'foo which would
> explicitly capture "foo" from the context where the macro is expanded.
>
> --Chouser
>
>
Nice ! I couldn't find this in the documentation.
Thanks,
Sacha
--
(defmacro foobar []
`'(+ a b))
(let
[a 5
b 6]
(eval (foobar)))
I know that the above is completely useless but I'm just trying to get
an intuitive understanding of how macros work under Clojure. At the
REPL when I try to evaluate the second form, I get an null pointer
exception. W
I agree that this would be helpful.
On Nov 2, 6:34 pm, Mark McGranaghan <[EMAIL PROTECTED]> wrote:
> I really like being able to find and check documentation in the REPL
> with find-doc and doc, but I often would like to see the source code
> of a function or macro to be able to understand it bet
> I have one more trivial question. It seems good that Clojure
> consistently manages all data structures as sequence. But operator
> like 'assoc' can be applied to map and vector, except list and string.
> I'm curious about the reason of this decision.
What would (assoc (list 1 2 3) x y) mean? W
On Nov 2, 11:20 pm, Chanwoo Yoo <[EMAIL PROTECTED]> wrote:
> When I evaluate (run-tests) in a repl of my terminal, I can see test
> messages. But when I do it in slime, I can't see any messages. How I
> can see test results in slime?
Hmm, not sure. I don't use SLIME, but I know that run-tests pr
On Mon, Nov 3, 2008 at 9:13 AM, Chanwoo Yoo <[EMAIL PROTECTED]> wrote:
>
> Below code is copied from 'On Lisp'. I just changed , to ~. But this
> code does not work in Clojure.
>
> (defmacro abbrev [short long]
> `(defmacro ~short [& args]
> `(~'~long [EMAIL PROTECTED])))
>
> Is there any imp
Today, when I was writing some code, which is a macro writing a macro,
I felt strange that it never work.. So I decided to examine existing
code from 'On Lisp'
Below code is copied from 'On Lisp'. I just changed , to ~. But this
code does not work in Clojure.
(defmacro abbrev [short long]
`(def
One thing that might be doable and acceptable is dual licensing. If
Clojure is realsed as CPL *and* GPL, it can be combined with GPL
programs and it is not in any way more free than the CPL (say, like if
you add BSD in the bag). In that way you can keep GPLists happy and
still use CPL.
On Nov 1,
Thanks, fixed.
-- Roland
On Nov 2, 4:49 am, cranebird <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thank you for your good wrapper for processing. I think it makes
> simplify to use PApplet class in clojure.
> I found 'stroke-weight in processing.clj may be wrong - I think it
> should call strokeWeight
On Nov 2, 11:35 pm, David Hilton <[EMAIL PROTECTED]> wrote:
> On Oct 22, 5:15 am, Krukow <[EMAIL PROTECTED]> wrote:
>
> > Rich,
>
> > Was this presentation recorded? Any chance you can upload the slides
> > and/or video for those of us that didn't participate in Lisp50.
>
> > Thanks
> > - Karl
>
On Nov 3, 7:33 am, "Christian Vest Hansen" <[EMAIL PROTECTED]>
wrote:
> On Mon, Nov 3, 2008 at 2:11 AM, Rich Hickey <[EMAIL PROTECTED]> wrote:
> > MIT and BSD are not reciprocal licenses. I want a reciprocal license.
>
> What does it mean that a license is reciprocal?
>
I think in this case it mea
On Oct 22, 5:15 am, Krukow <[EMAIL PROTECTED]> wrote:
> Rich,
>
> Was this presentation recorded? Any chance you can upload the slides
> and/or video for those of us that didn't participate in Lisp50.
>
> Thanks
> - Karl
I'd also be interested in seeing the Lisp50 presentation (I missed it
becaus
Hi Chris
What said problem would moving to GPL solve ? Shouldn't we hear
atleast a couple of benefits that may be derived from moving to GPL ?
Are there (GPL) projects that clojure would benefit from incorporating
directly into the base language compiler and/or libraries ? What are
they ? Are the
51 matches
Mail list logo