Re: OOM with Agents

2010-12-10 Thread Alex Osborne
Michael Ossareh writes: > There are 54874 companies in the companies var. The OOM tends to take place > when there are 1000 or so companies to process. > > What is likely to be causing this issue? I replied on IRC but just recapping here. I think you've probably been bitten by the way Java str

Re: Getting strange behavior when stubbing

2010-12-10 Thread Ken Wesson
On Sat, Dec 11, 2010 at 1:16 AM, ka wrote: > Hi Brian, > > Can you explain this in more detail : > >>> I didn't have the laziness problem. I don't know if that was by accident or >>> because Midje applies an #'eagerly function before checking. > > Because it seems that if code has a laziness prob

Re: Getting strange behavior when stubbing

2010-12-10 Thread ka
Hi Brian, Can you explain this in more detail : >> I didn't have the laziness problem. I don't know if that was by accident or >> because Midje applies an #'eagerly function before checking. Because it seems that if code has a laziness problem, Midje will actually hide it in tests? Thanks. --

Re: OOM with Agents

2010-12-10 Thread Ken Wesson
On Sat, Dec 11, 2010 at 1:05 AM, Michael Ossareh wrote: > I've cobbled together some grungy code to attempt to work out the number of > employees in different ranges - the code is a horrible mess of side > effects: https://gist.github.com/737179 ... > There are 54874 companies in the companies v

Re: command line options parser

2010-12-10 Thread Alan
Have you considered instead providing a clojure wrapper around a well- known java command-line parser? The only one I've used is apache- commons-cli, which I found to be pretty lackluster, but http://www.freebsdsoftware.org/java/java-getopt.html is from FreeBSD and claims to be a 100% compatible po

OOM with Agents

2010-12-10 Thread Michael Ossareh
Hi, I've cobbled together some grungy code to attempt to work out the number of employees in different ranges - the code is a horrible mess of side effects: https://gist.github.com/737179 (pmap process-company (take 1500 companies)) results in: Exception in thread "pool-2-thread-3905" java.lang

Re: Moderately off-topic: installing emacs on OSX

2010-12-10 Thread gaz jones
brew install emacs --cocoa worked pretty well for me. and then my fork of emacs-starter-kit if that is useful to anyone: https://github.com/gar3thjon3s/emacs-starter-kit my default-profile.el has a few settings for making the brew installed emacs work better with os x. by the way thanks for the

Re: Moderately off-topic: installing emacs on OSX

2010-12-10 Thread Mike Meyer
On Sat, 11 Dec 2010 01:07:51 + Alec Battles wrote: > > I don't use OS X so I can't comment on such a consensus, but while I > > appreciate the sentiment, it's actually harmful to some degree to have > > lots of blog posts scattered around everywhere that all have slightly > > different advice

command line options parser

2010-12-10 Thread gaz jones
oh hi, i needed (well, wanted) a command line parser more like opt parser in ruby so i threw one together: https://github.com/gar3thjon3s/clargon thought i would share in case anyone else finds it useful. im aware of with-command-line but it didnt quite do what i wanted as i needed functions tha

Re: Moderately off-topic: installing emacs on OSX

2010-12-10 Thread Phil Hagelberg
On Fri, Dec 10, 2010 at 5:07 PM, Alec Battles wrote: >> I strongly suggest improving the docs on the >> Clojure wiki instead; that way errors can be fixed by the community. > > Why does the one preclude the other? > > Also, if people aren't going to blog about Clojure, what future does it have? S

Re: Lisp history

2010-12-10 Thread Alec Battles
>  For those who were not around when the Common Lisp > standard was being debated you might find this interesting: > > http://lisp.geek.nz/weekly-repl/ > > Common Lisp Standardization: The good, the bad, and the ugly > by Peter Seibel Thanks for sharing this. Anyone whose name pulls up a profile

Re: Moderately off-topic: installing emacs on OSX

2010-12-10 Thread Alec Battles
> I don't use OS X so I can't comment on such a consensus, but while I > appreciate the sentiment, it's actually harmful to some degree to have > lots of blog posts scattered around everywhere that all have slightly > different advice, especially since that advice usually becomes > outdated within

Re: Google AI winner uses lisp

2010-12-10 Thread Alec Battles
> On Thu, Dec 9, 2010 at 8:53 PM, Alec Battles wrote: >> I'm sure a few people have read this news already. It's been up for a >> week, though strangely ZDnet -- which, on principle, I refuse to link >> to > > Why? Because of the website's close ties to Washington. This blog post is exemplary: h

Re: Getting strange behavior when stubbing

