Clojure Bee iPhone app updated

2012-05-16 Thread mudphone
Just a quick announcement that the Clojure Bee iPhone app was just updated. This release eliminates crashiness and updates the font for the source code view. More info on the app here: http://itunes.apple.com/us/app/clojure-bee-api-documentation/id524862532?ls=1&mt=8 Anyone interested in a free

Re: StackOverflowError possible with seq ?

2010-01-22 Thread mudphone
(def foo (stack-fail () 1000)) > > foo > ; Evaluation aborted. > > if you call a non-lazy function (e.g. doall) on the collection from > time to time this wont happen. > > Rgds, Robert > > On 15 Jan., 00:05, mudphone wrote: > > > > > Is it possible that th

Re: StackOverflowError possible with seq ?

2010-01-18 Thread mudphone
)) >     l)) > > (def foo (stack-fail () 1000)) > > foo > ; Evaluation aborted. > > if you call a non-lazy function (e.g. doall) on the collection from > time to time this wont happen. > > Rgds, Robert > > On 15 Jan., 00:05, mudphone wrote: > > > >

StackOverflowError possible with seq ?

2010-01-14 Thread mudphone
Is it possible that the Clojure core seq function can cause a stack overflow (since it calls itself)? Or is there some other manner in which misuse of a lazy seq could cause this? In the stack trace below, I'm seeing repeated calls to "seq" in clojure core, until the stack is blown. Thanks, Kyle

Re: Redis-Clojure: NoRouteToHostException

2010-01-14 Thread mudphone
I hadn't worried about it, since it was just a quick example. But, thanks for the tip. Regards, Kyle On Jan 13, 1:29 pm, Timothy Pratley wrote: > 2010/1/14 mudphone : > > > I believe it has to do with opening too many sockets on the Redis > > server, rather than the total numbe

Redis-Clojure: NoRouteToHostException

2010-01-13 Thread mudphone
This is a problem I'm having with the Redis-Clojure library, which is not strictly a Clojure issue. But, I know there are a lot of folks using it in the community, so I thought this might be a good shot for getting help. Sorry for the cross-post. After adding about 16328 members to a set, the st

Re: Idiomatic way to return the key of a map, which matches a vector containing a search value.

2009-12-13 Thread mudphone
e #{"rabble"}) val) players)) > > > On Dec 10, 3:27 pm, Sean Devlin wrote: > > > > Try this... > > > > (second (first (filter (comp (partial some #{"rabble"}) val) > > > players))) > > > > On Dec 10, 2:40 pm, mudphone w

Re: Idiomatic way to return the key of a map, which matches a vector containing a search value.

2009-12-11 Thread mudphone
Thanks for the suggestions. I think since the original version short circuits when it finds a result (using "some"), that's probably what I have to stick with. One thing I didn't mention in the original problem statement is that my "players" map can be large. Again, thanks for the ideas. Kyle

Idiomatic way to return the key of a map, which matches a vector containing a search value.

2009-12-10 Thread mudphone
Hi Folks, So, I have a search string, for example "rabble". And a map which contains keyword keys, and vectors of strings as values: (def players { :amit ["a" "b" "c"] :roger ["rabble" "x" "y"] }) Is there an idiomatic way to search for "rabble" in the vector values, then return the keyword tha

Re: Code formatter

2009-11-07 Thread mudphone
Um, I use butterflies? On Nov 6, 5:35 pm, John Harrop wrote: > On Fri, Nov 6, 2009 at 7:41 PM, Tim Dysinger wrote: > > Use emacs! It formats your code while you type :) > > Nasty side effect though -- it formats your brain while you type, too. > Eventually you wind up a gibbering lunatic. :) I'