Re: Easier way to run Clojure from command line?

2010-05-08 Thread Adam Jones
Have you seen Leiningen? [1]. It seems like it will do what you want with "lein repl", and additionally it has some nice features for acquiring dependencies and building a .jar from your project. [1] http://github.com/technomancy/leiningen#readme On May 7, 1:43 pm, Jason Smith wrote: > So the pr

Re: Monads in Clojure

2008-11-23 Thread Adam Jones
On Nov 23, 1:15 pm, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > On 21.11.2008, at 20:10, Adam Jones wrote: > > >> The file contains the macro definitions, the definitions of three > >> popular monads (maybe, list, state), and some illustrations of their

Re: mutability

2008-11-21 Thread Adam Jones
On Nov 20, 12:23 pm, islon <[EMAIL PROTECTED]> wrote: > I'm porting my single thread simple mud-like rpg game from scala to > clojure and one thing that is annoying me is the code needed to change > some var. > In scala I do things like that: > > val player = new Player(...) > > player.str += 1

Re: Monads in Clojure

2008-11-21 Thread Adam Jones
On Nov 21, 3:14 am, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > As a first non-trivial exercice, I wrote an implementation of monads   > in Clojure. I just uploaded it to the Group: > >        http://clojure.googlegroups.com/web/monads.clj > > The file contains the macro definitions, the definiti

Re: Eager map?

2008-11-18 Thread Adam Jones
On Nov 18, 11:18 am, Robert Ewald <[EMAIL PROTECTED]> wrote: > On Tuesday 18 November 2008 08:20:15 mb wrote: > > > > > Hi, > > > On 18 Nov., 03:01, Adam Jones <[EMAIL PROTECTED]> wrote: > > > I'm in the middle of writing some code to extrac

Re: Eager map?

2008-11-17 Thread Adam Jones
On Nov 17, 4:25 pm, Bradbev <[EMAIL PROTECTED]> wrote: > On Nov 17, 3:50 pm, Adam Jones <[EMAIL PROTECTED]> wrote: > > > On Nov 17, 3:26 pm, Robert Ewald <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > Doing some small experiments I

Re: Daily Build

2008-11-17 Thread Adam Jones
On Nov 17, 5:22 pm, Robert <[EMAIL PROTECTED]> wrote: > Is there a server that tests every day if Clojure builds correctly? I > pulled the latest a few days ago and couldn't get it to build (whereas > the 2008-09-16 "release" does build for me). Having such a server > would > assist in determini

Re: Eager map?

2008-11-17 Thread Adam Jones
On Nov 17, 3:26 pm, Robert Ewald <[EMAIL PROTECTED]> wrote: > Hello, > > Doing some small experiments I stumbled over map returning a lazy seq instead > of performing the function. I had to convert that to a doseq. Is there any > rationale for not having an eager map. Or was I just not reading t

Re: POLL: Domain name for project hosting site.

2008-11-17 Thread Adam Jones
On Nov 17, 11:52 am, Drew Crampsie <[EMAIL PROTECTED]> wrote: > Hey All, > > I've finally found some time to start getting the project hosting site > together, and i need a name.. so lets put it to a vote. > > Here are some suggestions so far, but please feel free to chime in > with your own as

Re: reader macros

2008-11-15 Thread Adam Jones
On Nov 15, 4:52 pm, Jeff Rose <[EMAIL PROTECTED]> wrote: > Hi, I'm finding comments talking about reader macros, but nothing about > defining them.  Does anyone know of an example for adding new read > macros?  I'd like to define a #! macro that passes over the rest of the > line so we can use c

Re: Weighted Edge Representation

2008-10-30 Thread Adam Jones
On Oct 30, 11:01 am, "Matthew D. Swank" <[EMAIL PROTECTED]> wrote: > On Oct 30, 8:57 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > > > On Oct 29, 6:27 pm, ccahoon <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I'm wondering what would be a good way to represent a mincut, maximum > > > flow

Re: Reader + Macros on untrusted S Expressions: Security considerations?

2008-10-23 Thread Adam Jones
On Oct 22, 6:17 am, Chouser <[EMAIL PROTECTED]> wrote: > On Wed, Oct 22, 2008 at 4:30 AM, Brett Morgan <[EMAIL PROTECTED]> wrote: > > > I understand the lisp way is to use the reader plus macros to interpret the > > incoming data stream. This is hella cool in that it seriously cuts down on > > t

Suggestions on handling state for a game...

2008-10-19 Thread Adam Jones
I'm starting up work again on my Clojure-based game. Up until this point I've been doing things the "dirty" way by re-defing a bunch of global variables and/or storing the values in the Java objects I need to use to get access to the game framework. This approach is pretty unwieldy, and means I m