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
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
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,
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
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
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
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
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
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
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
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:
>
>
> 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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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.
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
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
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
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
>
>
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
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
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
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
34 matches
Mail list logo