ANN: ringMon 0.1.1 released

2012-03-19 Thread zoka
Hi all. The first non-snapshot release of ringMon 0.1.1 is available at Clojars. The ringMon is a Ring middleware that can be easily added to an existing Ring based application. It injects a monitoring page that displays application data of interest (JMX and derived values). The page also provid

Re: ANN: ringMon Ring middleware that provides monitoring and nREPL remote interface to any Ring based Clojure web app

2012-03-19 Thread zoka
Hi all, The first non-snapshot release of ringMon 0.1.1 is now in Clojars. The demo is at http://noirmon.herokuapp.com/ringmon/monview.html The source is at https://github.com/zoka/ringMon/ Regards Zoka -- You received this message because you are subscribed to the Google Groups "Clojure" gro

Re: 3d modeling tools

2012-03-19 Thread Jeff Rose
If you are going to use processing from Clojure, you'll want to checkout Quil: https://github.com/quil/quil It's a more Clojure friendly take on processing sketches, and it's a lot less painful to get up and running. -Jeff On Mar 19, 4:15 pm, Lee Spector wrote: > On Mar 16, 2012, at 10:05 AM,

Re: Returning Success

2012-03-19 Thread Dave Ray
On Mon, Mar 19, 2012 at 7:14 PM, jk wrote: > I read this and wondered why you care? Isn't it sufficient to return > the new world state? You could use identical? as someone suggested but > why bother? It sounds like the player should be able to keep bumping > into the wall if they keep making the

Re: Returning Success

2012-03-19 Thread Michael Gardner
On Mar 19, 2012, at 5:31 PM, Michael Gardner wrote: > Or the simplest option: just have your functions return nil to indicate that > the world state should remain unchanged from its previous value. If your world state is a hash-map, you could also return partial states and merge them into the e

Re: Returning Success

2012-03-19 Thread Mark Engelberg
On Mon, Mar 19, 2012 at 3:56 AM, Narvius wrote: > I see several ways to achieve what I want, that is to return both the new > world state and success status. > 1) Compare the old and new value - doesn't seem very efficient. > Probably not as inefficient as you think. Identical things are recogn

Re: Clojure code optimizer

2012-03-19 Thread Sanel Zukan
Hi Andru and thank you for expressing interest in this proposal. > Could you please give more details (or examples) on the types of > optimizations the optimizer should be able to do? Also, what is a tree > shaker implementation? > As David wrote, this is dead code elimination and in LISP wor

Re: 3d modeling tools

2012-03-19 Thread Lee Spector
On Mar 16, 2012, at 10:05 AM, Niels van Klaveren wrote: > AFAIK there's not much projects focussing on 3D in Clojure, but you can take > a look at processing (http://processing.org) and one of it's Clojure > wrappers. It's a great little language for 2D/3D visuals, and there's plenty > of swarm

Re: Returning Success

2012-03-19 Thread jk
I read this and wondered why you care? Isn't it sufficient to return the new world state? You could use identical? as someone suggested but why bother? It sounds like the player should be able to keep bumping into the wall if they keep making the same move. I am just curious why the problem is mor

Re: Returning Success

