Re: Best Clojure Learning Resource for Lisper

2012-05-08 Thread Larry Travis
Sean and Lee: In general, I have considered the difference between Aquamacs and GNU Emacs to be that the former prioritizes computer-user interaction via mouse, command-bars and menus (which requires a lot of hand movement between keyboard and mouse, but enables the user to dispense with

Using 'def' does not create an array-map for small, non-empty maps

2012-05-08 Thread Ravindra Jaju
Sent the following to clojure-dev - but then it turned out to be a closed group for posting. Posting here as well: == user (class {}) clojure.lang.PersistentArrayMap user (class {1 1}) clojure.lang.PersistentArrayMap user (def m {1

Re: [ANN] Exploding Fish: A URI Library for Clojure

2012-05-08 Thread Michael Klishin
Walter Tetzner: Maybe that https was important, and it should have been parsed as https://broken-cms.com;. In some applications, it might make sense to have https always win. In others, like some sort of proxy, it might depend on the scheme of another URL, so you can keep the schemes of the

clojurescript accessing properties and methods of js/window

2012-05-08 Thread Dave Sann
I noticed the following behaviour: (.encodeURIComponent js/window some text) will fail under advanced compilation because the method name is optimised This applies to any property or method of js/window. The same does not appear to be true of js/document. I don't know if this is expected

Re: updated Brief Beginner's Guide

2012-05-08 Thread John Gabriele
On May 7, 4:47 pm, Phil Hagelberg p...@hagelb.org wrote: On Mon, May 7, 2012 at 12:13 PM, John Gabriele jmg3...@gmail.com wrote: I updated the [Brief Beginner's Guide](http://www.unexpected-vortices.com/clojure/brief-beginners-guide/inde...). Some changes: This looks like a useful

Re: Using 'def' does not create an array-map for small, non-empty maps

2012-05-08 Thread Armando Blancas
You may want to check out the info for contributors and JIRA: http://www.clojure.org/contributing http://dev.clojure.org/jira/browse/CLJ On Tuesday, May 8, 2012 2:01:57 AM UTC-7, jaju wrote: Sent the following to clojure-dev - but then it turned out to be a closed group for posting. Posting

Re: Using 'def' does not create an array-map for small, non-empty maps

2012-05-08 Thread Ravindra Jaju
Ah, thanks! I had read it before and misinterpreted the actual process. Looks like I first need to send a signed copy of the CA before being able to make contributions! (That's going to be one long process for me - haven't been to a post office in ages! :-() -- jaju On Tue, May 8, 2012 at

Re: clojurescript accessing properties and methods of js/window

2012-05-08 Thread David Nolen
Go ahead and open a ticket. David On Tue, May 8, 2012 at 5:35 AM, Dave Sann daves...@gmail.com wrote: I noticed the following behaviour: (.encodeURIComponent js/window some text) will fail under advanced compilation because the method name is optimised This applies to any property or

Re: The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-08 Thread Andrew
Cool... Do you use kilns at Akamai, and to what extent? Another question: you set up coals and clays and eventually kilns are fired. When you're setting up the coals and clays in code, you're telling the system about dependencies. Are these dependencies laid out explicitly enough to be always

Reducers

2012-05-08 Thread Rich Hickey
I'm happy to have pushed [1] today the beginnings of a new Clojure library for higher-order manipulation of collections, based upon *reduce* and *fold*. Of course, Clojure already has Lisp's *reduce*, which corresponds to the traditional *foldl* of functional programming. *reduce* is based upon

CLJS-35, Latest GClosure potential browser REPL change

2012-05-08 Thread David Nolen
ClojureScript relies on a version of GClosure that is over a year old. We can move up to the latest GClosure but it means that you can no longer interact with a browser REPL powered page by opening it using the file:// browser protocol. When you start browser REPL we now will serve static files

Re: updated Brief Beginner's Guide

2012-05-08 Thread Tom Maynard
On 5/7/2012 2:13 PM, John Gabriele wrote: [Brief Beginner's Guide] ... Feedback welcome, of course. I think it's a fine piece of work: I started with downloading Lubuntu 12.04, installed it (under Win7/64) in an Oracle VirtualBox, and just worked my way through your Guide step-by-step. I

A few questions about clojurescript lein-cljsbuild

2012-05-08 Thread Dave Barker
Over the weekend I was playing with Clojurescript One with success. I'm now setting up my own project, I've found it pretty hard going but I've now got a browser repl working and my Clojurescript code building. I have a few questions though: 1. How come the script tags that include your

Re: A few questions about clojurescript lein-cljsbuild

2012-05-08 Thread David Nolen
I can answer some of these: 1. Most optimized sites do this 3. Running browser REPL auto build - not currently, but that would be a nice feature, open a ticket on GitHub. 2 Java processes - Could probably be done via custom Lein task? 4. ClojureScript One predates lein-cljsbuild. lein-cljsbuild

Re: updated Brief Beginner's Guide

2012-05-08 Thread John Gabriele
On May 8, 12:39 pm, Tom Maynard tom.w...@gmail.com wrote:  On 5/7/2012 2:13 PM, John Gabriele wrote: [Brief Beginner's Guide] ... Feedback welcome, of course. I think it's a fine piece of work: I started with downloading Lubuntu 12.04, installed it (under Win7/64) in an Oracle VirtualBox,

Re: Reducers

2012-05-08 Thread Mark Engelberg
Exciting! I'm having trouble visualizing at what points the computation is actually executed, and therefore, I'm not clear on how this feature interacts with dynamic binding. If the reducers/map occurs in one dynamic binding context, and the fold occurs in another, what happens? -- You

how to get good at clojure?

2012-05-08 Thread toan
Hi folks, I've been trying to learn clojure for a while. I've read the clojure section of seven languages... and currently trying to get through joy of clojure. I've been practicing with the prompt a bit and trying to learn emacs that came with clojurebox. I have 2 questions, 1. does anyone have

Re: The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-08 Thread cperkins
I like it. Kiln looks like it is automatically composing the request handler based mostly on a description of data types (*) provided and needed. Is that correct, more or less? It looks very useful. Using Common Lisp (not Clojure yet) I end up using a lot of macros when handling HTTP requests

Odd termination behaviour of a program that uses pmap

2012-05-08 Thread Muharem Hrnjadovic
Hello there! I only started learning Clojure today, so please forgive me if this is a stupid question or something.. I am experimenting with Clojure's pmap operator as shown in the source here: https://github.com/freizeit/exercises/blob/master/cj-a-store-credit/clojure/ex1.clj With line 14

Re: Odd termination behaviour of a program that uses pmap

2012-05-08 Thread Andy Fingerhut
Not desired, but currently normal behavior. This happens whenever certain concurrency features of Clojure are used, creating other threads, and they take a while for them to be cleaned up on exit. Besides pmap, futures and a few other Clojure functions cause this. You can work around it if

Re: how to get good at clojure?

2012-05-08 Thread Mark Rathwell
1. does anyone have advice on getting somewhat competent for a newb? (alternatively, how did you get good?) - Think of some (smaller) project you've had on your mind for a while, and try to implement it using clojure - Read all of the incoming questions on this list, or StackOverflow if you

Re: how to get good at clojure?

2012-05-08 Thread David Nolen
The new Clojure book from O'Reilly looks like a great start for people coming from more mainstream languages. On Mon, May 7, 2012 at 8:48 PM, toan kidn...@gmail.com wrote: Hi folks, I've been trying to learn clojure for a while. I've read the clojure section of seven languages... and

Re: A few questions about clojurescript lein-cljsbuild

2012-05-08 Thread Evan Mezeske
3. Although there's no single-command way to do this, I frequently accomplish the same thing by just running lein cljsbuild auto in one terminal, and lein trampoline cljsbuild repl-listen in another. It works out pretty well for me. -- You received this message because you are subscribed to

Re: Reducers

2012-05-08 Thread Alan Malloy
My understanding is that reducers/map merely returns a new function (or something like a function, maybe an instance of IReducible or something), and all actual computation is done during the reduce. So dynamic bindings around the scope of the map have no effect at all. On May 8, 10:57 am, Mark

Re: how to get good at clojure?

2012-05-08 Thread Bill Caputo
On May 7, 2012, at 7:48 PM, toan wrote: 1. does anyone have advice on getting somewhat competent for a newb? (alternatively, how did you get good?) Can't recommend 4clojure ( http://www.4clojure.com/ ) highly enough; work through each one, turn on the code golf feature, and subscribe (at

Re: Odd termination behaviour of a program that uses pmap

2012-05-08 Thread Andy Fingerhut
I've added some discussion about this behavior in an example for clojure.core/future on ClojureDocs.org here: http://clojuredocs.org/clojure_core/clojure.core/future Since people often come across this behavior when using pmap or clojure.java.shell/sh, which are implemented using Clojure

Re: Reducers

2012-05-08 Thread kovas boguta
Will definitely be using this, thanks! One question: Those IFn.LLL, DDD etc primitive-taking function interfaces can now spring to life. Can someone unpack this? What are those things, why does this allow them to exist, why do we need them, what can be built with them? On Tue, May 8, 2012 at

Re: Reducers

2012-05-08 Thread Daniel Solano Gómez
On Tue May 8 17:14 2012, kovas boguta wrote: Will definitely be using this, thanks! One question: Those IFn.LLL, DDD etc primitive-taking function interfaces can now spring to life. Can someone unpack this? What are those things, why does this allow them to exist, why do we need them,

Re: clojurescript accessing properties and methods of js/window

2012-05-08 Thread Dave Sann
done http://dev.clojure.org/jira/browse/CLJS-245 On Wednesday, 9 May 2012 01:06:40 UTC+10, David Nolen wrote: Go ahead and open a ticket. David On Tue, May 8, 2012 at 5:35 AM, Dave Sann daves...@gmail.com wrote: I noticed the following behaviour: (.encodeURIComponent js/window some

Re: unicode support in clojurescript reader

2012-05-08 Thread Dave Sann
All is quite - so I raised http://dev.clojure.org/jira/browse/CLJS-243 On Wednesday, 2 May 2012 22:28:01 UTC+10, Dave Sann wrote: I needed unicode support for the clojurescript reader so I have made an attempt at adding it. This works for me - but it is my first foray into changes to this

Re: unicode support in clojurescript reader

2012-05-08 Thread David Nolen
Please attach a patch to the ticket so it can be reviewed there. Thanks! On Tue, May 8, 2012 at 6:20 PM, Dave Sann daves...@gmail.com wrote: All is quite - so I raised http://dev.clojure.org/jira/browse/CLJS-243 On Wednesday, 2 May 2012 22:28:01 UTC+10, Dave Sann wrote: I needed unicode

Re: unicode support in clojurescript reader

2012-05-08 Thread Dave Sann
Will do, But I think it will need tweaking anyway. D On Wednesday, 9 May 2012 08:28:06 UTC+10, David Nolen wrote: Please attach a patch to the ticket so it can be reviewed there. Thanks! On Tue, May 8, 2012 at 6:20 PM, Dave Sann daves...@gmail.com wrote: All is quite - so I raised

Re: Reducers

2012-05-08 Thread Brent Millare
Yet another example of doing more, by complecting less, a mantra I'm continuing to pursue. Awesome library, can't wait to use it and see the performance benefits. On Tuesday, May 8, 2012 11:20:37 AM UTC-4, Rich Hickey wrote: I'm happy to have pushed [1] today the beginnings of a new Clojure

Re: how to get good at clojure?

2012-05-08 Thread Murtaza Husain
In addition to the things mentioned above the following will help - Clojure Koans (https://github.com/functional-koans/clojure-koans) and Clojure labrepl are good resources too (https://github.com/relevance/labrepl) Planet Clojure is also a good collection of blogs. Lastly start reading