Re: How do I track down a painfully long pause in a small web app?

2014-09-23 Thread larry google groups
I'm guessing that strace is showing me userland threads? When I quit strace I see: ^CProcess 19363 detached Process 19364 detached Process 19365 detached Process 19366 detached Process 19367 detached Process 19368 detached Process 19369 detached Process 19370 detached Process 19371 detached Proce

Re: How do I track down a painfully long pause in a small web app?

2014-09-23 Thread larry google groups
I am intrigued by this article, as the problem sounds the same as mine: http://corner.squareup.com/2014/09/logging-can-be-tricky.html "No significant amount of resources appeared to be in use — disk I/O, network I/O, CPU, and memory all looked fairly tame. Furthermore, the bulk of queries being

Re: {ANN} defun: A beautiful macro to define clojure functions with pattern match.

2014-09-23 Thread J David Eisenberg
On Saturday, September 13, 2014 11:47:28 PM UTC-7, dennis wrote: > > > Hi , i am pleased to introduce defun : > a beautiful macro to define clojure functions with pattern match. > > [snip] > This is totally wonderful. Elegant, and useful. -- You received

Re: transducers and async operations

2014-09-23 Thread Wilker
Yeah, I'm going to let it go, hopefully I'll find some way of handling it on future, for now keeping the extra versions is not that bad. Thank you everyone. --- Wilker Lúcio http://about.me/wilkerlucio/bio Woboinc Consultant +55 81 82556600 On Mon, Sep 22, 2014 at 6:01 PM, Leon Grapenthin wrote

Re: Feeding a list of clauses to core.match/match

2014-09-23 Thread Jony Hudson
Mulling on this some more, I think it might be impossible. My reasoning is: I'm trying to do this so I can determine the list of clauses at run-time. But `core.match/match` does its magic at compile time, so it seems unlikely that I'm going to get what I want! Back to the drawing board ... Jo

Re: Feeding a list of clauses to core.match/match

2014-09-23 Thread Mayank Jain
Not sure but are you looking for something like this? https://github.com/killme2008/defun On Tue, Sep 23, 2014 at 8:19 PM, Jony Hudson wrote: > OK, this is probably simple, but I can't seem to figure it out. Maybe > someone who understands macros better than me can help :-) > > I'd like to be ab

Re: Clojure beginner: angst about "doing things right"

2014-09-23 Thread John Gabriele
On Monday, September 22, 2014 2:45:23 PM UTC-4, J David Eisenberg wrote: > > The good news: the code works. The bad news: I'm convinced I'm doing it > wrong, in the moral purity sense of the word. Something inside of me says, > "You could have just used (map...) to do this the *right* way," but

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Laurent PETIT
Le mardi 23 septembre 2014, Hugo Duncan a écrit : > > laurent.pe...@gmail.com writes: > > > Just a question so my understanding levels up: are there usecases where > one > > would use the current behavior of removing a namespace not also removing > it > > from *loaded-libs* (and thus preventing

Feeding a list of clauses to core.match/match

2014-09-23 Thread Jony Hudson
OK, this is probably simple, but I can't seem to figure it out. Maybe someone who understands macros better than me can help :-) I'd like to be able to write something like the following: (def some-clauses '[[false _] :f [true _] :t]) (match-clauses [[false 3]] some-clauses) but I can't

Re: Clojure beginner: angst about "doing things right"

2014-09-23 Thread Tim Visher
On Mon, Sep 22, 2014 at 2:45 PM, J David Eisenberg wrote: > As part of a larger program, I'm testing a function that will turn a string > of days on which a class occurs (such as "MWF") into a list of seven > numbers: (1 0 1 0 1 0 0). > I first translate"TH" (Thursday) to "R" and "SU" (Sunday) to

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Hugo Duncan
laurent.pe...@gmail.com writes: > Just a question so my understanding levels up: are there usecases where one > would use the current behavior of removing a namespace not also removing it > from *loaded-libs* (and thus preventing it from being required without > :reload) ? You can create namespa

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Laurent PETIT
2014-09-23 12:53 GMT+02:00 Hugo Duncan : > > laurent.pe...@gmail.com writes: > > > Le mardi 23 septembre 2014, Stuart Sierra > a > > écrit : > > > >> I'm not sure I understand what you mean. > >> > >> `remove-ns` does not remove the namespace from the set of "loaded" > >> namespaces kept by `requ

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Hugo Duncan
laurent.pe...@gmail.com writes: > Le mardi 23 septembre 2014, Stuart Sierra a > écrit : > >> I'm not sure I understand what you mean. >> >> `remove-ns` does not remove the namespace from the set of "loaded" >> namespaces kept by `require`. tools.namespace >>

Understanding how a collection reduce itself

2014-09-23 Thread Hussein B.
Hi, I spent a considerable time trying to understand reducers. I got the concept of how the map/filter function will return a function and it is not going to iterate over a sequence and it is not going to create a new sequence. The missing part though, who is creating the sequence? They say a

Re: ANN: ClojureScript 0.0-2341, Improved Analysis & Transducers

2014-09-23 Thread David Nolen
Those are errors in core.async already fixed in master. On Tuesday, September 23, 2014, Denis Johnson wrote: > Thanks for the update. > > Both the previous and this causes the following warnings with core.async: > > WARNING: Use of undeclared Var cljs.core.async/do-alts at line 62 > file:../.m2/