Re: [ANN] Programming Clojure, 3rd edition

2018-02-21 Thread Michael Glaesemann
Congrats! > On 2018-02-21, at 10:04, Alex Miller wrote: > > The 3rd edition of Programming Clojure is now available on Pragmatic: > > https://pragprog.com/book/shcloj3/programming-clojure-third-edition > > The 1st edition was the first Clojure book available and was

[ANN] Programming Clojure, 3rd edition

2018-02-21 Thread Alex Miller
The 3rd edition of Programming Clojure is now available on Pragmatic: https://pragprog.com/book/shcloj3/programming-clojure-third-edition The 1st edition was the first Clojure book available and was written by Stuart Halloway around Clojure 1.0. The second edition was an update by Aaron Bedra

Re: [book] Programming Clojure, 3rd Edition

2017-06-06 Thread Brent Millare
Ah this brings me back... the first edition was my first Clojure book. Nice work. On Tuesday, June 6, 2017 at 4:45:28 AM UTC-4, Alex Miller wrote: > > https://pragprog.com/book/shcloj3/programming-clojure > > > I've been working on this for the last year or so - this i

[book] Programming Clojure, 3rd Edition

2017-06-06 Thread Alex Miller
https://pragprog.com/book/shcloj3/programming-clojure I've been working on this for the last year or so - this is a newly updated version of the first Clojure book, Programming Clojure (the book that I used when I was learning Clojure!). The 1st edition was written by Stuart Halloway a

Re: Programming Clojure "in the large": libraries, frameworks, oh my

2014-09-21 Thread Henrik Eneroth
And just recently, we have Onyx as well: https://github.com/MichaelDrogalis/onyx On Friday, September 19, 2014 9:40:14 PM UTC+2, Mike Haney wrote: > > Just a note - juxt/jig isn't being maintained, and has been replaced by > juxt/modular. Modular is based on Stuart Sierra's component library, a

Programming Clojure "in the large": libraries, frameworks, oh my

2014-09-19 Thread Mike Haney
Just a note - juxt/jig isn't being maintained, and has been replaced by juxt/modular. Modular is based on Stuart Sierra's component library, and mainly consists of several pre-built components and some nice helpers for wiring and configuring components. It also plays well with juxt/ceylon, whi

Re: Programming Clojure "in the large": libraries, frameworks, oh my

2014-09-19 Thread Joshua Ballanco
I think you’ve missed Immutant: http://immutant.org . I’ve used it on multiple projects for serving HTTP requests, coordinating background jobs, caching, and inter-app communication. It’s also fairly easy to get set up with a clustered configuration. On Friday, September 19, 2014 at 15:52, Dm

Programming Clojure "in the large": libraries, frameworks, oh my

2014-09-19 Thread Dmitry Groshev
Hello, Clojurians! We all know that Clojure is *awesome* "in the small" — it's a pleasure to develop stuff with it on the level of a function or namespace. However, what still evades me is how to program in Clojure "in the large": how to structure, say, web service in general; how should you ma

Re: Programming clojure second Edition

2014-02-03 Thread action
I got it, Think you very much! 在 2014年2月4日星期二UTC+8上午2时01分50秒,Justin Smith写道: > > if pred is false or nil (the two cases "when" would rule out), it would be > an error to apply it to an argument > > #{\a \b} is a literal set syntax, containing keys \a and \b. {\a \b} is a > literal hash-map synta

Re: Programming clojure second Edition

2014-02-03 Thread Justin Smith
if pred is false or nil (the two cases "when" would rule out), it would be an error to apply it to an argument #{\a \b} is a literal set syntax, containing keys \a and \b. {\a \b} is a literal hash-map syntax, with one key \a mapped to the value \b. As far as index-filter is concerned, it only

Re: Programming clojure second Edition

