Re: What causes the text that I print to the terminal to become mangled garbage?

2013-03-13 Thread David Powell
pprint uses refs internally rather than vars. I was always a bit suspicious about that... Perhaps transaction retries are happening? On Wed, Mar 13, 2013 at 3:19 PM, larry google groups < lawrencecloj...@gmail.com> wrote: > > tl;dr concurrency is hard > > Jason, if it was just a concurrency is

Re: What causes the text that I print to the terminal to become mangled garbage?

2013-03-13 Thread larry google groups
> tl;dr concurrency is hard Jason, if it was just a concurrency issue, it would happen when I use pprint. But the above mess only seems to happen with a very specific combination of Timbre and thread measuring functions. On Wednesday, March 13, 2013 12:16:46 AM UTC-4, Jason Lewis wrote:

Re: What causes the text that I print to the terminal to become mangled garbage?

2013-03-13 Thread larry google groups
Thanks all. I don't think this can be just a concurrency issue or I would also see it when I'm not using Timbre. If I call pprint from multiple threads I don't get this kind of interleaving of individual characters. Nor do I normally get this interleaving when just using Timbre. But somehow the

Re: What causes the text that I print to the terminal to become mangled garbage?

2013-03-13 Thread Marko Topolnik
There *is* mutual exclusion on all Java output streams (as well as input streams) so at least individual prints should be atomic. Not that it will solve this, but still, this kind of granularity of interleaving is unusual. I have never seen it. On Wednesday, March 13, 2013 4:27:00 AM UTC+1, Mic

Re: What causes the text that I print to the terminal to become mangled garbage?

2013-03-12 Thread Jason Lewis
tl;dr concurrency is hard Jason Lewis Email jasonlewi...@gmail.com Twitter@canweriotnow Blog http://decomplecting.org About http://about.me/jason.lewis On Tue, Mar 12, 2013 at 11:27 PM, Michael Klishin < michael.s.klis...@g

What causes the text that I print to the terminal to become mangled garbage?

2013-03-12 Thread larry google groups
I saw some functions here that measure CPU and thread usage: http://lifeisagraph.com/2011/04/24/debugging-clojure.html That looked good, so I imported them into my app. I've done this before and not had a problem with it. For logging, I like to use the Timbre library: https://github.com/pta