Partly in response to this issue and partly to get my feet wet with
Ring and friends, I spent the last few nights writing a proof-of-
concept Wiki to collect structured Clojure usage examples:
http://clojure-examples.appspot.com/
Here's a sample function page:
http://clojure-examples.appspot.com
I don't see how the loop is relevant here, at least if the same benchmarking
function is used for all the benchmarks you're doing, it should make a
difference then since the overhead is the same.
On Jul 1, 2010, at 9:44 PM, Mike Meyer wrote:
> On Thu, 1 Jul 2010 11:27:09 -0700 (PDT)
> j-g-faust
On Jul 2, 5:20 am, Brian Schlining wrote:
> > > There's URLClassLoader for loading classes at runtime. Javadocs are
> > athttp://java.sun.com/javase/6/docs/api/java/net/URLClassLoader.html.
> > There's
> > > an old thread about using it athttp://
> > forums.sun.com/thread.jspa?threadID=300557&star
On 2 Lip, 09:46, Justin Kramer wrote:
> Partly in response to this issue and partly to get my feet wet with
> Ring and friends, I spent the last few nights writing a proof-of-
> concept Wiki to collect structured Clojure usage examples:
>
> http://clojure-examples.appspot.com/
>
> Here's a sample
You can find a lot of examples using http://github.com/defn/walton
For example you can point your browser at
http://getclojure.org:8080/examples/reduce
for reduce examples.
On Jun 30, 8:08 am, michele wrote:
> Mother's invention is a lazy necessity, I think.
>
> On Jun 29, 9:46 pm, Meikel Brand
On Jul 2, 3:44 am, Mike Meyer wrote:
> On Thu, 1 Jul 2010 11:27:09 -0700 (PDT)
> j-g-faustus wrote:
> > Criterium, a benchmarking library for Clojure, seems pretty good:
>
> The author responded here.
>
I noticed, my reply was sent an hour earlier. I'm still on moderation,
so my mails are 1-12 h
I'm very new here but I have to say I really like this. These kind of usage
examples are the most helpful resource for newcomers. I'll be happy to
contribute once I learn more.
Bob
On Jul 2, 2010, at 16:46, Justin Kramer wrote:
> Partly in response to this issue and partly to get my feet wet
Hi,
On Jul 2, 12:18 pm, Walter van der Laan
wrote:
> For example you can point your browser
> athttp://getclojure.org:8080/examples/reduce
> for reduce examples.
Is it necessary to have >250 examples for a function which has
effectively five variations?
(reduce + [])
(reduce + [1])
(reduce +
>
> http://
> > > forums.sun.com/thread.jspa?threadID=300557&start=0&tstart=0
> >
> > > Using a classloader manually is sub-optimal because the rest of
> > > Clojure, which doesn't know anything about the user-created
> > > classloader, wouldn't use it to load classes; you'd have to use the
> > > r
Dear all,
I am moving from netbeans to leiningen + swank + emacs.
Enclojure was great but I wanted to try somnething else. Leiningen is
amazing. Thanks to the author(s).
I am looking for a way to tell leiningen what JVM options to use with the
SWANK server. (I need a lot of Heap size to do anythi
On Thu, 1 Jul 2010 22:19:56 -0400
Greg wrote:
> I don't see how the loop is relevant here, at least if the same benchmarking
> function is used for all the benchmarks you're doing, it should make a
> difference then since the overhead is the same.
It depends on what you're benchmarking. If the
On Fri, 2 Jul 2010 07:50:45 -0700 (PDT)
Meikel Brandmeyer wrote:
> On Jul 2, 12:18 pm, Walter van der Laan
> wrote:
> > For example you can point your browser
> > athttp://getclojure.org:8080/examples/reduce
> > for reduce examples.
> Is it necessary to have >250 examples for a function which ha
+1
I like it, Justin. I was looking at making something myself but your
efforts are farther along. I'd be happy to help with any aspect of
this.
Ryan
On Fri, Jul 2, 2010 at 2:46 AM, Justin Kramer wrote:
> Partly in response to this issue and partly to get my feet wet with
> Ring and friends,
n00b question: Why is [1 2 3] idiomatic and not '(1 2 3) ? Is it a
vectors vs. lists thing, notation thing, or something else?
I don't have a lisp background so there's a truckload of lisp reading
I still want to do which may answer questions like these for me. If
there's a particular text on wh
On 2 July 2010 15:50, Meikel Brandmeyer wrote:
> Then there are examples like this one:
> (reduce '* '(1 2 3))
>
> Someone who is new to Clojure and tries to understand reduce... Does
> he understand why the result is 3? A result which relies on a not very
> well-known fact, that you can actually
Hey Justin!
Nice one! I'm actually planning on doing a similar thing, but hosting it on
Amazon's EC2.
Would you be interested in combining efforts together?
Cheers,
Greg Slepak
On Jul 2, 2010, at 3:46 AM, Justin Kramer wrote:
> Partly in response to this issue and partly to get my feet wet wi
I'm building a directed graph library, where the nodes has "out" and
"in" fields. If I connect a node, let's say:
(node->node n0 n1)
then the node's fields would be the following:
n0:
in: ()
out: (n1)
n1:
in: (n0)
out ()
My problem is that if I update n0 I could only add the old "instance"
to t
On Jul 2, 7:41 pm, Mike Meyer wrote:
> On Thu, 1 Jul 2010 22:19:56 -0400
> It depends on what you're benchmarking. If the loop time ... is
> on the order of the same size as the standard deviation, then it can
> fool you into falsely concluding that there's no statistically
> significant differenc
I've also struggled with the same concepts in my head in the past.
One answer to try explain why it is not possible, is that if you do
that, you somehow try to conflate identity and state again.
When you write n0: in () out (n1) and n1 in(n0) out() , it seems to me
that when you write n0:in() out
Nice, Mike. I stole your work and put it into the Wiki I created to
see how it fit:
http://clojure-examples.appspot.com/clojure.core/reduce
(Note: reduce seems to be missing a doc string in 1.2 master; for
other functions doc strings show up.)
As cool as walton is, it's kind of a firehose. A cur
Good suggestion about the categories. Making it browsable is
important. A page that uses categories from the cheatsheet is easy to
make. Adding categories/tags and auto-generating such a page is also
doable.
Code contributions are welcome. I'm not attached to App Engine; I just
used it to learn ab
On Fri, 2 Jul 2010 14:50:18 -0700 (PDT)
Justin Kramer wrote:
> Nice, Mike. I stole your work and put it into the Wiki I created to
> see how it fit:
>
> http://clojure-examples.appspot.com/clojure.core/reduce
Well, I like it, but I might be a bit biased.
I think the important part is the rules
If you launch swank with 'lein swank', there is probably an option.
lein is just a shell-script which calls the following at the end:
exec $RLWRAP $JAVA_CMD -Xbootclasspath/a:"$CLOJURE_JAR" -client $JAVA_OPTS \
-cp "$CLASSPATH" -Dleiningen.version="$VERSION" $JLINE \
On Fri, Jul 2, 2010 at 3:46 AM, Justin Kramer wrote:
> Partly in response to this issue and partly to get my feet wet with
> Ring and friends, I spent the last few nights writing a proof-of-
> concept Wiki to collect structured Clojure usage examples:
>
> http://clojure-examples.appspot.com/
>
>
Take a look at clojure.contrib.graph. It's very basic, but has a nice
generic model.
- Chas
On Jul 2, 2010, at 3:15 PM, Mate Toth wrote:
I'm building a directed graph library, where the nodes has "out" and
"in" fields. If I connect a node, let's say:
(node->node n0 n1)
then the node's field
On Jul 1, 2010, at 9:21 AM, Martin DeMello wrote:
On Thu, Jul 1, 2010 at 6:42 PM, Martin DeMello > wrote:
I haven't benchmarked yet, but it's called frequently enough that
it's
probably worth making it efficient. (This is in code that converts a
dictionary to a trie)
Actually, it just str
On 3 July 2010 10:12, David Nolen wrote:
> On Fri, Jul 2, 2010 at 3:46 AM, Justin Kramer wrote:
>>
>> Partly in response to this issue and partly to get my feet wet with
>> Ring and friends, I spent the last few nights writing a proof-of-
>> concept Wiki to collect structured Clojure usage exampl
Hi,
Am 03.07.2010 um 00:37 schrieb Mike Meyer:
> Cleaning mine version up and combining them gives:
>
> * Keep it simple and self contained
> - the first example shouldn't require knowing anything but clojure syntax
> - the inputs to an example should either be literals or simple expressions
>
28 matches
Mail list logo