Re: Belgian Clojure base meetup?

2012-12-17 Thread Joop Kiefte
I have joined the Amsterdam Clojurians before, but live in Vroenhoven now
(near Maastricht, relatively close to Liége). Maybe a meetup around here
would be something? :)


2012/12/17 Sébastien Wagener 

> Hi Thomas,
>
> I'm from Luxembourg. If the meetup isn't too far away from the border, I
> would be interested.
>
> Sébastien
>
>
> 2012/12/16 Thomas Goossens 
>
>> If you are from Belgium, Don't get too excited - yet - .
>>
>> I've been wondering about organising a small meetup somewhere next
>> semester. (I peeked at our northern neighbours:
>> http://www.meetup.com/The-Amsterdam-Clojure-Meetup-Group/events/88386392/
>> )
>>
>> Though, I have no idea at all how many people here in Belgium are
>> actively using clojure and would be interested in such a thing.
>>
>> Its not a plan, just being curious and checking whether it would be worth
>> the time.
>>
>> So if you are from Belgium, give me a shout!
>>
>> --
>> 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 from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
>  --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: (merge) => nil

2012-08-29 Thread Joop Kiefte
An empty sequence is equal to nil.

2012/8/29 Ambrose Bonnaire-Sergeant :
> My guess is that `merge` has an invariant "if all args are nil, return nil",
> making calls to `seq` "contagious" from args to return value.
>
> => (merge (seq {}) (seq {}))
> nil
>
> Just a guess though.
>
> Thanks,
> Ambrose
>
> On Thu, Aug 30, 2012 at 12:18 AM, Brian Marick  wrote:
>>
>> Why does `(merge)` return nil? I would have expected it to return the unit
>> ({}) by analogy with things like this:
>>
>> (+) => 0
>> (*) => 1
>>
>> -
>> Brian Marick, Artisanal Labrador
>> Contract programming in Ruby and Clojure
>> Occasional consulting on Agile
>>
>>
>> --
>> 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 from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: swap! and atom behavior

2012-08-01 Thread Joop Kiefte
Just pay attention that when using later elements you don't need the
earlier elements, and you should be fine. (IIRC)

2012/8/1 Vinay D.E :
> Thanks Sean & Carlo for the detailed comments!
> The gap in my understanding was exactly *how* lazy 'lazy evaluation' is, so
> the evaluation of 'i' is deferred until it is totally unavoidable.
>
> Just curious, but if I chained a large number of such lazy constructs, isn't
> there danger of a big unpredictable spike in CPU / Memory if something
> deeply nested is accessed ?
> Is there someplace where this is discussed in detail, pros / cons, caveats,
> concepts etc ? Any books that you think I should read ?
>
> Regards
> Vinay
>
>
>
> On Tuesday, 31 July 2012 12:05:13 UTC+5:30, Sean Corfield wrote:
>>
>> > I tried putting a print and it works as expected.
>>
>> Because you are realizing the whole of i to print it.
>>
>> > 1) I assumed that printing out [i @a] instead of [@a i] should realize
>> > 'i'
>>
>> No, [i @a] creates a two-element vector of a lazy-seq and a value (the
>> deref of a). Then, when the REPL prints that vector, it realizes the
>> lazy-seq.
>>
>> > 2) If I put a breakpoint in the predicate for take-while, it gets hit (
>> > I
>>
>> Yes, it is hit while i is being realized.
>>
>> > 3) This is the strangest observation of all: In the debugger I can see
>> > that
>> > 'a' is getting incremented, its changing when the breakpoint is hit!
>> > but
>> > the baffling thing is, when the result is printed out, I still get 0 as
>> > the
>> > value for a.
>>
>> Because the value of @a is bound before i is realized, so 0 is bound
>> into the vector, and then i is realized during which process you see a
>> being incremented.
>>
>> > Isn't (print i) the same as [i @a] ?  since i is realized first,
>> > shouldn't
>> > @a  be correctly printed?
>>
>> No, see above.
>>
>> > Why is the breakpoint showing me that a is changing ?
>>
>> Because it _is_ changing but _after_ the top level of the vector has
>> been evaluated.
>> --
>> Sean A Corfield -- (904) 302-SEAN
>> An Architect's View -- http://corfield.org/
>> World Singles, LLC. -- http://worldsingles.com/
>>
>> "Perfection is the enemy of the good."
>> -- Gustave Flaubert, French realist novelist (1821-1880)
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: question with macro!