2010-12-10 Thread Alex Baranosky
Hey Brian, I just got your latest version of Midje via lein, and I'm able to use it. I had been getting a stack trace previously. Midje is nice, because I can do more specialized stubbing with it than with the code I got from Amit Rathore's blog/book. Also, this is the fmap I wrote (with the li

Re: Null-safe threading macro?

2010-12-10 Thread Alex Baranosky
On Chrome, the Javascript search popup extends off the top of the page... Hence I can not see all of the entries in it. -- 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

Re: Google AI winner uses lisp

2010-12-10 Thread Wilson MacGyver
Foreign function interface. To call C/C++ libs. On Dec 10, 2010, at 6:52 PM, javajosh wrote: > What is FFI? > > On Dec 9, 10:47 pm, Ken Wesson wrote: >> On Fri, Dec 10, 2010 at 12:43 AM, javajosh wrote: >>> It does beg the question, though: what is a reasonable bare minimum >>> function set

Re: Google AI winner uses lisp

2010-12-10 Thread javajosh
What is FFI? On Dec 9, 10:47 pm, Ken Wesson wrote: > On Fri, Dec 10, 2010 at 12:43 AM, javajosh wrote: > > It does beg the question, though: what is a reasonable bare minimum > > function set that a real-life lisp would require? > > I think different people might give different answers to that.

Re: Null-safe threading macro?

2010-12-10 Thread Daniel Werner
On 10 December 2010 22:08, Alex Baranosky wrote: > I actually did use that search and a search of -?> doesn't come find -?> The incremental search feature actually suggests "-?>" while you're still typing, and clicking on the suggestion will take you to the correct docs for clojure.contrib.core/-

Re: Null-safe threading macro?

2010-12-10 Thread Alex Baranosky
Daniel, I actually did use that search and a search of -?> doesn't come find -?> -- 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

Re: Moderately off-topic: installing emacs on OSX

2010-12-10 Thread Phil Hagelberg
On Fri, Dec 10, 2010 at 11:20 AM, javajosh wrote: > (conflicting advice snipped) > > If we can reach consensus on best (easiest, least error-prone) path to > getting a working emacs clojure environment up on OSX I'll happily > execute and even write up my experience. I don't use OS X so I can't c

Re: Posted the Bowling Game Kata in Clojure w/ Video. Thoughts welcome. EOM

2010-12-10 Thread Tim Visher
Because posting the link would make some modicum of sense… http://blog.twonegatives.com/post/2168030248/kata ^_^ -- 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 m

Posted the Bowling Game Kata in Clojure w/ Video. Thoughts welcome. EOM

2010-12-10 Thread Tim Visher
-- 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 unsubscribe from this group, send email to cloj

Re: Moderately off-topic: installing emacs on OSX

2010-12-10 Thread Steve Purcell
javajosh writes: > (conflicting advice snipped) > > If we can reach consensus on best (easiest, least error-prone) path to > getting a working emacs clojure environment up on OSX I'll happily > execute and even write up my experience. I think there is consensus; the respondents to this thread se

Re: Moderately off-topic: installing emacs on OSX

2010-12-10 Thread javajosh
(conflicting advice snipped) If we can reach consensus on best (easiest, least error-prone) path to getting a working emacs clojure environment up on OSX I'll happily execute and even write up my experience. -- You received this message because you are subscribed to the Google Groups "Clojure" g

Re: Getting strange behavior when stubbing

2010-12-10 Thread Brian Marick
Shameless Self-promotion Dept: Here's how I'd write your three tests in Midje. https://github.com/marick/Midje (fact "chains of locations are handled" (distances "Boston,MA" "Albany,NY" "LosAngeles,CA") => [2.0, 2.0] (provided (dist-in-miles anything anything) => 2.0)) (fact "can convert dist

Re: Null-safe threading macro?

2010-12-10 Thread Daniel Werner
On Dec 10, 6:35 am, Alex Baranosky wrote: > Thanks, it is so hard to google symbols. Use the search bar on ClojureDocs: http://clojuredocs.org/ -- Daniel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@

Re: Moderately off-topic: installing emacs on OSX

2010-12-10 Thread Steve Purcell
javajosh writes: >> failing to load in the error message and all, I'd try that. > I would still like to see slime in action, however. I have two emacs > installed, GNU and Aquamacs. macports is still not able to do anything > - I'm actually rather concerned about it's health. > > $ emacs --version

Re: Google AI winner uses lisp

2010-12-10 Thread Jon Seltzer
CL On Dec 9, 7:09 pm, Ken Wesson wrote: > On Thu, Dec 9, 2010 at 8:53 PM, Alec Battles wrote: > > I'm sure a few people have read this news already. It's been up for a > > week, though strangely ZDnet -- which, on principle, I refuse to link > > to > > Why? > > > -- is one of the only places to