2012-03-19 Thread Sean Corfield
On Mon, Mar 19, 2012 at 3:56 AM, Narvius wrote: > 2) Return [new-state success?] instead of just new-state - requires too much > acrobatics from the user of the function (which is still me, but whatever). Destructuring makes it easy to work with multi-value returns: (let [[state status] (make-mo

Re: Mapping first element only: how to preserve vectors

2012-03-19 Thread Cedric Greevey
On Mon, Mar 19, 2012 at 9:40 AM, Bojan wrote: > Hi! > > I'm a beginner at clojure and enjoying the learning process. While writing > my first nontrivial program, I noticed that I'm transforming only first > elements in the list, so I factored this transformation out by writing next > function: > >

Re: The extensible reader

2012-03-19 Thread Brent Millare
> That syntax is already used for defrecords. > > Clojure 1.4.0-beta2 > user=> (defrecord Foo [a b]) > user.Foo > user=> (read-string "#user.Foo[1 2]") > #user.Foo{:a 1, :b 2} > user=> > > Technically, there is no space with that method. As it is currently implemented, tags are separated by a

Re: Returning Success

2012-03-19 Thread Meikel Brandmeyer (kotarak)
Hi, Am Montag, 19. März 2012 11:56:28 UTC+1 schrieb Narvius: > > 1) Compare the old and new value - doesn't seem very efficient. > > Just return the very same world state object? You can easily and insanely fast decide whether it was changed by virtue of "identical?". Then you don't need any spe

Re: Returning Success

2012-03-19 Thread Andy Fingerhut
I liked approach 2 myself, if the goal is to stick with pure functions when it isn't too difficult. It avoids the comparison of 1, and gets you back exactly the info you want to go onwards from there. You can add a caveat that I haven't written a lot of application code with Clojure, so weight

Re: Returning Success

2012-03-19 Thread Michael Gardner
If the success/failure of the function makes sense to represent in game-world terms, you could encode the information in the world object, perhaps as a flag that can be attached to the relevant object. In your example, the unit might be given a "state" with the value :blocked, indicating that so

Re: clojurewest talk videos?

2012-03-19 Thread Bill Caputo
Alex, I never signed the release (my apologies) - but I'm fine with it... any alt. release I can provide? Bill - On Mar 19, 2012, at 9:33 AM, Alex Miller wrote: > Yes, all talks were recorded and will be released on http://infoq.com > starting in about 3 weeks on a rolling basis. > > Al

Re: The extensible reader

2012-03-19 Thread Stuart Sierra
On Sunday, March 18, 2012 9:07:54 PM UTC-4, Brent Millare wrote: > > > this form is still unreadable by default, but with tagged literals, allows > users to define custom reader behavior per class. > #java.class.name [args*] > > That syntax is already used for defrecords. Clojure 1.4.0-beta2 use

Re: ClojureScript error messages

2012-03-19 Thread David Nolen
On Mon, Mar 19, 2012 at 1:36 PM, Aaron wrote: > I pushed the patch to my fork on github in this commit: > https://github.com/aaronc/clojurescript/commit/3193ed6e27061765782da32d36a63b0f7630f5e9 > > Should I submit a pull request? Clojure doesn't take pull requests. Have you sent in your CA? If

Re: Clojurescript One and Websockets

2012-03-19 Thread Kushal Pisavadia
I am in discussion with James, but it's very high-level at the moment and no work has been done on integration yet. I don't think it'll get into the next tagged release of Ring (1.1) in time, as that's likely to be released fairly soon once the current set of issues are cleared up. On 19 March 20

Re: Clojurescript One Errors

2012-03-19 Thread George Oliver
On Mar 16, 10:19 pm, John Collins wrote: > I copied the clojurescript one project and made changes to the html files. > > When I do (go) after `lein repl` I get errors in the browser about not > being able to resolve some namespaces. And also the wiki makes no mention > how to compile the projec

Returning Success

2012-03-19 Thread Narvius
I am writing a game in Clojure, and I often need some functions to return whether they succeeded in doing what they are supposed to do (for example, moving that unit one field to the left may fail due to... I don't know, a wall?). But if there is one thing I really like about LISPs is the idea

Re: ClojureScript error messages

2012-03-19 Thread Aaron
I pushed the patch to my fork on github in this commit: https://github.com/aaronc/clojurescript/commit/3193ed6e27061765782da32d36a63b0f7630f5e9 Should I submit a pull request? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

Mapping first element only: how to preserve vectors

2012-03-19 Thread Bojan
Hi! I'm a beginner at clojure and enjoying the learning process. While writing my first nontrivial program, I noticed that I'm transforming only first elements in the list, so I factored this transformation out by writing next function: (defn map-first [f coll] (map #(cons (f (first %)) (res

Re: ANN: A Brief Beginner's Guide to Clojure

2012-03-19 Thread John Gabriele
On Mar 15, 12:21 pm, Phil Dobbin wrote: > > On 14/03/2012 18:24, John Gabriele wrote: > > > I wrote a [brief beginner's guide to Clojure][1] that might interest > > those who are brand new to Clojure. > >[snip] > > Thanks for this, John. You're welcome, Phil. Feedback is, of course, appreciated.

Re: understanding data structures, and other low-level stuff

2012-03-19 Thread Nuno Marques
This book: Purely Functional Data Structures http://www.cs.cmu.edu/~rwh/theses/okasaki.pdf is a good read. Though, It only contains a small reference (half a page) about persistent data structures. On Mar 19, 2012, at 7:28 PM, Andy Fingerhut wrote: > I've got my copy of Cormen, Leiserson, and

Re: understanding data structures, and other low-level stuff

2012-03-19 Thread Andy Fingerhut
I've got my copy of Cormen, Leiserson, and Rivest's book with me now, which is the 3rd edition, and looking in the index under "persistent" it does have one exercise in chapter 13 on that topic, and a mention later in the book that is a paragraph or two long with a reference to a research paper.

Re: Clojure code optimizer

2012-03-19 Thread David Nolen
On Sat, Mar 17, 2012 at 5:59 PM, Andru Gheorghiu wrote: > Hello, > > I am a third year student majoring in computer science and I am > interested in the Clojure code optimizer project proposed for GSoC > 2012. Could you please give more details (or examples) on the types of > optimizations the opt

Re: Clojure/core accepted as a Google Summer of Code 2012 Mentoring Organization!

2012-03-19 Thread David Nolen
I saw there was a GSoC 2012 unsession at Clojure/West, how'd that go? Anybody want to summarize? David On Fri, Mar 16, 2012 at 10:10 PM, Baishampayan Ghose wrote: > Woohoo! Huge win. > > Psst, can I be a mentor? May be an assistant mentor? I don't have any > specific project idea in mind, but I

Re: clojurewest talk videos?

2012-03-19 Thread Alex Ott
Clojure-related posts/presentations from InfoQ should be automatically propagated to Planet Clojure... On Mon, Mar 19, 2012 at 3:33 PM, Alex Miller wrote: > Yes, all talks were recorded and will be released on http://infoq.com > starting in about 3 weeks on a rolling basis. > > Alex > > > On Sund

Re: clojurewest talk videos?

2012-03-19 Thread Alex Miller
Yes, all talks were recorded and will be released on http://infoq.com starting in about 3 weeks on a rolling basis. Alex On Sunday, March 18, 2012 1:12:41 PM UTC-5, Las wrote: > > Hi, > > will the videos of the talks be available for those who did not make it to > the conference? > > thx > >

Re: clojure url exception

2012-03-19 Thread Michael Fogus
Explanation/clarification added to the ticket. -- 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 from new members are moderated - please be patient with your first post. To u

Re: Creating map from string

2012-03-19 Thread Ben Smith-Mannschott
On Sun, Mar 18, 2012 at 21:04, Jimmy wrote: > Hi, > > I would like to generate a hashmap from a string. The key portions of > the string  will have some a prefix such as @ to define that they are > a key. So the following string > > "@key1  this is a value  @another-key  and another value @test1 a

Re: Clojurescript One and Websockets

2012-03-19 Thread Jay Fields
I'm not involved (much) with Webbit other than using it in prod for my web socket stuff. I believe Kushal Pisavadia (cc'd) & James Reeves have been talking about webbit features that Ring could leverage, but I'm not familiar with the details. Cheers, Jay On Sat, Mar 17, 2012 at 7:23 PM, Brian Ro

Re: Creating map from string

2012-03-19 Thread Jimmy
Ok, those sugggestions work great. Thanks for the help. -- 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 from new members are moderated - please be patient with your first