2012-05-02 Thread Joop Kiefte
randomly-fn reads the commands first (that's why you need a macro in the
first place) so it prints 1 2 and 3 straight away. If you really need a
function, use lambdas (as in #(print 1) #(print 2) #(print 3))

2012/5/2 金山 

> I defined a macro like this:
> (defmacro randomly [& exprs]
>  (let [len (count exprs)
>ind (rand-int len)
>conditions (map #(list '= ind %) (range len))]
>`(cond ~@(interleave conditions exprs
>
> and then defined a function :
> (defn randomly-fn [& exprs]
> (randomly exprs))
>
> I think there may be a mistake because of the randomly-fn didn't work
> as expected.
>
> (randomly-fn (print 1) (print 2) (print 3))
>
> expected:
> 1 or 2 or 3.
> but returned:
> 123
>
> where is the mistake?
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: on lisp and scheme macros

2011-12-04 Thread Joop Kiefte

Em 12/04/11 03:16, Razvan Rotaru escreveu:

Wow. I didn't thought this was possible. You know, I have seen a lot
of people saying that scheme macros are more "powerfull", citing the
fact that scheme also has lisp macros, while it's not possible to do
it the other way around.
Of course it's possible. I think it's mostly like training wheels on a 
bike and the like: defmacro is some kind of atom macro system you can 
use to do anything you can imagine, but some things are hard to do, and 
the scheme system is just making the common cases easier to do right.


I have been reading the Guile 2.0 documentation (very much worth a read, 
as it's the first Guile with a VM and other languages than Scheme, e.g. 
Emacs lisp) and I think this and that (and Clojure) show very well that 
good lisps is more a case of sensible defaults (Guile: very very easy to 
integrate in C; Clojure: JVM as an asset, immutable by default and 
mutability as an option...) than anything else that makes a lisp better 
or worse. You can basically do everything in every lisp, but defaults 
really matter.


--
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: shortcut for anonymous function literal and syntax quote

2011-11-01 Thread Joop Kiefte
In common lisp for fun I have replicated the #(+ 1 %) syntax without reader
macros as (@ + 1 %), I could try to convert that to clojure to see if it
suits you...

Em terça-feira, 1 de novembro de 2011, Razvan Rotaru escreveu:

> Yeah, you are probably right. But I figured asking never hurts...
> Thanks for the reply.
>
> Razvan
>
> On Oct 19, 10:50 pm, Alan Malloy > wrote:
> > Not really. In _Let Over Lambda_'s section on reader macros, he
> > creates a reader macro #`(foo bar a1 a2) that expands to (lambda (a1
> > a2) `(foo bar ,a1 ,a2)), but this is not possible in Clojure. A nice
> > example of something you can do with reader macros, in case Clojure
> > ever gets them.
> >
> > And you could certainly write it yourself as a regular macro, at the
> > expense of a syntax that's almost as long as the (fn [x] `(foo))
> > syntax. But really, that construct is very short, and worrying about
> > the extra six characters you would save by writing it with #() seems
> > like wasted effort to me.
> >
> > On Oct 19, 1:14 pm,RazvanRotaru >
> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > I'm just wondering is there a nicer way to write this:
> >
> > > (defmacro my-macro [& body]
> > > (map (fn[x] `(my-fun ~x)) body))
> >
> > > I'd like to use the anonymous function literall #(), but this won't
> > > work:
> >
> > > (defmacro my-macro [& body]
> > > (map #(`(my-fun ~%)) body))
> >
> > > So if you have some suggestion, I'd be glad to hear it.
> >
> > > Thanks,
> > >Razvan
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com 
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: "Can't eval locals problem"

2011-10-03 Thread Joop Kiefte
Try (defmacro order-query [params]
 `(ds/query :kind Order :filter (map #(list (key %) (val %)) ~params))) or
(defmacro order-query [params]
 `(ds/query :kind Order :filter (map #(list (key %) (val %)) (eval
~params depending on the necessity of the eval (I suppose you don't
really need the eval... the problem was using the eval in the evaluation of
a macro I guess... ;)).

2011/10/3 Razvan Rotaru 

> Ok, so I'm stuck. If any of you more seasoned clojurians have a hint
> that could get me out, I will be forever gratefull to him/her:
>
> I'm trying execute a query against google app engine datastore, using
> appengine-magic, with the filter dynamically generated from a map.
> Here's the closest code I have been able to come up with:
>
> (defmacro order-query [params]
>  `(ds/query :kind Order :filter ~(map #(list (key %) (val %)) (eval
> params
>
> This macro fails with a "Can't eval locals" error. I recognize that
> the main issue here is that i'm forcing evaluation of something at
> macro expansion time. Apparently clojure does not (fully) support
> this, so I'm looking then for alternatives.
>
> Cheers,
> Razvan
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: heaps in clojure

2011-09-16 Thread Joop Kiefte
Pepijn de Vos had a blogpost about lazy sorts. One of them seems to be a
particularly good fit for this problem:
http://pepijndevos.nl/lazy-sorting/index.html (the heap-sort example seems
the fastest of those for this use-case...).

Em sexta-feira, 16 de setembro de 2011, Mark Engelberg escreveu:

> That's really no different from just sorting the list and taking the first
> 5.  O(n log(n)).
> And for really large data sets, this is going to consume a lot of memory.
>
> The method I outlined would be O(n) and doesn't force the sequence to all
> be resident in memory at the same time.
>
> On Fri, Sep 16, 2011 at 6:22 AM, Jim Oly 
> 
> > wrote:
>
>> Using PriorityQueue should give a good, fast result. Here's my
>> implementation:
>>
>> (defn smallest-n [n xs]
>>  (let [q (java.util.PriorityQueue. xs)]
>>(for [i (range n)] (.poll q
>>
>> (smallest-n 5 (shuffle (range 100)))
>> ;; (0 1 2 3 4)
>>
>> Jim
>>
>> --
>> 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> 'clojure@googlegroups.com');>
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com > 'clojure%2bunsubscr...@googlegroups.com');>
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>  --
> 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 'clojure@googlegroups.com');>
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com  'clojure%2bunsubscr...@googlegroups.com');>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

ClojureScript for Google Chrome webapps

2011-09-08 Thread Joop Kiefte
Has anyone used ClojureScript for Google Chrome webapps already? How would
you structure your workflow/directories if you would do this?

Joop Kiefte

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Adding "Change History" To Clojure Modules

2011-08-04 Thread Joop Kiefte
 In that case I would suggest putting it on top of the file more
or less like this
 with a lot of ;'s at the start. You could create a script to
update that automatically
 from the CVS I suppose, and if you make sure it's autogenerated
and that it comes
 from the CVS it gives a lot more insight for both sides. But
that's my opinion.
 At least I wouldn't put it in the docstring.

(ns code-starts-here ...)

2011/8/4 octopusgrabbus :
> We have a fairly simple development environment here, not that it
> couldn't stand updating, but other than a consultant, I am the only
> developer. I need changes written directly into each file. and here is
> why.
>
> When I got here over seven years ago, there were well over 200 4GL
> modules and a smattering of C modules built into Informix's customized
> runner for 4GL pcode. Almost no module had comments; and almost no
> module had module header information. We also had no formal build.
>
> Yes, I could look things up in CVS, but I find it better to have stuff
> written in the header.
>
> I'm using $Log$, and it works.
>
> Thanks.
>
> On Aug 3, 5:36 pm, Sean Corfield  wrote:
>> I think Joop meant to use the change history in your version control system
>> directly, rather than try to put it into the source code.
>>
>> I think the prevailing best practices these days are to _not_ duplicate
>> change history into source code, even thru VCS keyword substitution. The
>> change history is available in the VCS already and also in your IDE, so
>> anyone who needs to know how a given file has changed can go look that up.
>>
>> Sean
>>
>> On Wed, Aug 3, 2011 at 12:29 PM, octopusgrabbus 
>> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > Is there a preferred method for adding a Change History block to a
>> > Clojure module? I'm doing this for now:
>>
>> > (ns addr-verify
>> >  ^{:author "Charles M. Norton",
>> >    :doc "addr-verify is a small Clojure program that runs address
>> > verification through ...
>>
>> >          Created on August 3, 2011
>> >          Change History: "}
>> >  (:gen-class)
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Adding "Change History" To Clojure Modules

2011-08-03 Thread Joop Kiefte
That was exactly what I meant. Sorry for not responding directly to
the second inquiry, I wanted to see if others thought the same about
this...

2011/8/3 Ben Smith-Mannschott :
> This. 1000 times this.
>
> Don't clutter your source code with this kind of stuff. It'll just
> cause you pain down the road. (Say, when merging two branches.)
>
> // ben
>
> On Wed, Aug 3, 2011 at 23:36, Sean Corfield  wrote:
>> I think Joop meant to use the change history in your version control system
>> directly, rather than try to put it into the source code.
>> I think the prevailing best practices these days are to _not_ duplicate
>> change history into source code, even thru VCS keyword substitution. The
>> change history is available in the VCS already and also in your IDE, so
>> anyone who needs to know how a given file has changed can go look that up.
>> Sean
>> On Wed, Aug 3, 2011 at 12:29 PM, octopusgrabbus 
>> wrote:
>>>
>>> Is there a preferred method for adding a Change History block to a
>>> Clojure module? I'm doing this for now:
>>>
>>> (ns addr-verify
>>>  ^{:author "Charles M. Norton",
>>>    :doc "addr-verify is a small Clojure program that runs address
>>> verification through ...
>>>
>>>          Created on August 3, 2011
>>>          Change History: "}
>>>  (:gen-class)
>>>
>>
>> --
>> 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 from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Adding "Change History" To Clojure Modules

2011-08-03 Thread Joop Kiefte
changelog.txt / VCS?

2011/8/3 octopusgrabbus :
> Is there a preferred method for adding a Change History block to a
> Clojure module? I'm doing this for now:
>
> (ns addr-verify
>  ^{:author "Charles M. Norton",
>    :doc "addr-verify is a small Clojure program that runs address
> verification through ...
>
>          Created on August 3, 2011
>          Change History: "}
>  (:gen-class)
> .
> .
> .
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: [Clojurescript] Any of this in the pipeline?

2011-07-26 Thread Joop Kiefte
GWT is Java to JavaScript, so you can as far as I know use it with
Clojure...

2011/7/26 Daniel 

> These were the four major features which first got me interested in
> GWT:
>
> Widgets that work identically [and correctly!] on all browsers +
> Custom widgets
> Client Bundling (pushing resources into random access files to reduce
> file transfer latency)
> UIBinder
> Optimized & Obfuscated js (adjustable by compiler switches)
>
>
> Maybe I've missed it but I haven't seen any advertising about these
> kinds of things in Clojurescript.  Any thoughts?
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ClojureScript Presentation - video

2011-07-26 Thread Joop Kiefte
YouTube has the cap removed for some time already now, so maybe a good idea
to get it there as well... The integration with several sites and YouTube's
CND are very good, watching on YouTube in e.g. Brasil usually is faster than
most other sites...

2011/7/26 Eric Lavigne 

> Baishampayan Ghose posted this download link in another thread.
>
>
> http://blip.tv/file/get/Richhickey-RichHickeyUnveilsClojureScript918.avi
>
>
> On Tue, Jul 26, 2011 at 4:47 AM, Michel Alexandre Salim <
> michael.silva...@gmail.com> wrote:
>
>> Speaking of video hosting, could the videos also be uploaded to Vimeo?
>> (Is one person in charge of all the videos, presumably the one who
>> controls the blip.tv/clojure account?)
>>
>> I like both services, but Blip.tv seems to have made video downloading
>> more difficult -- video download (and the lack of YouTube's initial
>> 10min cap) was the reason I used both services in the first place.
>>
>> Thanks,
>>
>> On Jul 23, 6:37 pm, Brian  wrote:
>> > Here ya go:
>> http://blip.tv/clojure/rich-hickey-unveils-clojurescript-5399498
>> >
>>
>  --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [meta] Google Groups/gmail support?

2011-07-18 Thread Joop Kiefte
Google is introducing Google+-like feedback buttons now.

2011/7/18 Ken Wesson 

> I can no longer find any forum or submission form for reporting
> problems to Google. You're a bunch of tech-savvy people using Google
> Groups and, probably in many cases, gmail. Do any of you know either:
>
> 1. How to report problems to Google nowadays, in such a way that they
> will actually receive attention rather than disappear down a black
> hole?
>
> 2. How to avoid weirdness like this: I was catching up on the long
> clooj thread, and when I was about halfway down suddenly the browser
> started spinning and then loaded the gmail login page with my username
> filled in but a blank password field! I didn't hit anything but
> MWHEELUP or MWHEELDN proximate to this event, so it seems as if
> somehow *someone else* clicked the "signout" link in the top right
> corner on my behalf. (The mouse pointer FWIW was nowhere near there
> and my hands were off the keyboard, so no mis-click or mis-key could
> have caused it.) This should not be possible, yet it happened. Worse,
> the "back" button did not DTRT and return me to the page I was reading
> and my position partway down that page, even though it should have
> still been in my browser's cache after such a short absence (ten
> seconds? Less?). So I wound up losing my place in the thread and it
> took me several minutes to find the exact right spot again. Obviously
> frustrating, and since I didn't do anything wrong to deserve such
> frustration, this behavior of the browser is obviously incorrect.
> AFAICT, this falls squarely on Google's shoulders no matter where the
> bug is: Google Groups is their responsibility, gmail is their
> responsibility, and the browser I was using was Chrome, which is guess
> whose responsibility? So, does anyone know what caused this and how to
> make sure it never, ever, ever, ever, ever happens again? I do NOT
> want to be in the middle of reading ANY page and suddenly have my
> browser deciding, on its own initiative, to navigate itself to some
> other page. EVER. It's MY browser. It goes where *I* tell it to, when
> *I* tell it to, and NOT BEFORE, and I wish to know how to actually
> enforce that -- which I shouldn't even have to, as that should be its
> natural behavior anyway!
>
> And don't tell me to ditch Chrome and use Firefox. Recent versions of
> Firefox have a very similar and inexplicable behavior that can strike
> on any page and that happens much more frequently: if anything at all
> slows down the computer, such as something else paging or
> wool-gathering, Firefox 4 and above will blank the page you were in
> the middle of reading and hide the tab bar and show a spinning-wheel
> mouse cursor for a while. Or sometimes, inexplicably, jump to the last
> YouTube page visited (why YouTube?), render it shoddily (usually with
> most of the page elements surrounding the media player missing), and
> sit there unresponsive for a while. Then eventually jump back.
>
> I'd take anything else, including a temporarily-nonresponsive browser
> frozen displaying the same page I was on (which I can at least
> continue to read until I hit the bottom of the screen!), over that.
>
> --
> Protege: What is this seething mass of parentheses?!
> Master: Your father's Lisp REPL. This is the language of a true
> hacker. Not as clumsy or random as C++; a language for a more
> civilized age.
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Anyone on Google+ yet?

2011-07-17 Thread Joop Kiefte
I just check if the people in the "people you have both in a circle" match
up with my clojure-circle ;) easy enough :D

2011/7/17 jweiss 

> This does bring up an interesting flaw in G+.  If I add Clojure people
> who I don't know personally, how will they know to add me to a Clojure
> circle?  G+ (rightfully) doesn't automatically tell them what circle I
> added them to.  It doesn't appear to be optional to tell them, either.
>
> On Jul 14, 7:56 pm, Kyle Root  wrote:
> > gplus.to/Kylert
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Jul 14, 2011 at 7:00 PM, ianp  wrote:
> > > Ian
> >
> > > Looks like G+ is pretty popular with the Clojure crowd :-)
> >
> > > --
> > > 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 from this group, send email to
> > > clojure+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/clojure?hl=en
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Anyone on Google+ yet?

2011-07-14 Thread Joop Kiefte
http://profiles.google.com/ikojba

2011/7/14 Claudia Doppioslash 

> My Clojure circle is all set up but empty.
> My g+ is: http://gplus.to/gattoclaudia
>
> Please add link to your profile below.
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: help with some code

2011-07-12 Thread Joop Kiefte
Didn't try, but shoudn't (def alist `(1 ~(fn [x y] (+ x y be better?
Then you don't need the eval :)

2011/7/12 Benny Tsai 

> alist is missing parens around the fn, so it's really a list of 4 elements
> like so:
>
>
>   (1, fn, [x y], (+ x y))
>
> So (second alist) returns just the symbol 'fn.  And when you apply a Symbol
> to a list, the result is the last item in the list (not sure why).
>
> To do what you want, alist should be defined like this:
>
>   (def alist '(1 (fn [x y] (+ x y
>
> Also, it seems that the definition of the function needs to be eval'ed
> first to become an apply-able function.  The following returns 4 in my REPL:
>
>   (apply (eval (second alist)) '(1 3))
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: map

2011-06-17 Thread Joop Kiefte
Check your spaces...

2011/6/17 FD :
> Hello,
>
> What is wrong in this function?
>
> (defn testmap []
>  (do
>    (map #(fn1 %)
>       '("a" "b" "c"))
>    (map #(fn2%)
>       '("1" "2" "3"))
>  ))
> If fn1 = fn2 = println
> the result is
> (1
> 2
> nil 3
> nil nil)
>
> I expected this result
> a
> b
> c
> 1
> 2
> 3
>
> Thanks
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: (. rnd nextInt) vs (.nextInt rnd)

2011-06-15 Thread Joop Kiefte
The difference is that the sugared version works just like a normal
Clojure function. It also eases a lot of things with macros like
(doto).

2011/6/15 James Keats :
> Hi all. I'm struggling to see the point of this (from Pragmatic's
> Programming Clojure):
>
> Java  =>  rnd.nextInt()
> Clojure => (. rnd nextInt)
> sugared => (.nextInt rnd)
>
>
> What's the point of the sugared version? It's not any less to type.
> It's also incomprehensible to me how it came about. In the middle one
> it's simple, class and method, but the in sugared one it's just plain
> simply bizarre looking. What was the intent?
>
> Thanks.
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Radically simplified Emacs and SLIME setup

2011-05-30 Thread Joop Kiefte
And Emacs has Viper-mode (and other Vi-keybinding-stuff) :)

2011/5/30 J.R. Garcia :
> Having worked with Lisp in the path, I didn't get that "interactive"
> feel with VimClojure. I didn't really enjoy using Nailgun either. That
> being said, VimClojure is certainly a great plugin. I also have been
> wanting to get used to the keybindings for emacs because of my daily
> work. I have to use Visual Studio 2008 daily and it has emacs
> keybindings built-in. I don't really want to have to pay $99 for ViEmu
> and VsVim is only for Visual Studio 2010. Anyway, it isn't that
> VimClojure was bad, emacs is just the best fit for me right now.
>
> On May 27, 5:31 am, Wolodja Wentland  wrote:
>> On Thu, May 26, 2011 at 20:37 -0700, J.R. Garcia wrote:
>> > I compiled a new version of emacs from source and started it up.
>> > clojure-jack-in just worked flawlessly. This is stupid simple! Thanks
>> > for your hard work! It's much appreciated for emacs newcomers like me
>> > (I'm a vim user)!
>>
>> I am curious: Why don't you use the excellent vimclojure plugin for vim?
>>
>> If you decide to do so, I would also recommend the paredit implementation in
>> the slimv plugin.
>> --
>>   .''`.     Wolodja Wentland    
>>  : :'  :
>>  `. `'`     4096R/CAF14EFC
>>    `-       081C B7CD FF04 2BA9 94EA  36B2 8B7F 7D30 CAF1 4EFC
>>
>>  signature.asc
>> < 1KViewDownload
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Cyber Dungeon Quest Alpha 1

2011-04-14 Thread Joop Kiefte
Doesn't work for me (Ubuntu x86)

2011/4/14 Timothy Baldridge :
> On Thu, Apr 14, 2011 at 2:03 PM, mark skilbeck
>  wrote:
>> Still doesn't work for me. Same error as Alfredo.
>
> Worked great for me with Win 7, FF4
>
> Want to highlight anything you did in the game? I'm interested in any
> use of agents, etc that you used.
>
> Timothy
> --
> “One of the main causes of the fall of the Roman Empire was
> that–lacking zero–they had no way to indicate successful termination
> of their C programs.”
> (Robert Firth)
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: I understand metadata now!

2011-03-25 Thread Joop Kiefte
Would it be possible to create something like CL's multiple values this way?

2011/3/25 James Reeves :
> On 25 March 2011 10:41, msappler  wrote:
>> Never used metadata until now.
>>
>> I had an insight yesterday that I want to share with you:
>>
>> http://resatori.com/metadata-insight
>
> In my view, it depends whether your :id key is a surrogate key or a natural 
> key.
>
> Object metadata should not affect object equality, so if your :id key
> is just an internal database identifier, you could include it as
> metadata.
>
> But if your :id key is exposed to the outside world, then it should
> not be metadata, because changing the :id would change the external
> representation of the object, and therefore affect equality.
>
> I should also point out that if you want information hiding, then
> object composition might be a better solution. For example:
>
>  (defprotocol Identifiable
>    (id [self] "Return an object's unique id"))
>
>  (deftype DBRef [db-id data]
>    Identifiable
>    (id [_] db-id)
>    clojure.lang.IDeref
>    (deref [_] data))
>
>  (defn db-ref [id data]
>    (DBRef. id data))
>
> Then we can get information about the reference, and deref it to get
> its contents:
>
>  (def user
>    (db-ref 193 {:login "fred"}))
>
>  => (id user)
>  193
>  => @user
>  {:login fred}
>
> - James
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: discussing Clojure with non-CS types

2010-11-24 Thread Joop Kiefte
2010/11/24 cej38 :
> 5. ease of changing function calls to allow for extra stuff/
> functionality without breaking other stuff.  An example would be best
> here.  Suppose I had defined some function that worked for a specific
> purpose:
>
> (defn setzero [value]
>  "If value is less than 1.0E-8 setzero returns zero.."
>  (if (tolerance? value 1.0E-8) 0 value))
>
> and later I decided that I would really like to use that same function
> again, but that 1.0E-8 won't work in this new case.  I can change
> setzero so that it will work with all of my old code (without change
> to the old code) but I can make it work new code as well.
>
> (defn setzero
>  "If value is less than parameter setzero returns zero.  If no
> parameter is specified, the default value of 1.0E-8 is used."
> ([value]
> (setzero value 1.0E-8))
> ([value parameter]
>  (if (tolerance? value 1.0E-8) 0 parameter)))

You mean this I suppose:

(defn setzero
 "If value is less than parameter setzero returns zero.  If no
parameter is specified, the default value of 1.0E-8 is used."
([value]
(setzero value 1.0E-8))
([value parameter]
 (if (tolerance? value parameter) 0 value)))

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: How to simplify cond statements

2010-10-29 Thread Joop Kiefte
(first (flatten ...)) ?

2010/10/29 andrei :
>
>
> On Oct 29, 2:14 pm, Meikel Brandmeyer  wrote:
>> There's nothing stoping you to put a let in a loop.
>
> Yes, but imagine a bit more complicated case, for example, instead of
> '(first (first ps))' write (.foo (first ps)), and it will crash. I'm
> looking for elegant, but general case template.
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Literal collection of numbers - prefer list or vector?

2010-09-25 Thread Joop Kiefte
the vector form. in idiomatic clojure, lists are practically only used
for code and macro's.

2010/9/25 HiHeelHottie :
> For a literal collection of numbers which would be more idiomatic and
> why?
>
> (reduce + '(1 2 3)) vs (reduce + [1 2 3])
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: A difficult Metaphor for Macros (especially for Java people)

2010-09-08 Thread Joop Kiefte
Actually, this metaphor has been used before. Check
http://www.defmacro.org/ramblings/lisp.html for an other version of
your story ;).

2010/9/8 alux :
> Hello,
>
> I still try to read my way through Paul Grahams "On Lisp", and always
> think how to motivate this stuff to my fellow Java people. How do I
> describe what it is all about in this "Code is Data", and "Macros let
> you grow your own language towards the problem" stuff?
> [Why? Well, maybe I read to much of Paul Grahams texts. So my current
> working hypothesis is that this is the one big strength of Lisp that
> other languages still dont have - so if I want to motivate people to
> learn a Lisp, I have to at least point to it.]
>
> Short answer: Difficult. ;-)
>
> Especially if I find formulations like
> "You can have the language which suits your program, even if it ends
> up looking quite different from Lisp."
>
> Longer Answer:
>
> What puzzles me most about this quoted formulation is the words
> "different from Lisp", as I know: All my Java collegues see
> Lisp=Parentheses. So, to them, PGs formulation is even misleading. To
> them it doesn't look quite different at the end.
>
> Thus I try to come up with a metaphor, and I want to discuss it here,
> in the hope I don't tell them rubbish at the end.
>
> I want to liken XML to Lisp data. Then, with XSLT, some XML structures
> are actually programs. Programs that work on XML data. The Lisp
> parentheses are just like the basic XML syntax - elements, tags,
> attributes. Obviousely Lisp has a much simpler syntax, but its trees
> anyway. So XSLT can be likened to Lisp macros then.
>
> And the use of it? Well, I currently want to talk to some people who
> use Maven a lot. So the example I came up with is:
> Think about when you had Ant, some years ago. Ant is just a
> programming language for Java builds.
> After a while you recognise that it'd be better to have something that
> describes the project declaratively, with opinionated defaults. Well,
> after some discussions you define something called pom.xml, that does
> this (congratulation, we just invented Maven). Immediately you see
> that all these Ant build scripts mentioned above could be generated
> from this Maven pom.xml. So you might write XSLT to do so (this of
> course deviates from historical truth). Some step later, you don't
> generate them anymore as files; the only needed file is the pom.xml,
> and the transformations of course.
>
> So XML and XSLT are data and code, and they can do something that is
> a) similar to what Lisp macros do, and
> b) this is something my collegues understand.
>
> Hopefully.
>
> So, coming back to Paul Grahams quote, what the beginners see is: It
> was XML and stays XML. The things "looking quite different" are, in
> this metaphor, the XML schema of the Maven pom.xml versus the XML
> scheme of the Ant files.
>
> I hope that they will understand the power; and agree they will never
> try and do this in XSLT. The Lisp syntax is just simple enough to be
> usable for such tasks.
>
> So, now you probably understand why I ask this question here, even if
> it is a general Lisp question. This may be the only group where people
> understand Lisp and Macros, XML/XSLT, and Ant, and Maven ;-)
>
> Now the question:
> Do you see any problems with this metaphor, is it misleading
> somewhere?
>
> Thank you, alux
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: can't def m-bind because namespace

2010-09-07 Thread Joop Kiefte
Monads are mostly used because they are necessary in Haskell. In
Clojure the urgent need is not there. However, you can sure get some
cleaner and/or more composable code if you use monads in your
advantage.

2010/9/7 Jacek Laskowski :
> On Tue, Sep 7, 2010 at 4:04 PM, Nicolas Oury  wrote:
>
>> Hope that helps.
>
> It did. Thanks. Would you share some examples of its use in Clojure
> apps? I'd love seeing more examples where a monad-based solution is
> contrasted/compared to its more traditional, common approach. I wonder
> why monads are not extensively used? Is the category theory the reason
> to its little use (= people don't understand monads' value?).
>
> Jacek
>
> --
> Jacek Laskowski
> Notatnik Projektanta Java EE - http://jaceklaskowski.pl
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Documentation tools

2010-09-06 Thread Joop Kiefte
Is it feasable to create a literate haskell like alternate format for Clojure?

2010/9/6 Tim Daly :
> See http://en.wikipedia.org/wiki/Axiom_computer_algebra_system
> which is "in process" to become a fully literate computer
> algebra system. 20 volumes so far and a lot of documentation
> still to come.
>
> Once a system gets larger than one person's head (e.g. Rich's)
> then the question of "why" becomes interesting. Once it becomes
> large enough to have a full community the question of "why"
> becomes vital. Unfortunately, the "why" answers rarely get
> written down by the primary developers and the follow-on developers
> have to guess.
>
> Literate programs are a place to write down what motivates a design
> choice (the "why") so that others can share the same motivation.
> Thus when they see really complex code (e.g. 32-tries) they can
> judge whether this is still reasonable ("should we use 64-tries?")
> or whether it should just go away ("the hardware doesn't have cache").
> Without the motivation the code will be mangled by well-meaning coders.
>
> The Clojure project needs an english major to become the "editor-in-chief".
> This person should not let any code enter the core or the accepted contrib
> without a strong story line. Good code, like good characters, should have
> strong motivations for what gets done. We should just be able to download
> the Clojure "book", read it, and execute it.
>
> Maybe Stu can get his book editor on board :-)
>
> Tim Daly
>
> Joop Kiefte wrote:
>>
>> To have a good idea of how this can work, see Literate Haskell
>>
>> 2010/9/6 Tim Daly :
>>
>>>
>>> The literate programming discussion centered around the question
>>> "what should be the state of the art in clojure documentation",
>>> not "what is the state of the art in clojure documentation".
>>>
>>> If you're looking for API documentation then literate programming
>>> is the wrong tool. An API would document calling conventions and
>>> something like javadoc would be most appropriate. For the API see
>>> http://clojuredocs.org/quickref/Clojure%20Core
>>>
>>> A literate program is intended as a novel-like presentation where
>>> the code is presented along with its motivation. So you would expect
>>> to find a discussion of why 32-way trie-like structures are used in
>>> data structures or why data structures are immutable. This information
>>> is available in some videos but has not been associated with the code.
>>>
>>> Tim Daly
>>>
>>> Mark Engelberg wrote:
>>>
>>>>
>>>> I spent some time recently documenting a large clojure project.  The
>>>> approach I used was a combination of doc-strings, comments throughout
>>>> my code, and a project-wide emacs-org-mode file summarizing the point
>>>> of each file, the important functions in each file categorized by
>>>> purpose, and an overview of how to use those functions effectively.
>>>> It worked, but I'm not entirely pleased with the result.  There was a
>>>> lot of duplication between the org-mode file and the comments within
>>>> the files, and I have a feeling it will be hard to maintain the
>>>> documentation as the project evolves.
>>>>
>>>> autodoc doesn't work on Windows, but even if it does, I'm not certain
>>>> it would be sufficient for me.  As far as I know, it's main purpose is
>>>> to show an alphabetized API of all the public functions and
>>>> docstrings, which is a good start, but doesn't allow for the kind of
>>>> categorization and usage notes I think would be ideal.  A couple years
>>>> ago, when I was doing a lot of Actionscript coding, I fell in love
>>>> with Natural Docs (http://www.naturaldocs.org/) and this is really the
>>>> kind of thing I would most enjoy using if I'm going the route of
>>>> automatically extracting comments and doc strings, because it gives
>>>> good control over how the API is organized, and the extra annotations
>>>> are quite readable in the code.
>>>>
>>>> The recent post of the website that displays the clojure API
>>>> categorized by purpose is a good example of the kind of thing I'm
>>>> looking for.  Recently, there was a thread about Literate Programming,
>>>> including org-babel and Mark Fredrickson's chan

Re: Documentation tools

2010-09-06 Thread Joop Kiefte
To have a good idea of how this can work, see Literate Haskell

2010/9/6 Tim Daly :
> The literate programming discussion centered around the question
> "what should be the state of the art in clojure documentation",
> not "what is the state of the art in clojure documentation".
>
> If you're looking for API documentation then literate programming
> is the wrong tool. An API would document calling conventions and
> something like javadoc would be most appropriate. For the API see
> http://clojuredocs.org/quickref/Clojure%20Core
>
> A literate program is intended as a novel-like presentation where
> the code is presented along with its motivation. So you would expect
> to find a discussion of why 32-way trie-like structures are used in
> data structures or why data structures are immutable. This information
> is available in some videos but has not been associated with the code.
>
> Tim Daly
>
> Mark Engelberg wrote:
>>
>> I spent some time recently documenting a large clojure project.  The
>> approach I used was a combination of doc-strings, comments throughout
>> my code, and a project-wide emacs-org-mode file summarizing the point
>> of each file, the important functions in each file categorized by
>> purpose, and an overview of how to use those functions effectively.
>> It worked, but I'm not entirely pleased with the result.  There was a
>> lot of duplication between the org-mode file and the comments within
>> the files, and I have a feeling it will be hard to maintain the
>> documentation as the project evolves.
>>
>> autodoc doesn't work on Windows, but even if it does, I'm not certain
>> it would be sufficient for me.  As far as I know, it's main purpose is
>> to show an alphabetized API of all the public functions and
>> docstrings, which is a good start, but doesn't allow for the kind of
>> categorization and usage notes I think would be ideal.  A couple years
>> ago, when I was doing a lot of Actionscript coding, I fell in love
>> with Natural Docs (http://www.naturaldocs.org/) and this is really the
>> kind of thing I would most enjoy using if I'm going the route of
>> automatically extracting comments and doc strings, because it gives
>> good control over how the API is organized, and the extra annotations
>> are quite readable in the code.
>>
>> The recent post of the website that displays the clojure API
>> categorized by purpose is a good example of the kind of thing I'm
>> looking for.  Recently, there was a thread about Literate Programming,
>> including org-babel and Mark Fredrickson's changeling lein plugin,
>> which also raised interesting possibilities.  So I'm guessing a lot of
>> people are interested in versatile doc tools and are working on and
>> exploring the options.
>>
>> So this seems like a good time to ask:  what is the current
>> state-of-the-art in Clojure documentation tools?
>>
>>
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Why Jetty? (web development)

2010-09-01 Thread Joop Kiefte
Sorry, non-native English. The "What about" got me confused.

You mean more like how to get it done?

2010/9/1 Sean Corfield :
> On Wed, Sep 1, 2010 at 12:14 AM, Joop Kiefte  wrote:
>> You can just as well use those. Jetty is just more practical for
>> development, as you don't need to deploy to be able to test it.
>
> That doesn't exactly help answer my question :)
> --
> Sean A Corfield -- (904) 302-SEAN
> Railo Technologies, Inc. -- http://getrailo.com/
> An Architect's View -- http://corfield.org/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Why Jetty? (web development)

2010-09-01 Thread Joop Kiefte
You can just as well use those. Jetty is just more practical for
development, as you don't need to deploy to be able to test it.

2010/9/1 Sean Corfield :
> It seems that all the Clojure web frameworks expect you to be using
> Jetty - what about deploying to Tomcat or Resin or JBoss or...?
> --
> Sean A Corfield -- (904) 302-SEAN
> Railo Technologies, Inc. -- http://getrailo.com/
> An Architect's View -- http://corfield.org/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: trouble using nested map fn

2010-08-23 Thread Joop Kiefte
bad example =/

Yes, it is

but you get the gist I hope

better example: #(first (sort %)) ;)

2010/8/23 gary ng :
> On Mon, Aug 23, 2010 at 8:50 AM, Joop Kiefte  wrote:
>> uses like #(first %) keeps the code cleaner
>>
> Is that the same as just 'first' like :
>
> (map first [[1 2] [3 4]])
>
> (map #(first %) [[1 2] [3 4]))
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: trouble using nested map fn

2010-08-23 Thread Joop Kiefte
uses like #(first %) keeps the code cleaner

on the other hand, for more complicated things I would really not
recommend the short form

2010/8/23 gary ng :
> On Mon, Aug 23, 2010 at 8:31 AM, Luka Stojanovic  wrote:
>> It's not about nested maps, but about nested anonymous functions: if you
>> nest anonimous functions you must use (fn [] ...) like:
>>
>> (map (fn [t s] (map #(map * %1 %2) t s)) target signal)
>>
>
> This has me question, how useful the #(...) form is as clojure's
> lambda form i.e. (fn [t s] ...) is already very clean and it conveys
> more information of what it is than the relatively cryptic %1 %2 ...
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: let binding ~'=

2010-08-21 Thread Joop Kiefte
it is a macro with a syntax quote, so all symbols are
namespace-qualified. so = will actually be clojure.core/=

the ~' removes this namespace-qualification, so it is rendered as just =.

2010/8/21 limux :
> This is some code in a blog of William Gropper, the useage of ~'=
> confused me, waiting some more detailed explain, advanced thanks
>
> (defmacro filter
>  [pred query]
>  `(let [~'and (fn[& xs#] (apply str (interpose " AND " xs#)))
> ~'or (fn[& xs#] (apply str (interpose " OR " xs#)))
> ~'= (fn[x# y#] (sql-exp "=" x# y#))
> ~'> (fn[x# y#] (sql-exp ">" x# y#))
> ~'< (fn[x# y#] (sql-exp "<" x# y#))
> ~'like (fn[x# y#] (sql-exp "like" x# y#))
> ~'in (fn[x# xs#]
> (str (sqlize x#) " IN (" (apply str (interpose ", " xs#)) ")"))]
>     (apply str ~query " where " ~pred)))
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Docstrings in Clojure?

2010-08-19 Thread Joop Kiefte
(defn function-name
"Your docstring goes here"
[your argument list & more]
   (call some functions))

2010/8/19 Paddy3118 :
> Hi, Does clojure have docstrings: http://en.wikipedia.org/wiki/Docstring
> and, if so, do you have a link to the feature in the Clojure
> documentation? Thanks.
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: What is the reason Lisp code is not written with closing parenthesis on new lines?

2010-08-18 Thread Joop Kiefte
Actually, to be honest the short C++ example with lisp bracket style I
find a lot easier to read: I don't need to scan all the page to find
what belongs where...

2010/8/18 Greg :
>> Now the question you're asking is, why don't lispers write
>>  (MyFactory somearg
>>  )
>> which makes me cringe.
>
> That's not at all what's being suggested -- you'll find that both in the OP's 
> code and in the link below, there are many locations where closing 
> parenthesis are ended on the same line.
>
> Trailing parens are placed only for certain blocks that traditionally would 
> define a "scope" in another language, and this is convenient for many 
> reasons, including generic reasons not attached to any specific language. 
> It's not about carrying over "much loved C style" to Lisp, but to make actual 
> use of parenthesis for the purpose of clearly outlining the structure of your 
> code.
>
> Again, the link goes much more into depth on this.
>
> Attached is a screenshot of some code from the wonderful Incanter library. I 
> think it's a great illustration of how confusing stacking parenthesis can be 
> (there are many functions in there that are like this).
>
> The readability issue occurs when there's a drop in several indentation 
> levels after many lines.  This is a problem regardless of what the 
> indentation width is, but is certainly made worse by a small indentation 
> width.
>
> - Greg
>
>
>
> On Aug 18, 2010, at 1:17 PM, Tim Daly wrote:
>
>> A more serious answer is that when I code in Java I use the
>> brace-on-a-line kind of indentation. When I code in Lisp I
>> never write single-line parens of any kind.
>>
>> I find that I think differently in each language.
>>
>> My Java code is always a pile of declare-this, do-this, do-this, return
>> Thus I find that I'm delimiting the scope of my variables, marking my
>> control flow and branching logic, try/catch logic, class boundaries, etc.
>>
>> My Lisp code mixes control flow and data structures in the same syntax.
>> Thus the idea that parens are some kind of control flow delimiter is
>> not particularly meaningful.
>>
>> To see the alternative case, take a Java program, find every function call
>> such as:
>>   MyFactory(somearg);
>> throw away the ';', and move the paren left to get:
>>  (MyFactory somearg)
>>
>> Now the question you're asking is, why don't lispers write
>>  (MyFactory somearg
>>  )
>> which makes me cringe.
>>
>> A second reason is that Lisp allows you to think things that Java
>> does not. Java has this imperative, object-oriented, hierarchical
>> style of writing. My lisp code sytle varies to fit the problem.
>> Sometimes it is imperative, sometimes functional, sometimes OO,
>> sometimes snobol-like pattern matching, sometimes class-based.
>> Occasionally I dynamically construct the code and execute it inline.
>> Or I use macros to create my own problem language and code in that.
>> And I create my data structures "on the fly" inline to the code.
>>
>> Once you really internalize lisp there are no real constraints
>> on what you think or write. Thus there is no question of "bracing
>> style" that is meaningful.
>>
>> The whole idea of "bracing style" is Java-think. Your language
>> choice has given you an OO-procedural mindset. So when you reach
>> for Lisp you want to see what you have come to expect. People who
>> work with bricks (Java) tend to wonder why they don't find bricks
>> among people who work with modelling clay (Lisp). The answer isn't
>> in the material, it is in your mindset.
>>
>> Just by looking at lisp code I can tell what your native language
>> is. Fortran programmers simulate COMMON blocks, C programmers use
>> things as pointers, etc. "You can write Fortran in any language"
>> is a famous quote but "you can't write Lisp in any language". And
>> you can quote me on that. (But only in my obituary :-) )
>>
>> In fact, I think that this is going to be the hardest barrier
>> to the adoption of Clojure. "Real Java Programmers" are not going
>> to like the bracing style (or lack thereof) in Clojure.
>>
>> Tim Daly
>>
>> Greg wrote:
>>> It's almost purely community convention that has been adopted from Lisp.
>>>
>>> You may be interested in this link:
>>>
>>> http://gregslepak.posterous.com/on-lisps-readability
>>>
>>> There is much discussion about this topic there.
>>>
>>> Cheers,
>>> Greg
>>>
>>> On Aug 18, 2010, at 2:09 AM, michele wrote:
>>>
>>>
 Wouldn't that make it easier to keep track of them.

 Example:

 (defn myfn-a [a b]
 (if (zero? b)
   a
   (recur
     (afn (bfn (...)) a)
     (dec b

 (defn myfn-b [a b]
 (if (zero? b)
   a
   (recur
     (afn (bfn (...)) a)
     (dec b)
   )
 )
 )

 --
 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 b

Re: Clojure Web Programming group?

2010-08-17 Thread Joop Kiefte
I am playing a bit with shapado (open source stackoverflow clone in
ruby, I made an Esperanto QA site with it at demandoj.tk) and maybe
it's an idea to create a clojure webdev shapado thus creating a fun to
use self-documenting system and using the wikipages etc to provide
more information of all separate projects...

For project specific stuff I think mailing lists are the best thing
since sliced bread. However for newbie questions and documentation it
gets messy quite quickly, so I think a QA site for all of the Clojure
Webdev stuff might be nice.

Weird idea?

2010/8/17 TIM MCIVER :
> I'm new to Clojure and fairly new to FP in general.  I'm trying to write a
> web app in Clojure and I would definitely like to see something like that.
>
> Tim
>
> 
> From: Saul Hazledine 
> To: Clojure 
> Sent: Tue, August 17, 2010 10:15:30 AM
> Subject: Clojure Web Programming group?
>
> Hello,
>   Personally I really like the way web development in Clojure is
> improving. Rather than huge frameworks there are different libraries
> that are coming together to form a useful toolset. Even the framework
> Conjure is lightweight and using general purpose libraries under the
> hood.
>
> One drawback of this library approach though is that it is daunting to
> beginners. Not only do newcomers have to choose what tools they want
> to use they have to find a way to fit them together.
>
> I've noticed that each library is being supported in their own group/
> forum. This is fine for the well used libraries but less mainstream
> libraries have groups with little traffic. Also, since libraries need
> to interoperate it would be nice to have a place where library users
> and library developers are aware of other web development going on.
>
> I have developed three small libraries, mostly useful for web work,
> that could be of interest to other people. However, I don't want to
> start three different google groups which not only see no traffic but
> also separate some tools which can be best applied together. Because
> of this I was going to just have one group that supported all three.
>
> One idea I had though was to go one step further and start a Clojure
> web development group so that other developers of small libraries and
> users of them could go to one place for support and discussion. Would
> this be uncool or would it be useful?
>
> Saul
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

Demandoj en aŭ pri Esperanto? Questions about Esperanto? Vragen over
Esperanto? Perguntas sobre o Esperanto? - http://demandoj.tk

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Joop Kiefte
http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/require
tells me you need to put it in a quoted list (require is a function,
so you have to quote anyway. Don't know at the moment if the :require
works differently, but I think it shouldn't)

2010/8/11 Folcon :
> The stacktrace is as follows:
>
> Backtrace:
>  0: clojure.lang.LazySeq.sval(LazySeq.java:47)
>  1: clojure.lang.LazySeq.seq(LazySeq.java:56)
>  2: clojure.lang.LazySeq.first(LazySeq.java:78)
>  3: clojure.lang.RT.first(RT.java:549)
>  4: clojure.core$first__4227.invoke(core.clj:45)
>  5: clojure.core$ns__6317.doInvoke(core.clj:3912)
>  6: clojure.lang.RestFn.invoke(RestFn.java:460)
>  7: clojure.lang.Var.invoke(Var.java:371)
>  8: clojure.lang.AFn.applyToHelper(AFn.java:184)
>  9: clojure.lang.Var.applyTo(Var.java:476)
>  10: clojure.lang.Compiler.macroexpand1(Compiler.java:4504)
>      [No Locals]
>  11: clojure.lang.Compiler.macroexpand(Compiler.java:4564)
>  12: clojure.lang.Compiler.eval(Compiler.java:4628)
>  13: clojure.lang.Compiler.load(Compiler.java:4972)
>  14: clojure.lang.RT.loadResourceScript(RT.java:330)
>  15: clojure.lang.RT.loadResourceScript(RT.java:321)
>  16: clojure.lang.RT.load(RT.java:399)
>  17: clojure.lang.RT.load(RT.java:371)
>  18: clojure.core$load__6449$fn__6458.invoke(core.clj:4171)
>  19: clojure.core$load__6449.doInvoke(core.clj:4170)
>  20: clojure.lang.RestFn.invoke(RestFn.java:413)
>  21: clojure.core$load_one__6379.invoke(core.clj:4007)
>  22: clojure.core$load_lib__6400.doInvoke(core.clj:4044)
>  23: clojure.lang.RestFn.applyTo(RestFn.java:147)
>  24: clojure.core$apply__4370.invoke(core.clj:438)
>  25: clojure.core$load_libs__6417.doInvoke(core.clj:4070)
>  26: clojure.lang.RestFn.applyTo(RestFn.java:142)
>  27: clojure.core$apply__4370.invoke(core.clj:438)
>  28: clojure.core$require__6440.doInvoke(core.clj:4138)
>  29: clojure.lang.RestFn.invoke(RestFn.java:413)
>  30: stockit.core
> $eval__2978$loading__6309__auto2980.invoke(core.clj:2)
>  31: stockit.core$eval__2978.invoke(core.clj:2)
>  32: clojure.lang.Compiler.eval(Compiler.java:4642)
>  33: clojure.lang.Compiler.eval(Compiler.java:4634)
>  34: clojure.lang.Compiler.load(Compiler.java:4972)
>  35: swank.commands.basic$compile_region__1135.invoke(basic.clj:57)
>  36: swank.commands.basic
> $eval__1235$compile_string_for_emacs__1237$fn__1239.invoke(basic.clj:
> 172)
>  37: swank.commands.basic
> $eval__1235$compile_string_for_emacs__1237.invoke(basic.clj:166)
>  38: clojure.lang.Var.invoke(Var.java:375)
>  39: stockit.core$eval__2972.invoke(NO_SOURCE_FILE)
>  40: clojure.lang.Compiler.eval(Compiler.java:4642)
>  41: clojure.core$eval__5236.invoke(core.clj:2017)
>  42: swank.core$eval_in_emacs_package__586.invoke(core.clj:94)
>  43: swank.core$eval_for_emacs__698.invoke(core.clj:241)
>  44: clojure.lang.Var.invoke(Var.java:367)
>  45: clojure.lang.AFn.applyToHelper(AFn.java:179)
>  46: clojure.lang.Var.applyTo(Var.java:476)
>  47: clojure.core$apply__4370.invoke(core.clj:436)
>  48: swank.core$eval_from_control__589.invoke(core.clj:101)
>  49: swank.core
> $spawn_worker_thread__721$fn__753$fn__755.invoke(core.clj:300)
>  50: clojure.lang.AFn.applyToHelper(AFn.java:171)
>  51: clojure.lang.AFn.applyTo(AFn.java:164)
>  52: clojure.core$apply__4370.invoke(core.clj:436)
>  53: swank.core$spawn_worker_thread__721$fn__753.doInvoke(core.clj:
> 296)
>  54: clojure.lang.RestFn.invoke(RestFn.java:402)
>  55: clojure.lang.AFn.run(AFn.java:37)
>  56: java.lang.Thread.run(Unknown Source)
>
> On Aug 11, 1:00 pm, Meikel Brandmeyer  wrote:
>> Hi,
>>
>> On 11 Aug., 09:12, Folcon  wrote:
>>
>> > I've tried using the format shown on the docs which is:
>>
>> > (ns your-namespace
>> >   (:require clojure.contrib.io))
>>
>> > And this is what causes the exception.
>>
>> Do you have some more information about the stacktrace? It should say
>> in which file the exception happened. The above ns clause looks
>> correct.
>>
>> Sincerely
>> Meikel
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.co

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Joop Kiefte
quote it?

2010/8/11 Folcon :
> I've tried using the format shown on the docs which is:
>
> (ns your-namespace
>  (:require clojure.contrib.io))
>
> And this is what causes the exception.
>
> On Aug 11, 12:06 pm, Folcon  wrote:
>> I'm trying to create an input stream to use with some libraries. I've
>> been trying to require clojure.contrib.io to use the input-stream
>> function.
>>
>> However I keep getting the exception.
>> java.lang.IllegalArgumentException: Don't know how to create ISeq
>> from: clojure.lang.Symbol
>>
>> Can anyone help?
>>
>> Thanks!
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: chinese character in hiccup

2010-08-10 Thread Joop Kiefte
What do you get if you use the meta-line with GBK encoding? if that
gives the right output, it is an input problem (i.e. the input is not
UTF-8).

2010/8/10 Rasmus Svensson :
> 2010/8/10 limux :
>> There is some chinese chararters in the tables. I want to display them
>> by hiccup, but browser display those chinese character as ???.
>
> I spoke to him on #clojure and from what I could tell from some
> experiments I asked him to run:
>
> (map int "刘孟江") -> (21016 23391 27743)
>=> no source file encoding issues
>
> (.name (java.nio.charset.Charset/defaultCharset)) -> "GBK"
>=> his OS default encoding is GBK ("GBK is an extension of the
> GB2312 character set for simplified Chinese characters, used in the
> People's Republic of China.")
> some libs might erroneously rely on that the OS default
> encoding is UTF-8 or something else
>
> (defroutes app (GET "/" [] (java.io.ByteArrayInputStream. (.getBytes
> "刘孟江" "UTF-8" -> showed
> up correctly
>=> works, since we do the encoding ourselves
>
> (defroutes app (GET "/" [] " http-equiv='Content-Type' content='text/html;
> charset=UTF-8'>刘孟江")) -> showed up
> correctly
>=> ring uses UTF-8 as the default encoding no matter what the OS
> default is. a very reasonable behavior, since then the result is
> always deterministic.
>
> This leaves me to the conclusion that the error is caused by hiccup
> somehow (which he also used), since everything seems to work fine
> without it. I might look into this later this evening to see if I can
> reproduce the error that occurred for him.
>
> // raek, your encoding wizard
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: chinese character in hiccup

2010-08-10 Thread Joop Kiefte
Try using [:meta {:http-equiv "Content-Type" :content "text/html;
charset=utf-8"}] inside your [:head]

(can this be done with Jetty?)

2010/8/10 limux :
> hi!
>
> I am doing a real-file demo with ring, compojure, hiccup, and database
> access as well.
> There is some chinese chararters in the tables. I want to display them
> by hiccup, but browser display those chinese character as ???. But the
> prn to console is ok. I am confused since I was a newbie in Clojure
> and not very familiar with Java yet.
> Also, There is extractly not very much people who are using or
> familiar with Clojure in china(known as myself). even some of famous
> IT web or blog does not have many articles about Clojure to put on. So
> there is no any where or any one I can get help.
>
> I uses Windows 7 as the dev platform. Heartly thanks of advices!
>
> Limux,
> Regards.
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: take-while2?

2010-08-07 Thread Joop Kiefte
Maybe you should call that take-until or something like that :)

2010/8/7 Steve Purcell :
> Oh, right, so maybe:
> (last (take-while #(< (apply + %) 100) (reductions conj [] (iterate inc
> 0
> => [0 1 2 3 4 5 6 7 8 9 10 11 12 13]
> -Steve
>
> On 7 Aug 2010, at 13:57, Andreas Liljeqvist wrote:
>
> It should use "+" for reducing the taken list.
> Behind the scenes I would envision some accumulator passed to pred.
> This examples takes elements while their total sum is less than 100.
>
> 2010/8/7 Steve Purcell 
>>
>> On 7 Aug 2010, at 11:15, bonega wrote:
>>
>> > Hi.
>> >
>> > Are there some function like this:
>> >
>> > (defn take-while2 [f pred coll] ...
>> >
>> > usage: (take-while2 + #(< % 100) (iterate inc 0))
>> > returns: (0 1 2 3 4 5 6 7 8 9 10 11 12 13)
>>
>>
>> I'm feeling a bit stupid because I can't see from the above example how
>> take-while2 is supposed to work. Can you clarify please?
>>
>> -Steve
>>
>> --
>> 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 from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Default value for *read-eval*

2010-05-22 Thread Joop Kiefte
agree

2010/5/22 Chris Riddoch :
> I have a rather small patch I'd like to propose for Clojure:
>
> *read-eval* should default to false, rather than true. Security
> implications? Aside from the 'read' function, are other operations on
> strings safe from unintended evaluation?
>
> --
> Chris Riddoch
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Slides for short (45 minutes) presentation of clojure for java devs

2010-04-22 Thread Joop Kiefte
I made one simple and short one for beginners, I think to your liking, but
in Dutch...

2010/4/22 Laurent PETIT 

> Oh, really no answer ? :'(
>
> 2010/4/21 Laurent PETIT :
> > Hello,
> >
> > I've consulted a lot of already made presentations of clojure.
> > They are great, but I guess they may not suit my needs because it
> > seems to me that either:
> >  * they are more 1 1/2 to 2 hours talks than 45 minutes
> >  * they assume the "public" will not be relunctant to some terms like
> > "Lisp", "Functional Programming" and directly present these as
> > advantages
> >
> > My goal is to raise interest into clojure in the mind of a public of
> > people having used java for a long time. They may have Scala already
> > in their "radar", but not clojure, or may have seen it and immediately
> > dismissed it for what seemed to them good reasons (mainly aversion for
> > lisp syntax), though we all know this is not true after the "normal"
> > adaptation period.
> >
> > Say this presentation could be the presentation that leads people, at
> > its end, asking you for giving all those great other presentations
> > already available that I mentioned before ...
> >
> > Any references I missed that already solve my problem ? :-)
> >
> > Thanks in advance,
> >
> > --
> > Laurent
> >
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Error whitch i don't understand

2010-04-18 Thread Joop Kiefte
Now I took a look at your code =x, i think you can let it work using #(let
instead of #((let

2010/4/18 Joop Kiefte 

> you can do #(identity 1)
>
> 2010/4/18 Yonov 
>
> Thanks, a lot!
>> It seems that there is no nice way to make a shortened lambda function
>> which returns an integer.
>> I mean #(1) is not OK, and #1 is not OK. Although there is no problem
>> with this (fn [] 1).
>>
>> On Apr 18, 5:48 pm, "Stephen C. Gilardi"  wrote:
>> > On Apr 18, 2010, at 9:21 AM, Yonov wrote:
>> >
>> >
>> >
>> > > Hi,
>> > > I am trying to implement memoize myself and have stucked on one place
>> > > for a lot of time. This is the code:
>> >
>> > > (defn mymemoize [func]
>> > >  (let [dict (ref (hash-map))
>> > >inner #((let
>> > >[val (@dict %)]
>> > >  (if (nil? val)
>> > >(do (dosync (alter dict conj {% (func %)})) (println (class
>> > > (@dict %))) (@dict %))
>> > >val)))]
>> > >inner))
>> >
>> > > (defn gg [x]
>> > >(if (= x 1) 1 2))
>> > > (def ff (mymemoize gg))
>> > > (ff 1)
>> >
>> > > I am printing only for debuging purposes. Actually everything in the
>> > > do-block is OK, but there is no return value. Why?
>> >
>> > The body of your anonymous function literal (#()) has an extra level of
>> parentheses. Your code is coming up with the correct answer (the Integer 1)
>> and then trying to execute it with no arguments. That's what this exception:
>> >
>> > java.lang.ClassCastException: java.lang.Integer cannot be cast to
>> clojure.lang.IFn (NO_SOURCE_FILE:0)
>> >
>> > is trying to convey:
>> >
>> > This works:
>> >
>> > (defn mymemoize [func]
>> >   (let [dict (ref (hash-map))
>> > inner #(let [val (@dict %)]
>> >  (if (nil? val)
>> >(do (dosync (alter dict conj {% (func %)}))
>> >(println (class (@dict %)))
>> >(@dict %))
>> >val))]
>> > inner))
>> >
>> > --Steve
>> >
>> > --
>> > 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 from this group, send email to
>> > clojure+unsubscr...@googlegroups.com
>> > For more options, visit this group athttp://
>> groups.google.com/group/clojure?hl=en
>>
>> --
>> 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 from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>
>
> --
> Communication is essential. So we need decent tools when communication is
> lacking, when language capability is hard to acquire...
>
> - http://esperanto.net  - http://esperanto-jongeren.nl
>
> Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004
>



-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Error whitch i don't understand

2010-04-18 Thread Joop Kiefte
you can do #(identity 1)

2010/4/18 Yonov 

> Thanks, a lot!
> It seems that there is no nice way to make a shortened lambda function
> which returns an integer.
> I mean #(1) is not OK, and #1 is not OK. Although there is no problem
> with this (fn [] 1).
>
> On Apr 18, 5:48 pm, "Stephen C. Gilardi"  wrote:
> > On Apr 18, 2010, at 9:21 AM, Yonov wrote:
> >
> >
> >
> > > Hi,
> > > I am trying to implement memoize myself and have stucked on one place
> > > for a lot of time. This is the code:
> >
> > > (defn mymemoize [func]
> > >  (let [dict (ref (hash-map))
> > >inner #((let
> > >[val (@dict %)]
> > >  (if (nil? val)
> > >(do (dosync (alter dict conj {% (func %)})) (println (class
> > > (@dict %))) (@dict %))
> > >val)))]
> > >inner))
> >
> > > (defn gg [x]
> > >(if (= x 1) 1 2))
> > > (def ff (mymemoize gg))
> > > (ff 1)
> >
> > > I am printing only for debuging purposes. Actually everything in the
> > > do-block is OK, but there is no return value. Why?
> >
> > The body of your anonymous function literal (#()) has an extra level of
> parentheses. Your code is coming up with the correct answer (the Integer 1)
> and then trying to execute it with no arguments. That's what this exception:
> >
> > java.lang.ClassCastException: java.lang.Integer cannot be cast to
> clojure.lang.IFn (NO_SOURCE_FILE:0)
> >
> > is trying to convey:
> >
> > This works:
> >
> > (defn mymemoize [func]
> >   (let [dict (ref (hash-map))
> > inner #(let [val (@dict %)]
> >  (if (nil? val)
> >(do (dosync (alter dict conj {% (func %)}))
> >(println (class (@dict %)))
> >(@dict %))
> >val))]
> > inner))
> >
> > --Steve
> >
> > --
> > 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 from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group athttp://
> groups.google.com/group/clojure?hl=en
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: database management: curing lock issues

2010-03-25 Thread Joop Kiefte
Isn't programming not all about cheating the computer in doing what you want
it to do? In the book programming clojure you can find an example with locks
as well.

2010/3/25 Scott 

> Question on best practices on handling SQL database concurrency issues
>
> I am "pmap"ping a evaluation to a long list (which calls a
> computationally intense script) from within clojure.  The script
> itself is designed to be completely free of concurrency side-effects.
> During the evaluation, several calculations are made that are then
> written to a SQLite database.  My approach is to test for concurrency
> issues on a dual core system prior to moving to a cluster.
>
> What I find is that on occasion there is a database locking issue when
> sub-processes try to write to the database at the same time
> (java.sql.SQLException: database is locked).  The side effect is that
> one of the evaluations is not written to the database (bad, cause it
> takes 3min to compute).  I can fix it by catching the exception, and
> then calling (Thread/sleep) before trying to rewrite again.  This is
> an ugly fix, and I am concerned that this may not scale properly.
>
> What is the best practices to handle such an issue in a concurrent and
> scalable way?  Is it as simple as moving to a better database, such as
> mySQL?  I could use Threads/Locks and move the db transaction outside
> the evaluation loop, or save all transactions and then commit after
> all evaluations are done.  I can't help but feel both solns seem like
> cheating when working with a conncurrent language such as clojure.
>
> Any Advice?
>
> I am using contrib.sql and java.sql (org.sqlite.JDBC)
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>
> To unsubscribe from this group, send email to clojure+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>



-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: Name suggestions

2010-03-18 Thread Joop Kiefte
What about Clonure? Wordplay on Clone and leaving out the j ;)

2010/3/17 mac :
> After just a little more test and polish I plan on calling clj-native
> 1.0. But clj-native is a *really* boring name so I want to change it
> before 1.0 and I don't have very good imagination when it comes to
> these things.
> So I need your help.
> It doesn't have to have anything to do with anything, could just be
> something that sounds funny, like sasquatch, that's a funny word.
>
> Please help!
>
> /Markus
>
> On 13 mar, 19:14, mac  wrote:
>> Hello all.
>> I have had some time lately to work on my C FFI for Clojure and I
>> think it's pretty much feature complete now.
>> It has support for functions, callbacks, structures, unions and
>> globals.
>> For structures there is support for different alignments.
>>
>> The library has two main namespaces: clj-native.direct and clj-
>> native.dynamic.
>> The direct namespace uses the "direct mapping" feature of JNA in order
>> to be as efficient and arity and type safe as possible. However, it
>> does not support varargs functions since they require reflection and
>> dynamic translation of the parameters. That's what the dynamic
>> namespace is for: It can map any C function into clojure, even vararg
>> functions like printf but at a higher cost in call time and less
>> safety (it's easy to crash the jvm by sending the wrong type or number
>> of parameters). Access to global variables through the JNA Pointer
>> class is also available in the dynamic namespace.
>>
>> The library is available from github:http://github.com/bagucode/clj-native
>> and clojars:http://clojars.org/clj-native
>>
>> Example usage of the direct namespace can be found 
>> here:http://github.com/bagucode/clj-native/blob/master/src/examples/c_lib.clj
>>
>> Please report issues or make requests to my github account or by mail.
>>
>> Enjoy!
>>
>> /Markus
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: group tag for clojure newsgroup

2010-03-04 Thread Joop Kiefte
True what said, but sometimes I filter things on subject instead of
list as it is all the same for me (e.g. clojure and compojure-list on
the same label) and there it can be useful as well. Now I have
compojure (low-volume) and clojure (high-volume) split up and it's
just not worth it for the seldom appearing compojure-mails, but to see
it's a compojure-thing is useful still.

If some want it, +1 for me as well. If the objections to the tag are
well-motivated and blocking, no sweat.

2010/3/4 Jan Rychter :
> Rich Hickey  writes:
>
>> On Mar 4, 2:56 am, TimDaly  wrote:
>>> For the other groups that I subscribe to, the email subjects are
>>> always prefixed with the group name, e.g.
>>>
>>> Re: [sage-devel] This is the mail subject
>>>
>>> This makes it possible to reliably group the emails into folders.
>>> Is it possible to do the same for Clojure and Clojure-dev?
>>
>> It is possible for me to put a [Clojure] prefix on the emails. Does
>> anyone have any objections to that?
>
> It pollutes the Subject line for no good reason, anyone can filter based
> on headers anyway. This is useful only for people who don't filter their
> mail and drop everything into one huge inbox.
>
> --J.
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: clojure-clr how to wire up a delegate

2010-02-24 Thread Joop Kiefte
Forget about the proxy part, re-read your message... =x

2010/2/24 Joop Kiefte :
> Tried to encapsulate what you want to put in the eventhandler in an
> anonymous function?
>
> And I don't know how that works in Clojure-CLR, but you might need proxy...
>
> 2010/2/24 adam11235 :
>> Hi,
>>
>> I've made progress in creating a simple app to show a windows form,
>> however I am having trouble wiring up a delegate (to handle button
>> clicks).
>>
>> The Java version uses Proxy to implement ActionListener, instead I am
>> just trying to create an EventHandler passing as the 2nd constructor
>> argument the code I would like executed. (see the .add_Click line)
>>
>> The delegate code gets invoked immediately instead of when the button
>> click occurs, and then complains it expected a function pointer rather
>> than the DialogResult it received (due to execution of the code)
>>
>> I tried quoting that code but no success.
>>
>> How do you wire up delegates?
>>
>> (import '(System.Windows.Forms MessageBox Form Button))
>>
>> (defn windowsPlay []
>>        (let
>>                [       win (Form.)
>>                        temp-button (Button.)
>>                ]
>>        (.. win (get_Controls) (Add temp-button))
>>        (doto temp-button
>>                (.set_Top 50)
>>                (.set_Text "Clicky")
>>                (.add_Click (EventHandler. temp-button (MessageBox/Show "I got
>> clicked"
>>        (doto win
>>                (.set_Text "hello")
>>                (.ShowDialog
>>
>> (windowsPlay)
>>
>> Thanks, Adam.
>>
>> --
>> 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 from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
>
> --
> Communication is essential. So we need decent tools when communication
> is lacking, when language capability is hard to acquire...
>
> - http://esperanto.net  - http://esperanto-jongeren.nl
>
> Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004
>



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: clojure-clr how to wire up a delegate

2010-02-24 Thread Joop Kiefte
Tried to encapsulate what you want to put in the eventhandler in an
anonymous function?

And I don't know how that works in Clojure-CLR, but you might need proxy...

2010/2/24 adam11235 :
> Hi,
>
> I've made progress in creating a simple app to show a windows form,
> however I am having trouble wiring up a delegate (to handle button
> clicks).
>
> The Java version uses Proxy to implement ActionListener, instead I am
> just trying to create an EventHandler passing as the 2nd constructor
> argument the code I would like executed. (see the .add_Click line)
>
> The delegate code gets invoked immediately instead of when the button
> click occurs, and then complains it expected a function pointer rather
> than the DialogResult it received (due to execution of the code)
>
> I tried quoting that code but no success.
>
> How do you wire up delegates?
>
> (import '(System.Windows.Forms MessageBox Form Button))
>
> (defn windowsPlay []
>        (let
>                [       win (Form.)
>                        temp-button (Button.)
>                ]
>        (.. win (get_Controls) (Add temp-button))
>        (doto temp-button
>                (.set_Top 50)
>                (.set_Text "Clicky")
>                (.add_Click (EventHandler. temp-button (MessageBox/Show "I got
> clicked"
>        (doto win
>                (.set_Text "hello")
>                (.ShowDialog
>
> (windowsPlay)
>
> Thanks, Adam.
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Clojure on Go

2010-02-20 Thread Joop Kiefte
I read this part...

http://www.reddit.com/r/programming/comments/b3sb1/golisp_a_lisp_interpreter_in_go/

and thought, would someone be able to do that for clojure? (the
Clojure in Clojure stuff might make this easier :))

Is this a weird idea?

I like a lot of ideas in go, and it's speed, but Clojure is just some
bits nicer. When we have clojure on go, we can have compiled clojure
without java runtime and fast, can't we?

It sure has advantages, and as a toy project it might be cool. And
most of Clojure's code is in clojure anyway, so that eases porting I
guess.

And you can add go's concurrency features as another way to get things done :).
-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


My first Clojure try-out

2010-02-13 Thread Joop Kiefte
I thought it would be nice to share my first Clojure-code.

http://github.com/LaPingvino/Calculator-with-Parens/blob/master/src/calculator.clj

-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Presentatie over Clojure

2010-02-12 Thread Joop Kiefte
Sorry for the 3rd post, but can someone provide some nice example-code for
functional structures used in real world code?

2010/2/12 Jeff Rose 

> Cool!  This is the most fun I've ever had practicing Dutch :-)
>
> As someone who used to be very skeptical towards functional programming and
> Lisps, I think it would be good to have some examples to show what you mean
> about things being cleaner and simpler in functional Clojure.  I think
> comparing a typical for loop that transforms an array with mapping a
> function over a seq, or something like that, would make for a nice example.
> The other big thing to talk about is immutable values.  Nobody can know what
> this code produces, whether single or multi-threaded, which seems to be the
> heart of the problem with object orientation:
>
> def foo(obj)
>   obj.val = 2
>   obj.do_stuff()
>   return obj.val
> end
>
> -Jeff
>
>
>
> On Fri, Feb 12, 2010 at 4:39 PM, Joop Kiefte  wrote:
>
>> Graag commentaar
>>
>> --
>> Communication is essential. So we need decent tools when communication is
>> lacking, when language capability is hard to acquire...
>>
>> - http://esperanto.net  - http://esperanto-jongeren.nl
>>
>> Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004
>>
>
>


-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: error reporting for macro expansion

2010-02-11 Thread Joop Kiefte
In the example, you can find a reference to the actual macro (line and name)
in the second part (Caused by:). By the nature of macro's I think this might
be not the most human way to get the line number, but surely the way the JVM
sees it.

2010/2/11 John Williams 

> I'm concerned specifically about exceptions that occur during macro
> expansion.  As often as not, these exceptions are the result of calling the
> macro with incorrect arguments rather than any problem in the macro itself,
> but the stack trace doesn't contain enough information to locate the
> offending macro call.  For instance, the stack trace I posted reports
> macro-fail.clj line 0 as the ultimate source of the problem, even though the
> macro is called on line 3.
>
> I've done some more tests using the 1.0 release as well as the latest head
> from git, and in both versions, the stack trace contains the name of the
> file where the macro is called, but the line number is always 0.  Since the
> file name is correct, I think my comments about hacking the reader were
> off-base, but there is definitely a problem with reporting the correct line
> number.
>
> On Mon, Feb 8, 2010 at 2:08 PM, Michał Marczyk 
> wrote:
>
>> On 8 February 2010 20:11, John R. Williams 
>> wrote:
>> > ;; macro-fail.clj
>> > (defmacro broken [] (/ 0 0))
>> > (broken)
>> > [ ... ]
>> > As you can see, line 3, where the macro is used, appears nowhere in
>> > the stack trace.
>>
>> That's because execution never reaches this point, because the (/ 0 0)
>> bit gets executed at macro expansion time. You'd have to syntax-quote
>> it to fail at runtime:
>>
>> (defmacro broken [] `(/ 0 0))
>>
>> (A regular quote would probably also do.)
>>
>> Also, note the user$broken ... line in your stack trace -- it does
>> contain a useful indication of the source of the problem.
>>
>> Sincerely,
>> Michał
>>
>> --
>> 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 from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>  --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Importing a class with an ambiguous name

2010-02-11 Thread Joop Kiefte
If I remember correctly it will work just fine if you don't import it and
you refer to it like (jxl.write.Number...

Please correct me if I'm wrong.

Joop Kiefte

2010/2/11 igorrumiha 

> Hi,
>
> I'm exploring the jexcelapi library (http://
> jexcelapi.sourceforge.net), and one of the classes there is
> jxl.write.Number. So, when I do:
>
> => (import 'jxl.write.Number)
>
> I get:
>
> Number already refers to: class java.lang.Number in namespace: user
>  [Thrown class java.lang.IllegalStateException]
>
> I tried excluding the Number symbol from the current namespace but
> that doesn't work (or I'm doing it wrong). So, how do I import classes
> with names that already exist in my namespace?
>
> p.s.
> As far as writing Excel spreadsheets is concerned, I'm aware of the
> Apache POI project, this one is the next on my list...
>
> Thanks,
>
> Igor Rumiha
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en




-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Dutch Clojure users

2010-02-10 Thread Joop Kiefte
Just at home, 4 of us were there. 1 american, 1 italian, 1 pole and me, a
dutchy. I don't think this was the last time for me, and maybe some day I
should invite you to Ede :) or arrange something in Utrecht or Rotterdam (I
work there nearby).

2010/2/10 Joost 

> On 7 feb, 13:09, Hubert Iwaniuk  wrote:
> > Great to hear that there is Clojure group around.
> >
> > For ease of finding it:
> http://groups.google.com/group/amsterdam-clojurians?hl=en
> >
> > Cheers,
> > Hubert
>
> Joined as well.  I'm in Utrecht.
>
> Shame I missed today's meeting.
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: newbie encountering java.lang.OutOfMemoryError: Java heap space

2010-02-10 Thread Joop Kiefte
(Disclaimer: never tried myself)
http://hausheer.osola.com/docs/5

2010/2/10 Aviad R 

> Hi all.
>
> I'm trying to learn clojure with the excellent "Programming Clojure"
> and projecteuler.net. I am encountering the java heap space error, and
> can't find a workaround, nor a smarter way to write my code (which I
> am certain exist).
>
> Trying to solve Problem 14 (some spoilers might be ahead, for those
> wanting to solve it in the future).
>
> The problem and my code are in https://pastee.org/hj3sh
>
> here is the problem:
> I am trying to produce a map of one O(million) key-value pairs using a
> recursive function.
>
> I can produce a map of the first 10 numbers in ~1300 msecs, with
> 217211 keys.
> However, for 15 and up, I get java.lang.OutOfMemoryError: Java
> heap space.
>
> so, I assume my code is ok on efficiency, but the recursion is too
> deep.
>
> am I right? can anyone suggest a way to overcome this problem?
> any additional tips and thoughts on the code would be of great help to
> me, as I am making my first steps in clojure.
>
> Thank you,
> Aviad
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en




-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Dutch Clojure users

2010-02-07 Thread Joop Kiefte
I'm closer to Utrecht (Ede) but the train reaches both places directly. And
I work closer to Rotterdam.

2010/2/7 Jeff Rose 

> There is a group of us hacking Clojure in Amsterdam and Utrecht.
> Where are you?  Join the Amsterdam Clojurians Google group, and we'll
> meet for a pizza.
>
> -Jeff
>
> On Feb 6, 12:26 pm, Joop Kiefte  wrote:
> > Hello folks!
> >
> > I am from the Netherlands and I am learning Clojure now, using it at
> work,
> > and loving it so far. Are there any more dutch Clojure programmers on
> this
> > list so we can meet? I am also interested to know about
> Clojure-programmers
> > from any country in a reasonable distance from Strasbourg.
> >
> > Joop Kiefte
> >
> > --
> > Communication is essential. So we need decent tools when communication is
> > lacking, when language capability is hard to acquire...
> >
> > -http://esperanto.net -http://esperanto-jongeren.nl
> >
> > Linux-user #496644 (http://counter.li.org) - first touch of linux in
> 2004
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Dutch Clojure users

2010-02-06 Thread Joop Kiefte
Hello folks!

I am from the Netherlands and I am learning Clojure now, using it at work,
and loving it so far. Are there any more dutch Clojure programmers on this
list so we can meet? I am also interested to know about Clojure-programmers
from any country in a reasonable distance from Strasbourg.

Joop Kiefte

-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: About releasing clj-peg under the EPL 1.0

2010-02-01 Thread Joop Kiefte
If you are the copyright owner, you always have the final word on what
you do with your stuff. The license is for users of your product. This
means you can arrange another license for paying people if you want,
this is what is done when dual-licensing.

If you reuse things of other people however, this must be in consent
with those licenses.

Please correct me if I'm wrong.

2010/2/1 Richard Lyman :
> I have a few questions I'm hoping to get some feedback on.
>
>
>  = Releasing source code =
> If I understand the EPL 1.0 correctly, under section 3(b) part IV, I'm
> forced to release my source code - right?
>
> I _cannot_ just release an AOT JAR under the EPL 1.0 and keep the source
> code under a different licence - right?
>
> Or does that only apply to everyone _other_ that the initial Contributor?
>
>
>  = Other's commercial profit =
> Under 2(a) and 2(b) I've pretty much given each Recipient full patent and
> copyright permissions. There's nothing available to me if I want to profit
> from it in the future. I have to change the license on some future release,
> and even then they still would have the full permissions I had granted in
> some past release - right?
>
> Under 2(c), even though I've given the permissions I can, the Recipient
> still might not be able to distribute my Contribution if my Contribution
> infringes some third party patent for which the Recipient is required to
> secure any rights that might be necessary. It seems odd that there could
> still be some loophole... some way that I could benefit from the third-party
> patent licensing - right?
>
>
> This has been a fairly painful process for me, thanks for any helpful
> feedback.
> -Rich
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Clojure Conference Poll

2010-01-25 Thread Joop Kiefte
This group works as wave group as well :)

2010/1/24 Seth :
> When: weekends
> Where: DC, Boston, NY, San Fran
> Who: at least one, probably more
>
> Newsgroups are such a painful way to vote on things. Google Wave or
> some other wiki-like thing would make it much easier to aggregate
> everyone's input.
>
> On Jan 24, 8:37 am, Jeff Schwab  wrote:
>> +1 Boston.
>>
>>
>>
>> Brent Millare wrote:
>> > Weekend, and East coast, either near the DC area or New York Area,
>> > maybe Boston area is OK too.
>>
>> > On Jan 22, 12:36 pm, dysinger  wrote:
>> >> We will be organizing a conference in the next month for 2010
>> >> (probably in the fall).  One question I would like to ask is, given
>> >> the conference is probably going to be a 2-day conference, would you
>> >> rather have it during the week or weekend ?
>>
>> >> I would think a weekend (meet & greet friday night, saturday & sunday)
>> >> would work good.
>>
>> >> -Tim
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Getting started with few Java knowledge

2009-12-30 Thread Joop Kiefte
I already tried fat jar, but failed...

2009/12/29 Laurent PETIT :
> On the counterclockwise main page :
> http://code.google.com/p/counterclockwise/ ,
>
> There's a right box named "Groups" where you'll find the user & developers
> group.
>
> For your particular problem, you can also check the ccw documentation wiki
> page, and especially the section related to creating "Fat executable jars"
> via the use of a third-party eclipse plugin named "Fat Jar"
> (
> http://code.google.com/p/counterclockwise/wiki/Documentation#Package_your_work
> )
>
> Cheers,
>
> --
> Laurent
>
> 2009/12/28 Joop Kiefte 
>>
>> Thanks for the encouragement! Where can I join the list?
>>
>> 2009/12/28 Laurent PETIT :
>> > OK I think I understand.
>> >
>> > As an open source project written on free-time, ccw is open to any
>> > contribution.
>> > Especially, newcomers to Java (and presumably Eclipse) such as you,
>> > which
>> > will find "big wholes" in documentation or usability, are invited to
>> > contribute : you can discuss things on ccw user's ml, file tickets in
>> > ccw's
>> > google group ticket system, propose enhancements to the documentation,
>> > etc.
>> >
>> > Help welcome !
>> >
>> > --
>> > Laurent
>> >
>> >
>> >
>> > 2009/12/28 Joop Kiefte 
>> >>
>> >> I am just clueless in CCW how to get it compiled nicely. It doesn't
>> >> get you started with the files you need minimally to get it compiled
>> >> correctly and I remain clueless on how to get it to work.
>> >>
>> >> And I get duplicated files probably because of eclipse works (include
>> >> every compiled file in the project as it is in the same directory). I
>> >> got lost there =x.
>> >>
>> >> At least I would like to see a basic workflow document about CCW, and
>> >> better of course to have it nicely built in in Eclipse.
>> >>
>> >> I hope you understand what I mean...
>> >>
>> >> 2009/12/28 Laurent PETIT :
>> >> >
>> >> > 2009/12/28 Joop Kiefte 
>> >> >>
>> >> >> [...] I think this works a lot nicer than CCW. [...]
>> >> >
>> >> > As a ccw contributor, I would be pleased if you could you elaborate
>> >> > on
>> >> > this
>> >> > ?
>> >> > What does it mean to be "a lot nicer than CCW" ?
>> >> >
>> >> > Is it you would like that ccw, when creating a new "clojure project",
>> >> > also
>> >> > creates a basic ant script to be able to compile your project
>> >> > independently
>> >> > of ccw's out-of-the-box eclipse builder ?
>> >> > Is it something else ?
>> >> >
>> >> > Thanks,
>> >> >
>> >> > --
>> >> > Laurent
>> >> >
>> >> > --
>> >> > 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 from this group, send email to
>> >> > clojure+unsubscr...@googlegroups.com
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/clojure?hl=en
>> >>
>> >>
>> >>
>> >> --
>> >> Communication is essential. So we need decent tools when communication
>> >> is lacking, when language capability is hard to acquire...
>> >>
>> >> - http://esperanto.net  - http://esperanto-jongeren.nl
>> >>
>> >> Linux-user #496644 (http://counter.li.org) - first touch of linux in
>> >> 2004
>> >>
>> >> --
>> >> 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 from this group, send

Re: Getting started with few Java knowledge

2009-12-29 Thread Joop Kiefte
Thanks for the encouragement! Where can I join the list?

2009/12/28 Laurent PETIT :
> OK I think I understand.
>
> As an open source project written on free-time, ccw is open to any
> contribution.
> Especially, newcomers to Java (and presumably Eclipse) such as you, which
> will find "big wholes" in documentation or usability, are invited to
> contribute : you can discuss things on ccw user's ml, file tickets in ccw's
> google group ticket system, propose enhancements to the documentation, etc.
>
> Help welcome !
>
> --
> Laurent
>
>
>
> 2009/12/28 Joop Kiefte 
>>
>> I am just clueless in CCW how to get it compiled nicely. It doesn't
>> get you started with the files you need minimally to get it compiled
>> correctly and I remain clueless on how to get it to work.
>>
>> And I get duplicated files probably because of eclipse works (include
>> every compiled file in the project as it is in the same directory). I
>> got lost there =x.
>>
>> At least I would like to see a basic workflow document about CCW, and
>> better of course to have it nicely built in in Eclipse.
>>
>> I hope you understand what I mean...
>>
>> 2009/12/28 Laurent PETIT :
>> >
>> > 2009/12/28 Joop Kiefte 
>> >>
>> >> [...] I think this works a lot nicer than CCW. [...]
>> >
>> > As a ccw contributor, I would be pleased if you could you elaborate on
>> > this
>> > ?
>> > What does it mean to be "a lot nicer than CCW" ?
>> >
>> > Is it you would like that ccw, when creating a new "clojure project",
>> > also
>> > creates a basic ant script to be able to compile your project
>> > independently
>> > of ccw's out-of-the-box eclipse builder ?
>> > Is it something else ?
>> >
>> > Thanks,
>> >
>> > --
>> > Laurent
>> >
>> > --
>> > 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 from this group, send email to
>> > clojure+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/clojure?hl=en
>>
>>
>>
>> --
>> Communication is essential. So we need decent tools when communication
>> is lacking, when language capability is hard to acquire...
>>
>> - http://esperanto.net  - http://esperanto-jongeren.nl
>>
>> Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004
>>
>> --
>> 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 from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Getting started with few Java knowledge

2009-12-28 Thread Joop Kiefte
I am just clueless in CCW how to get it compiled nicely. It doesn't
get you started with the files you need minimally to get it compiled
correctly and I remain clueless on how to get it to work.

And I get duplicated files probably because of eclipse works (include
every compiled file in the project as it is in the same directory). I
got lost there =x.

At least I would like to see a basic workflow document about CCW, and
better of course to have it nicely built in in Eclipse.

I hope you understand what I mean...

2009/12/28 Laurent PETIT :
>
> 2009/12/28 Joop Kiefte 
>>
>> [...] I think this works a lot nicer than CCW. [...]
>
> As a ccw contributor, I would be pleased if you could you elaborate on this
> ?
> What does it mean to be "a lot nicer than CCW" ?
>
> Is it you would like that ccw, when creating a new "clojure project", also
> creates a basic ant script to be able to compile your project independently
> of ccw's out-of-the-box eclipse builder ?
> Is it something else ?
>
> Thanks,
>
> --
> Laurent
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Getting started with few Java knowledge

2009-12-28 Thread Joop Kiefte
Thanks a lot! I think this works a lot nicer than CCW. I have made a
little script to do a checkout and rename for new projects and it
works brilliant.

Again, thanks a lot!

2009/12/28 Nurullah Akkaya :
> check this out,
>
> http://github.com/nakkaya/clojure-stub
>
> it will create a bare bones Hello World! application, that you can
> build on top of, including an ant task for creating a jar file for
> your application.
>
> Regards,
> --
> Nurullah Akkaya
> http://nakkaya.com
>
>
>
> On Mon, Dec 28, 2009 at 12:57 PM, Joop Kiefte  wrote:
>> Hello folks,
>>
>> I have been learning a bit of Java at school a loong time ago
>> ("programming basics"), when we were programming applets and I
>> outscored all others with ease as I was the only one who could program
>> already, and now I do android programming in Java, but I have never
>> ever made a normal Java project, so I feel I'm missing some essentials
>> to get started in Clojure when I want to create "stand-alone" apps.
>> Can some of you maybe help me getting started on a Clojure project,
>> e.g. the files I need to have to get it compiled nicely to a working
>> JAR-package? (I use eclipse with CCW, but explanations for emacs are
>> fine as well.) I have been looking online but I don't succeed well
>> with the instructions found out there, I think it assumes too many
>> knowledge of Java...
>>
>> Thanks beforehand, I would really appreciate your help (and don't be
>> shy to make it verbose and full of hints ;))
>>
>> Joop Kiefte, 20 yrs, the Netherlands
>>
>> --
>> Communication is essential. So we need decent tools when communication
>> is lacking, when language capability is hard to acquire...
>>
>> - http://esperanto.net  - http://esperanto-jongeren.nl
>>
>> Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004
>>
>> --
>> 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 from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Getting started with few Java knowledge

2009-12-28 Thread Joop Kiefte
Hello folks,

I have been learning a bit of Java at school a loong time ago
("programming basics"), when we were programming applets and I
outscored all others with ease as I was the only one who could program
already, and now I do android programming in Java, but I have never
ever made a normal Java project, so I feel I'm missing some essentials
to get started in Clojure when I want to create "stand-alone" apps.
Can some of you maybe help me getting started on a Clojure project,
e.g. the files I need to have to get it compiled nicely to a working
JAR-package? (I use eclipse with CCW, but explanations for emacs are
fine as well.) I have been looking online but I don't succeed well
with the instructions found out there, I think it assumes too many
knowledge of Java...

Thanks beforehand, I would really appreciate your help (and don't be
shy to make it verbose and full of hints ;))

Joop Kiefte, 20 yrs, the Netherlands

-- 
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en