Re: First foray into clojure - questions for new project

2012-11-13 Thread kinleyd
It was helpful for me to start from the ground up: Got familiar with ring, then compojure, hiccup, noir, etc. Getting familiar a library at a time prepared me better for managing the more comprehensive frameworks when it came time to customization. FWIW. On Wednesday, November 14, 2012 12:20:23

Re: First foray into clojure - questions for new project

2012-11-13 Thread Mark Rathwell
> Should I dive into Ring as well? What about Compojure versus Noir? Noir is higher level than Compojure, and usually easier for new people to jump into, but not always as flexible, functional or composable. On Tue, Nov 13, 2012 at 10:27 AM, Jonathon McKitrick wrote: > > Thanks, Michael. > > S

Re: First foray into clojure - questions for new project

2012-11-13 Thread Michael Klishin
2012/11/13 Jonathon McKitrick > Should I dive into Ring as well? What about Compojure versus Noir? Noir is built on top of Compojure. I guess just use what you like better. I don't think you will use Ring directly initially. So get familiar with it as you need to, the API is tiny. -- MK ht

Re: First foray into clojure - questions for new project

2012-11-13 Thread John Gabriele
On Tuesday, November 13, 2012 10:26:18 AM UTC-5, Jonathon McKitrick wrote: > > Thanks, Mark. > > So leiningen has made a significant update lately? > >> Yes, but my understanding is that most folks have already upgraded (or have plans to upgrade --- thus the upgrading guide) to lein 2. I sugges

Re: First foray into clojure - questions for new project

2012-11-13 Thread David Powell
cemerick made a screencast of how to get started with Clojure, which takes you through getting started with the tools, and making a web app. It is probably a great place to start: http://cemerick.com/2012/05/02/starting-clojure/ For details on the Clojure web stack, I really like this guide:

Re: First foray into clojure - questions for new project

2012-11-13 Thread Jonathon McKitrick
Hmm. Is this something I could work around, by paying for an extra dino during busy periods, then cutting back after the activity passes? On Tuesday, November 13, 2012 1:50:13 AM UTC-5, puzzler wrote: > > Only catch is that the free level of Heroku isn't very useful with > Clojure. The app kee

Re: First foray into clojure - questions for new project

2012-11-13 Thread Jonathon McKitrick
Thanks, Michael. Should I dive into Ring as well? What about Compojure versus Noir? On Monday, November 12, 2012 9:26:25 PM UTC-5, Michael Klishin wrote: > > 2012/11/13 Jonathon McKitrick > > >> - Any caveats I should be aware of running clojure on heroku? >> > > For small pure Clojure apps, pro

Re: First foray into clojure - questions for new project

2012-11-13 Thread Jonathon McKitrick
Thanks, Mark. So leiningen has made a significant update lately? > On Monday, November 12, 2012 8:49:32 PM UTC-5, Mark Rathwell wrote: > > These 4 should help you get from zero to a simple web app running on > Heroku pretty quickly: > > https://github.com/technomancy/leiningen/wiki/Upgrading >

Re: First foray into clojure - questions for new project

2012-11-12 Thread Mark Engelberg
Only catch is that the free level of Heroku isn't very useful with Clojure. The app keeps going to sleep, and the first person to hit your app will have a noticeably lengthy wait because Clojure takes a long time to start up. -- You received this message because you are subscribed to the Google

Re: First foray into clojure - questions for new project

2012-11-12 Thread kinleyd
Thanks Mark and Michael, I thought I had an extensive list of Clojure resources, but quite clearly not. :) Kinley On Tuesday, November 13, 2012 8:26:25 AM UTC+6, Michael Klishin wrote: > > 2012/11/13 Jonathon McKitrick > > >> - Any caveats I should be aware of running clojure on heroku? >> > >

Re: First foray into clojure - questions for new project

2012-11-12 Thread Michael Klishin
2012/11/13 Jonathon McKitrick > - Any caveats I should be aware of running clojure on heroku? > For small pure Clojure apps, probably none. > - What libraries should I become familiar with for straightforward web > apps? > Compojure, Noir, clojure.java.jdbc, clojurewerkz.org libraries. See al

Re: First foray into clojure - questions for new project

2012-11-12 Thread Mark Rathwell
These 4 should help you get from zero to a simple web app running on Heroku pretty quickly: https://github.com/technomancy/leiningen/wiki/Upgrading https://github.com/technomancy/swank-clojure https://github.com/kingtim/nrepl.el https://devcenter.heroku.com/articles/clojure-web-application Some o