2014-02-03 Thread Jim - FooBar();
a vector is a function of its indices a map is a function of its keys a set is a function of its elements does this help at all? Jim On 03/02/14 15:29, action wrote: (defn index-filter [pred coll] (when pred (for [[idx elt] (indexed coll) :when (pred elt)] idx))) (index-filter #{\a \b

Programming clojure second Edition

2014-02-03 Thread action
(defn index-filter [pred coll] (when pred (for [[idx elt] (indexed coll) :when (pred elt)] idx))) (index-filter #{\a \b} "abcdef") -> (0 1) but I don't know why use "when pred" in the code, and why "(index-filter {\a \b} "abcdef")" doesn't work? -- You received this message because you

Re: Having trouble with "reader.tasklist" class from Programming Clojure

2011-01-04 Thread Randy J. Ray
On 01/04/2011 01:17 PM, Stuart Halloway wrote: Things to try: (1) Is the directory that contains "reader" on your classpath? (2) Does it run with the provided script/repl.sh or script\repl.bat scripts? When I ran it, I was in the directory that contains "reader" (and "classes"), and "." was

Re: Having trouble with "reader.tasklist" class from Programming Clojure

2011-01-04 Thread Stuart Halloway
Things to try: (1) Is the directory that contains "reader" on your classpath? (2) Does it run with the provided script/repl.sh or script\repl.bat scripts? Stu > Hello everyone. > > I am just starting out in Clojure by working through Programming Clojure. I > have run i

Having trouble with "reader.tasklist" class from Programming Clojure

2011-01-04 Thread Randy J. Ray
Hello everyone. I am just starting out in Clojure by working through Programming Clojure. I have run into a snag, though, on the reader/tasklist.clj example in chapter 3. I am getting the following error consistently: user=> (compile 'reader.tasklist) java.lang.ClassNotFoundE

Re: Programming Clojure: Snake: update-positions: What does the "do" do here?

2010-08-05 Thread Stuart Halloway
Adding to what Meikel said: A warning sign that the latter version is incorrect is the double open parens: "((ref-set ..." Double open parens are fairly rare in Clojure code. Stu > Hi, > > On Aug 5, 4:18 pm, michele wrote: >> ORIGINAL >> >> (defn update-positions [snake apple] >> (dosync >

Re: Programming Clojure: Snake: update-positions: What does the "do" do here?

2010-08-05 Thread Laurent PETIT
2010/8/5 michele > > ORIGINAL > > (defn update-positions [snake apple] > (dosync >(if (eats? @snake @apple) > (do (ref-set apple (create-apple)) >(alter snake move :grow)) > (alter snake move))) > nil) > > > WITHOUT do > > (defn update-positions [snake apple] > (dosync >

Re: Programming Clojure: Snake: update-positions: What does the "do" do here?

2010-08-05 Thread Peter Schuller
> ORIGINAL > > (defn update-positions [snake apple] >  (dosync >    (if (eats? @snake @apple) >      (do (ref-set apple (create-apple)) >        (alter snake move :grow)) >     (alter snake move))) > nil) > > > WITHOUT do > > (defn update-positions [snake apple] >  (dosync >    (if (eats? @snake @a

Re: Programming Clojure: Snake: update-positions: What does the "do" do here?

2010-08-05 Thread Meikel Brandmeyer
Hi, On Aug 5, 4:18 pm, michele wrote: > ORIGINAL > > (defn update-positions [snake apple] >   (dosync >     (if (eats? @snake @apple) >       (do (ref-set apple (create-apple)) >         (alter snake move :grow)) >      (alter snake move))) > nil) > > WITHOUT do > > (defn update-positions [snake

Programming Clojure: Snake: update-positions: What does the "do" do here?

2010-08-05 Thread michele
ORIGINAL (defn update-positions [snake apple] (dosync (if (eats? @snake @apple) (do (ref-set apple (create-apple)) (alter snake move :grow)) (alter snake move))) nil) WITHOUT do (defn update-positions [snake apple] (dosync (if (eats? @snake @apple) ((ref-se

Completions and XREFs [Re: Introduction + question re. diff between 'Programming Clojure']

2010-03-24 Thread Terje Norderhaug
On Mar 24, 2010, at 3:53 AM, Laurent PETIT wrote: 2010/3/24 Konrad Hinsen : The original version (. object method) still could have an interest where IDEs could guess the method names to propose based on what they could infer from the object arg. With the (.methodName object) version, the IDE us

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-24 Thread Laurent PETIT
2010/3/24 Konrad Hinsen : > On 23 Mar 2010, at 21:04, Robert Lally wrote: > >> Is there a technical reason that one should prefer the (.method object) >> syntax over the (. object method) variant or is it purely a style that the >> community has converged on? > > It's purely style. You can easily v

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-24 Thread Konrad Hinsen
On 23 Mar 2010, at 21:04, Robert Lally wrote: Is there a technical reason that one should prefer the (.method object) syntax over the (. object method) variant or is it purely a style that the community has converged on? It's purely style. You can easily verify that (.method object) is tr

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Robert Lally
On 23 March 2010 20:57, Meikel Brandmeyer wrote: > Hi, > > On Tue, Mar 23, 2010 at 08:04:34PM +, Robert Lally wrote: > > > I ask because I found that every time I wanted to change my code from > > (.method1 object) to (.. object method1 method2) it would have been > easier > > if the code wer

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Meikel Brandmeyer
Hi, On Tue, Mar 23, 2010 at 08:04:34PM +, Robert Lally wrote: > I ask because I found that every time I wanted to change my code from > (.method1 object) to (.. object method1 method2) it would have been easier > if the code were (. object method1) moving to (.. object method1 method2) > and,

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Robert Lally
On 23 March 2010 20:16, ataggart wrote: > > > On Mar 23, 1:04 pm, Robert Lally wrote: > > On 23 March 2010 12:31, Meikel Brandmeyer wrote: > > > > > Hi, > > > > > one difference which shows up everywhere, is the method and > > > constructor notation. While in the book the old is used - (. obj >

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread ataggart
On Mar 23, 1:04 pm, Robert Lally wrote: > On 23 March 2010 12:31, Meikel Brandmeyer wrote: > > > Hi, > > > one difference which shows up everywhere, is the method and > > constructor notation. While in the book the old is used - (. obj > > (method args ...)) - one should stick to the new one -

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Robert Lally
On 23 March 2010 12:31, Meikel Brandmeyer wrote: > Hi, > > one difference which shows up everywhere, is the method and > constructor notation. While in the book the old is used - (. obj > (method args ...)) - one should stick to the new one - (.method obj > args ...). Similar for Contructors. (no

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Meikel Brandmeyer
Hi, On Mar 23, 2:18 pm, Stuart Halloway wrote: > I am pretty sure the book uses the idiomatic Java interop forms except   > where specifically demonstrating the other forms exist. If that is not   > true it is an erratum, please let me know. Uh. Sorry. I was told in the book the old form was us

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Stuart Halloway
I am pretty sure the book uses the idiomatic Java interop forms except where specifically demonstrating the other forms exist. If that is not true it is an erratum, please let me know. Stu Hi, one difference which shows up everywhere, is the method and constructor notation. While in the bo

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Meikel Brandmeyer
Hi, one difference which shows up everywhere, is the method and constructor notation. While in the book the old is used - (. obj (method args ...)) - one should stick to the new one - (.method obj args ...). Similar for Contructors. (note trailing dot) and Static/ methodCalls. Since I haven't rea

Re: Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Alex Osborne
Hi Thomas, Thomas Kjeldahl Nilsson writes: > Question: I'm in the very first pages of the 'Programming Clojure' > book. I understand that the language is still young and evolving, and > thus a moving target. What's the best way of getting up to speed? Can > I ju

Introduction + question re. diff between 'Programming Clojure'

2010-03-23 Thread Thomas Kjeldahl Nilsson
oks really nice from what little I've read of the mail archive! Question: I'm in the very first pages of the 'Programming Clojure' book. I understand that the language is still young and evolving, and thus a moving target. What's the best way of getting up to speed? Can I jus

Re: Programming Clojure, index-filter & when

2010-03-08 Thread Brendan Ribera
Should you pass in nil, the 'when' will guard against a NPE. On Mon, Mar 8, 2010 at 2:32 PM, Martin Hauner wrote: > Hi, > > there is an example in programming clojure (Chapter 2.6, Where is my > for loop? on page 52) > that I don't really get. > > (defn in

Programming Clojure, index-filter & when

2010-03-08 Thread Martin Hauner
Hi, there is an example in programming clojure (Chapter 2.6, Where is my for loop? on page 52) that I don't really get. (defn index-filter [pred coll] (when pred (for [[idx elt] (indexed coll) :when (pred elt)] idx))) The explanation in the book explains the for/:when but not the

classpath issue with code from book: programming clojure

2009-11-25 Thread Harrison Maseko
I am going through Programming Clojure and I recently downloaded the code from the books official website. For other utils I can do, for example, (require 'clojure.contrib.str-utils) and it works. But how do I load code from the book? (require 'examples.introduction) throws the following

Re: Clojure box - loading book examples from "Programming Clojure"

2009-08-11 Thread cschep
great book. In case another total noob stumbles across this and needs help, this is what I did from start to finish to get Clojure Box up and running with the sample code for "Programming Clojure" by Stuart Halloway. (trying to help out the googlers) 1. Install Clojure Box! This is v

Re: predicates in Programming Clojure

2009-07-23 Thread Jimmie Houchin
Wow. I wasn't trying to be a trouble maker. :) I was just looking to clarify my understanding and didn't understand the conflict between the definition and example. Unless "?" was idiomatic for things other than predicates. Thanks for the clarification. I have yet to encounter the situation of

Re: predicates in Programming Clojure

2009-07-22 Thread Stuart Halloway
The question mark suffix should be used only for predicates. The author of the erroneous prose is currently being forced to drink an extra glass of wine before bed as punishment. I have *no* idea why I wrote that -- best guess is that is-small? started as a predicate and was later changed f

Re: predicates in Programming Clojure

2009-07-22 Thread Meikel Brandmeyer
Hi, Am 22.07.2009 um 19:35 schrieb Richard Newman: Note that predicates don't necessarily have to return literal true or false: in my opinion at least, it's perfectly reasonable to write (def my-predicate? #{:foo :bar}) -- it'll behave correctly in if and when, but the return value will act

Re: predicates in Programming Clojure

2009-07-22 Thread Richard Newman
> That is what I thought. Is it proper or idiomatic Clojure to use a "?" > symbol on non-predicate functions? I don't think so. The standard library doesn't, at any rate. Note that predicates don't necessarily have to return literal true or false: in my opinion at least, it's perfectly reasona

Re: predicates in Programming Clojure

2009-07-22 Thread Jimmie Houchin
Meikel Brandmeyer wrote: > Hi, > > Am 21.07.2009 um 22:48 schrieb Jimmie Houchin: > >>(defn is-small? [number] >>(if (< number 100) "yes" "no" )) >> >> Is is-small? a predicate? If so, is this a common pattern for such >> predicates? > > The definition is correct. is-small? is not > a p

Re: predicates in Programming Clojure

2009-07-21 Thread Meikel Brandmeyer
Hi, Am 21.07.2009 um 22:48 schrieb Jimmie Houchin: (defn is-small? [number] (if (< number 100) "yes" "no" )) Is is-small? a predicate? If so, is this a common pattern for such predicates? The definition is correct. is-small? is not a predicate. It returns a string. So (if (is-small?

predicates in Programming Clojure

2009-07-21 Thread Jimmie Houchin
n the platform chosen for many business apps. That hits me where I live. I am working my way through the Programming Clojure book. I really want to get Clojure in my head and get productive with it. On page 67 is-small? is defined as: (defn is-small? [number] (if (< number 100) &

FYI Bug in "Programming Clojure" clojure download, wrt clojure.contrib.repl-utils/source

2009-07-21 Thread Alex Stoddard
I just discovered that clojure.contrib.repl-utils/source (described on page 40 of the book "Programming Clojure") does not work with the version of the clojure.jar provided with the current code downloads for "Programming Clojure". Core functions do not properly report th

Re: The snake again - Programming Clojure book

2009-07-10 Thread Rowdy Rednose
Awesome! Works great! (After fixing the typo in "SwingUtilites". that is :) --~--~-~--~~~---~--~~ 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

Re: The snake again - Programming Clojure book

2009-07-10 Thread Laurent PETIT
Here is a debugged version: (in-ns 'clojure.core) (let [old-dosync-fn @#'dosync] (defmacro dosync [& body] (let [real-dosync-job (apply old-dosync-fn body)] `(do (assert (javax.swing.SwingUtilites/isEventDispatchThread)) ~real-dosync-job HTH, -- Laurent 2009/7/

Re: The snake again - Programming Clojure book

2009-07-10 Thread Christophe Grand
On Fri, Jul 10, 2009 at 3:44 PM, Rowdy Rednose wrote: > > On Jul 10, 10:28 pm, Stuart Halloway > wrote: > You can rebind macros, but in order to use them you have to compile > > some code again. > > Recompiling would be fine in this case, but how can I rebind macros? eval is evil but... (let

Re: The snake again - Programming Clojure book

2009-07-10 Thread Laurent PETIT
I think you'll have to retrieve the old dosync corresponding function, and call this function to get the corresponding generated code, and insert this code at the correct place. Note also that I would better use (in-ns 'clojure.core) instead of (ns clojure.core) (ns is reserved for the creation of

Re: The snake again - Programming Clojure book

2009-07-10 Thread Michael Wood
2009/7/10 Rowdy Rednose : > > The idea is to have all existing code (that gets recompiled after my > redefinition) benefit from my changes automatically, although I fear > it's not considered good style to do this. Ah. Well, I've just tried: (in-ns 'clojure.core) (def old-dosync dosync) but it

Re: The snake again - Programming Clojure book

2009-07-10 Thread Rowdy Rednose
The idea is to have all existing code (that gets recompiled after my redefinition) benefit from my changes automatically, although I fear it's not considered good style to do this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: The snake again - Programming Clojure book

2009-07-10 Thread Michael Wood
2009/7/10 Michael Wood : > 2009/7/10 Rowdy Rednose : >> >> Actually, it didn't work (apart from having a "not" in there, which I >> only used for testing). >> >> Calling sync directly works, though: >> >> (ns clojure.core) >> (defmacro dosync [& body] >>  `(do >>     (assert (javax.swing.SwingUtil

Re: The snake again - Programming Clojure book

2009-07-10 Thread Michael Wood
2009/7/10 Rowdy Rednose : > > Actually, it didn't work (apart from having a "not" in there, which I > only used for testing). > > Calling sync directly works, though: > > (ns clojure.core) > (defmacro dosync [& body] >  `(do >     (assert (javax.swing.SwingUtilities/isEventDispatchThread)) >     (

Re: The snake again - Programming Clojure book

2009-07-10 Thread Rowdy Rednose
Actually, it didn't work (apart from having a "not" in there, which I only used for testing). Calling sync directly works, though: (ns clojure.core) (defmacro dosync [& body] `(do (assert (javax.swing.SwingUtilities/isEventDispatchThread)) (sync nil ~...@body))) But can't I somehow

Re: The snake again - Programming Clojure book

2009-07-10 Thread Rowdy Rednose
This did the trick: (ns clojure.core) (defmacro dosync [& body] `(do (assert (not (javax.swing.SwingUtilities/isEventDispatchThread))) (#'dosync ~...@body))) This is great for testing! Thanks for your help, Stu. And btw the book is really great so far (and I'm almost through)! It pr

Re: The snake again - Programming Clojure book

2009-07-10 Thread Stuart Halloway
To rebind a macro in clojure.core you would need to first enter that namespace: (in-ns 'clojure.core) Or, create your own dosync in a different namespace which explicitly does not refer to clojure.core/dosync. See the docstring for clojure.core/ns for using :exclude. Stuart > > On Jul 10

Re: The snake again - Programming Clojure book

2009-07-10 Thread Rowdy Rednose
On Jul 10, 10:28 pm, Stuart Halloway wrote: > binding to a thread. The snake game could be extended to be a   > simulation that runs on multiple threads (or perhaps even multiple   Makes sense. For the example in the book it just seemed completely redundant. And when writing Swing code, at least

Re: The snake again - Programming Clojure book

2009-07-10 Thread Stuart Halloway
Hi Rowdy, The snake uses refs because idiomatic Clojure code should not require binding to a thread. The snake game could be extended to be a simulation that runs on multiple threads (or perhaps even multiple machines) without having to change the basic code. Normally, you wouldn't build

The snake again - Programming Clojure book

2009-07-10 Thread Rowdy Rednose
Why does the Snake example in the book use refs when all mutation is done from the EDT? To verify that, I put a call to "assert-edt" in front of every dosync in snake.clj. assert-edt is defined like this: (defn assert-edt [] (assert (javax.swing.SwingUtilities/ isEventDispatchThread))) And it n

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-09 Thread Daniel
On Thu, Jul 9, 2009 at 1:56 AM, Mani wrote: > > Thanks Shawn, Robert. > From Robert's post, I am bit confused here. I also read that .emacs is > in %appdata% folder (vista), but all I see is .emacs.d folder (which I > guess is for the emacs server). I tried creating one "C-x C-f > ~/.emacs" - unde

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread Robert Campbell
> Wherever the files goes after C-x C-f ~/.emacs and then C-x C-s is where > emacs thinks your home directory is. I would just go with that. It's > normally in %appdata%, but it won't be there until you create it and save > it. yes, this is better than my #2 > Robert? Is that all you have in you

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread Shawn Hoover
On Wed, Jul 8, 2009 at 2:56 PM, Mani wrote: > > Thanks Shawn, Robert. > From Robert's post, I am bit confused here. I also read that .emacs is > in %appdata% folder (vista), but all I see is .emacs.d folder (which I > guess is for the emacs server). I tried creating one "C-x C-f > ~/.emacs" - und

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread Mani
Robert? Is that all you have in your .emacs? I am looking to create one from scratch. I noticed that you have clojure / clojure-contrib jars in your .emacs, but what about slime/swank settings? won't they be overridden by Clojure Box -settings or other way - .emacs loading without slime/ swank? (

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread Mani
Thanks Shawn, Robert. >From Robert's post, I am bit confused here. I also read that .emacs is in %appdata% folder (vista), but all I see is .emacs.d folder (which I guess is for the emacs server). I tried creating one "C-x C-f ~/.emacs" - under my home-directory (C:\emacs). Should i just create a

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread Shawn Hoover
Sorry, the snippet author was Daniel Lyons. Here's a link to the other thread: http://groups.google.com/group/clojure/browse_thread/thread/6198db7d82610293 On Wed, Jul 8, 2009 at 2:14 PM, Shawn Hoover wrote: > Oh, here's an example snippet I just saw from Daniel Lyon on another thread > (note ho

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread Shawn Hoover
Oh, here's an example snippet I just saw from Daniel Lyon on another thread (note how it cleverly grabs all the jars from the ~/.clojure directory--you could add another one of these for another directory of jars): (setq swank-clojure-extra-classpaths (cons "/Users/fusion/Projects/Languages/

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread Robert Campbell
1. Here is my .emacs I use for Clojure Box to load the Jars and add the proper paths to your classpath: (setq swank-clojure-extra-classpaths '()) (add-to-list 'swank-clojure-extra-classpaths "C:/Dev/clojure/clojure.jar") (add-to-list 'swank-clojure-extra-classpaths

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread Shawn Hoover
On Wed, Jul 8, 2009 at 2:55 AM, dumb me wrote: > > Hi All, > > I am a dumb around here. my first post among many to come :) > > I setup clojurebox to work thru the book. I am a newbie to emacs and > to clojure. I don't mind the learning curve to emacs. > > I am completely blank about configuring

Re: Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread dumb me
anyone? Has anyone worked on Clojure box with the book examples? Last thing I tried was to load a single file (load-file "c:\emacs\code \examples\introduction.clj") and what I get is the last program in that file. thanks. On Jul 8, 2:55 pm, dumb me wrote: > Hi All, > > I am a dumb around here

Clojure box - loading book examples from "Programming Clojure"

2009-07-08 Thread dumb me
Hi All, I am a dumb around here. my first post among many to come :) I setup clojurebox to work thru the book. I am a newbie to emacs and to clojure. I don't mind the learning curve to emacs. I am completely blank about configuring Clojurebox. Here's what I want to do: 1) load all the code-ex

"Programming Clojure",

2009-06-09 Thread Robert Lehr
I am familiarizing myself w/ Clojure with Stuart Holloway's book, "Programming Clojure". A great introduction to Clojure - very helpful. ASIDE - this actually makes me wonder...are add'l books about Clojure currently being written? If nobody else knows, RH probably would

Re: Silly question from Programming Clojure

2009-06-05 Thread Jim Weirich
On Jun 5, 2009, at 11:40 AM, Laurent PETIT wrote: > * OOSC: Object Oriented Software Construction ( general about object > orientation, see http://archive.eiffel.com/doc/oosc/page.html ) Good book, although weak on the dynamic language side of things. > * SICP: Structure and Interpretation of

Re: Silly question from Programming Clojure

2009-06-05 Thread Paul Stadig
Concepts of Programming Languages by Sebesta is a book that we used that as the text for my comparative programming languages class. I haven't read CTMCP, so I cannot compare. However, after taking that class during my undergraduate, I couldn't believe that it was an elective! There should definite

Re: Silly question from Programming Clojure

2009-06-05 Thread Laurent PETIT
Yes, It's rare to see books about programming concepts/models and not programming languages. As far as I know the following 3 ones deserve being mentioned : * OOSC: Object Oriented Software Construction ( general about object orientation, see http://archive.eiffel.com/doc/oosc/page.html ) * S

Re: Silly question from Programming Clojure

2009-06-05 Thread Daniel Jomphe
I support the CTMCP recommendation. I learned a lot from its first few hundred pages. (Kept the rest for later.) On Jun 5, 2:45 am, Laurent PETIT wrote: > I just got my own copy of the CTM book (Concepts, Techniques and > Models of computer programming) (http://www.info.ucl.ac.be/~pvr/book.html)

Re: Silly question from Programming Clojure

2009-06-04 Thread Laurent PETIT
different programming models / programming paradigms relate to each other, complement themselves, etc. I encourage you to get your own copy. Regards, -- Laurent 2009/6/4 Andrew Wagner : > Hey ya'all! > Just got my copy of Programming Clojure last night (great book, kudos > Stuart

Re: Silly question from Programming Clojure

2009-06-04 Thread Luc Prefontaine
driven by the var, not the value, it's like our sweethearts, they drive the show and they can unbind us at any time : Luc On Thu, 2009-06-04 at 08:28 -0400, Andrew Wagner wrote: > Hey ya'all! > > > > Just got my copy of Programming Clojure last night (great book, kud

Re: Silly question from Programming Clojure

2009-06-04 Thread Meikel Brandmeyer
Hi, Am 04.06.2009 um 14:28 schrieb Andrew Wagner: Just got my copy of Programming Clojure last night (great book, kudos Stuart!). I've got a silly question now. There's a comment in the book about one piece of code where it says "the symbol gets associated with a var which

Re: Silly question from Programming Clojure

2009-06-04 Thread Pierpaolo Bernardi
On Thu, Jun 4, 2009 at 2:28 PM, Andrew Wagner wrote: > Hey ya'all! > Just got my copy of Programming Clojure last night (great book, kudos > Stuart!). I've got a silly question now. There's a comment in the book about > one piece of code where it says "the symbol

Silly question from Programming Clojure

2009-06-04 Thread Andrew Wagner
Hey ya'all! Just got my copy of Programming Clojure last night (great book, kudos Stuart!). I've got a silly question now. There's a comment in the book about one piece of code where it says "the symbol gets associated with a var which gets bound to a value". That

Re: Programming Clojure Arrives!

2009-05-28 Thread Andrew Wagner
I ordered mine today and look forward to getting it soon! On Thu, May 28, 2009 at 8:51 PM, Sean Devlin wrote: > > I just got my copy of Programming Clojure in the mail today. This is > the only time I expect to see the book in pristine condition, as I > know it will get bookmarked,

Programming Clojure Arrives!

2009-05-28 Thread Sean Devlin
I just got my copy of Programming Clojure in the mail today. This is the only time I expect to see the book in pristine condition, as I know it will get bookmarked, highlighted, and well used in a hurry. Congratulations Stuart! --~--~-~--~~~---~--~~ You received

Re: Book for Programming Clojure

2009-05-01 Thread Mibu
> For a list of the changes that have been made to this article since it > was first released, seehttp://ociweb.com/mark/clojure/. > > > > On Thu, Apr 30, 2009 at 8:28 AM, Rayne wrote: > > >http://ociweb.com/jnb/jnbMar2009.html > > > On Apr 30, 4:49 am, anderspe

Re: Book for Programming Clojure

2009-04-30 Thread Timothy Pratley
Hopefully this will give you some leads also: http://en.wikibooks.org/w/index.php?title=Clojure_Programming/Further_Reading Regards, Tim. On Apr 30, 7:49 pm, anderspe wrote: > First the "Programming Clojure" by   Stuart Halloway was sad to come > April 2009, now i read >

Re: Book for Programming Clojure

2009-04-30 Thread Mark Volkmann
ociweb.com/mark/clojure/. On Thu, Apr 30, 2009 at 8:28 AM, Rayne wrote: > > http://ociweb.com/jnb/jnbMar2009.html > > On Apr 30, 4:49 am, anderspe wrote: >> First the "Programming Clojure" by   Stuart Halloway was sad to come >> April 2009, now i read >> Ju

Re: Book for Programming Clojure

2009-04-30 Thread anderspe
Thanks so mutch, this was great. Best regards Anders On 30 Apr, 15:28, Rayne wrote: > http://ociweb.com/jnb/jnbMar2009.html > > On Apr 30, 4:49 am, anderspe wrote: > > > > > First the "Programming Clojure" by   Stuart Halloway was sad to come > > April

Re: Book for Programming Clojure

2009-04-30 Thread Rayne
http://ociweb.com/jnb/jnbMar2009.html On Apr 30, 4:49 am, anderspe wrote: > First the "Programming Clojure" by   Stuart Halloway was sad to come > April 2009, now i read > Juni, so the loong wait have been longer. i know there is a PDF > version, but i like to have a &

Book for Programming Clojure

2009-04-30 Thread anderspe
First the "Programming Clojure" by Stuart Halloway was sad to come April 2009, now i read Juni, so the loong wait have been longer. i know there is a PDF version, but i like to have a book. I am new to both Lisp and Clojure, but not to development. So is there an recommendation

Re: Programming Clojure Beta 9 Is Out

2009-04-09 Thread CuppoJava
Hi Stuart, Thanks very much for writing this book. Do you think the release of the completed book is pretty close? I'm very excited about it. -Patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group.

Programming Clojure Beta 9 Is Out

2009-04-04 Thread Stuart Halloway
http://blog.thinkrelevance.com/2009/4/4/programming-clojure-beta-9-is-out --~--~-~--~~~---~--~~ 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 To u

Re: Programming Clojure sample code: fixes for breaking changes

2009-01-24 Thread Stuart Halloway
Thanks Joshua, This is fixed in the next beta. Stuart > A related point about the validator function (for Refs), possible > the result of the same change in the Clojure codebase > On page 133 of Beta 5.0, > > (def messages (ref () :validator validate-message-list) > > The code samples,

Re: Programming Clojure sample code: fixes for breaking changes

2009-01-24 Thread Joshua Fox
> Telman > > > > > On Jan 16, 8:49 am, Stuart Halloway wrote: > > >> Long, long ago (Tuesday) when Beta 5 of the book shipped, there were > > >> some breakages in the sample code due to changes in clojure- > > >> contrib. I > > >> believ

Re: Programming Clojure sample code: fixes for breaking changes

2009-01-16 Thread Telman Yusupov
elman > > > On Jan 16, 8:49 am, Stuart Halloway wrote: > >> Long, long ago (Tuesday) when Beta 5 of the book shipped, there were > >> some breakages in the sample code due to changes in clojure- > >> contrib. I > >> believe everything is now fix

Re: Programming Clojure sample code: fixes for breaking changes

2009-01-16 Thread Stuart Halloway
, 8:49 am, Stuart Halloway wrote: >> Long, long ago (Tuesday) when Beta 5 of the book shipped, there were >> some breakages in the sample code due to changes in clojure- >> contrib. I >> believe everything is now fixed in the github repository >> (http://github.com/s

Re: Programming Clojure sample code: fixes for breaking changes

2009-01-16 Thread Telman Yusupov
gt; (http://github.com/stuarthalloway/programming-clojure > ). > > Summary of the issues: > > 1. clojure.contrib.seq-util/includes? changed the argument order for   > consistency with other operations. This caused problems with the   > snippet web app; Compojure is now updated to m

Programming Clojure sample code: fixes for breaking changes

2009-01-16 Thread Stuart Halloway
Long, long ago (Tuesday) when Beta 5 of the book shipped, there were some breakages in the sample code due to changes in clojure-contrib. I believe everything is now fixed in the github repository (http://github.com/stuarthalloway/programming-clojure ). Summary of the issues: 1

Re: Programming Clojure Beta 5 is Out

2009-01-13 Thread Vincent Foley
Well, I've gone ahead and finally bought it. Here I thought I would have time to read a fiction novel or something :) On Jan 13, 12:02 pm, Stuart Halloway wrote: > http://blog.thinkrelevance.com/2009/1/13/programming-clojure-beta-5-i... > >

Programming Clojure Beta 5 is Out

2009-01-13 Thread Stuart Halloway
http://blog.thinkrelevance.com/2009/1/13/programming-clojure-beta-5-is-out Cheers, Stu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: Programming Clojure updated to match the AOT compilation release

2008-11-14 Thread Randall R Schulz
ntrib examples in the book > already work, using latest head. Nice work Steve! > > Cheers, > Stuart > > [1] http://pragprog.com/titles/shcloj/programming-clojure On page 21 (of the Beta 2.0 PDF, of course) in section 1.3 you state that we need to retrieve and build SVN release

Programming Clojure updated to match the AOT compilation release

2008-11-14 Thread Stuart Halloway
] http://pragprog.com/titles/shcloj/programming-clojure --~--~-~--~~~---~--~~ 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 To unsubscribe from this g

  1   2   >