First foray into clojure - questions for new project

2012-11-12 Thread Jonathon McKitrick
Hi all, I've heard many good things about clojure, and I'm finally taking the plunge. I've been using Hunchentoot on SBCL for several years, and I've finally decided it's time to move to a current lisp with a proven platform and (from what I have heard) a great community. I have a project cur

Re: Lots of newbie clojure questions

2010-12-08 Thread Surgo
> > Not really. (...) is a non-atomic s-expression. If it's evaluated > > unquoted, the first nested s-expression is evaluated and if it's not > > callable an exception is thrown. Macros, special forms (which are sort > > of like system-internal macros and are used to build all the other > > macros

Re: Lots of newbie clojure questions

2010-12-07 Thread Ken Wesson
On Tue, Dec 7, 2010 at 12:28 PM, Mike Meyer wrote: > On Tue, 7 Dec 2010 02:58:11 -0500 > Ken Wesson wrote: >> On Tue, Dec 7, 2010 at 2:15 AM, javajosh wrote: >> > Mike also points out that things that aren't functions (not used in >> > that context) can't be aliased with def or use. >> >> Really

Re: Lots of newbie clojure questions

2010-12-07 Thread Mike Meyer
On Tue, 7 Dec 2010 02:58:11 -0500 Ken Wesson wrote: > On Tue, Dec 7, 2010 at 2:15 AM, javajosh wrote: > > Mike and I have had a nice off-line conversation where we enumerated > > the possible things that can come after open-parens. I listed 7, he > > added 3: That wasn't meant to be offline, bu

Re: Lots of newbie clojure questions

2010-12-07 Thread Meikel Brandmeyer
Hi, Am 07.12.2010 um 08:58 schrieb Ken Wesson: > The ns macro is particularly > guilty of this. I say guilty because I think it's bad design, which I > guess may have been grandfathered in before the standard was settled > on to use [] around non-executable lists of data such as binding > lists.

Re: Lots of newbie clojure questions

2010-12-07 Thread James Reeves
On 7 December 2010 09:22, javajosh wrote: > Anyway, I'm aware that open-parens is the signal to Invoke or Call > something in Clojure - and therefore anything after the parens is > Callable. It is the incredible diversity of 'Things I Can Invoke' that > makes the parens difficult to a newb. (Altho

Re: Lots of newbie clojure questions

2010-12-07 Thread Ken Wesson
On Tue, Dec 7, 2010 at 4:22 AM, javajosh wrote: > As an aside, it would be nice if there was some code convention to > distinguish between macros and functions, just as there is a > convention for identifying globals. (doc something) gets to be rather > tedious to type. +1, with two provisos: spe

Re: Lots of newbie clojure questions

2010-12-07 Thread javajosh
On Dec 6, 11:58 pm, Ken Wesson wrote: > On Tue, Dec 7, 2010 at 2:15 AM, javajosh wrote: > > Mike and I have had a nice off-line conversation where we enumerated > > the possible things that can come after open-parens. I listed 7, he > > added 3: > > >> 1. A value (if the paren has a tick '(  ) >

Re: Lots of newbie clojure questions

2010-12-07 Thread Alyssa Kwan
Incidental mutability is the key. Functional programming doesn't eliminate mutability, it manages it: only the parts of the system that truly need to change state do so. Everything else is pure and easy to write and test. Contrast that with imperative programming where it's hard to tell which s

Re: Lots of newbie clojure questions

2010-12-06 Thread Ken Wesson
On Tue, Dec 7, 2010 at 2:15 AM, javajosh wrote: > Mike and I have had a nice off-line conversation where we enumerated > the possible things that can come after open-parens. I listed 7, he > added 3: > >> 1. A value (if the paren has a tick '(  ) >> 2. A function. >> 3. A map - which is a psuedo f

Re: Lots of newbie clojure questions

2010-12-06 Thread javajosh
On Dec 6, 6:01 pm, Mike Meyer wrote: Mike and I have had a nice off-line conversation where we enumerated the possible things that can come after open-parens. I listed 7, he added 3: > 1. A value (if the paren has a tick '( ) > 2. A function. > 3. A map - which is a psuedo function that take

Re: Lots of newbie clojure questions

2010-12-06 Thread javajosh
On Dec 6, 6:24 pm, Robert McIntyre wrote: > @javajosh You're speaking of the Turing description of computation, > you might be interested in Church's lambda calculus description which > works just as well and doesn't use mutability to describe computation, Thanks, I'll look into that. Is there

Re: Lots of newbie clojure questions

2010-12-06 Thread Robert McIntyre
@javajosh You're speaking of the Turing description of computation, you might be interested in Church's lambda calculus description which works just as well and doesn't use mutability to describe computation, --Robert McIntyre On Mon, Dec 6, 2010 at 9:08 PM, javajosh wrote: > On Dec 6, 5:40 pm,

Re: Lots of newbie clojure questions

2010-12-06 Thread Robert McIntyre
1. What is the justification for using a map as a function? I find this to be very confusing. In math, a function is a mapping from one set to another, so from that perspective it makes good sense for a clojure-map to be a function from its set of keys to its set of values. The justification here

Re: Lots of newbie clojure questions

2010-12-06 Thread javajosh
On Dec 6, 5:40 pm, Stuart Halloway wrote: > The world is a series of immutable states, and the future is a function of > the past. > See http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hickey. My philosophy questions are the most interesting to people, ha! Neat link. It appears that Hi

Re: Lots of newbie clojure questions

2010-12-06 Thread Mike Meyer
On Mon, 6 Dec 2010 16:50:40 -0800 (PST) javajosh wrote: > 1. What is the justification for using a map as a function? I find > this to be very confusing. The same as using a keyword for a function - it lets you write shorter code. > 2. In practice, I find myself wincing when needing to decide w

Re: Lots of newbie clojure questions

2010-12-06 Thread Stuart Halloway
> 1. Isn't the world actually imperative? And mutable? Collaboration > *is* a messy proposition in real life. It's hard to fix your car, and > even harder to have lots of people fix your car. I find the "it models > the real world better" justification for functional programming rather > confusing.

Re: Lots of newbie clojure questions

2010-12-06 Thread David Jacobs
> > 1. Isn't the world actually imperative? And mutable? If you're a determinist, then no. Life is a function (albeit a multivariable function), just like sine. > 2. 'Side-effects' are treated almost as a bad word by most functional > programming advocates. And yet, aren't ALL programs executed

Lots of newbie clojure questions

2010-12-06 Thread javajosh
Hello, I'm a long-time Java programmer who's tired of mutability getting in my way. I've been largely enjoying the pervasive use of closures in JavaScript, and though I'd check out Clojure. So far so good. It installed easily and the REPL is easy to use. I've watched the screencasts and have writt

Re: Clojure Questions

2009-02-23 Thread Konrad Hinsen
On 21.02.2009, at 19:57, Christian Vest Hansen wrote: > I *think* that Clojure does not require anything from Java 6, and thus > can work on any compliant Java 5 or greater. I run it with Java 5, which is the latest Java available for MacOSX 10.4 on a PowerPC. It works fine. Konrad. --~--~

Re: Clojure Questions

2009-02-21 Thread Michael Wood
On Sat, Feb 21, 2009 at 9:14 PM, Richard Lyman wrote: > From the http://clojure.org/getting_started page: > > "Clojure is delivered in a zip file containing a single .jar, clojure.jar, a > readme, the CPL license and the source code in a src subdirectory. It uses > the ASM 3.0 bytecode library, a

Re: Clojure Questions

2009-02-21 Thread Richard Lyman
>From the http://clojure.org/getting_started page: "Clojure is delivered in a zip file containing a single .jar, clojure.jar, a readme, the CPL license and the source code in a src subdirectory. It uses the ASM 3.0 bytecode library , and the current alpha distribution in

Re: Clojure Questions

2009-02-21 Thread Christian Vest Hansen
I *think* that Clojure does not require anything from Java 6, and thus can work on any compliant Java 5 or greater. On Sat, Feb 21, 2009 at 3:13 PM, Sean wrote: > > Hi everyone, > I'm working on cleaning up the wikibook some, and I've got a few > questions. If anyone could answer, that would be

Clojure Questions

2009-02-21 Thread Sean
Hi everyone, I'm working on cleaning up the wikibook some, and I've got a few questions. If anyone could answer, that would be a great help. What is the minimum required JVM version for clojure? What versions of Java have been tested? What versions of Java are supported? Thanks! --~--~---