[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- From: Sean Devlin <francoisdevlin@gmail.com>
- To: Philly Lambda <philly-lambda@googlegroups.com>
- Subject: Re: Game of life
- Date: Mon, 8 Feb 2010 06:46:28 -0800 (PST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:mime-version:received:date :in-reply-to:x-ip:references:user-agent:x-http-via:x-http-useragent :message-id:subject:from:to:x-original-authentication-results :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:x-thread-url:x-message-url:sender :list-unsubscribe:content-type:content-transfer-encoding; bh=OncctLtC0WG9TYB9DtiUZMXct7WKA1cJvDx28FzE+FI=; b=JcftX70d5pUZxz1KvWkQSKbkj46JYiNsqXHttZqtPyYjOp5J9V4UGo4R6mhu7PlSXf wmFip8U4ti1vRPKeoMha12n6tD2DwbwfGiPFPIxWRL9lRdK+R74rdTeKYZ3hdK1Vh6pS WF5JYhNfS6oTTn70Ut+HoKF8mc0FlnKg+saHU=
- List-archive: <http://groups.google.com/group/philly-lambda?hl=en_US>
- Mailing-list: list philly-lambda@googlegroups.com; contact philly-lambda+owners@googlegroups.com
- Reply-to: philly-lambda@googlegroups.com
- Sender: philly-lambda@googlegroups.com
- User-agent: G2/1.0
Found this on Reddit today. Don't read if you aren't ready to
cheat :)
http://www.solussd.com/2009/11/a-clojure-highlife/
On Feb 7, 11:48 pm, Aaron Feng <aaron.f...@gmail.com> wrote:
> Hi Sean,
>
> > 1. Is laziness breaking your call do take? Do you need to wrap it in
> > a doall?
>
> I don't think that's the problem, I tried doall. It didn't make any
> difference. The output seems to be different when I do
> (take 5 (iterate run board)) vs (run (run (run (run board))))
>
> > 2. After I slept on it, I came to prefer the agent approach to the
> > iterate. The iterate is good for prototyping, but the agent will be
> > better for production because of this exact list issue you're seeing.
>
> True, I'll eventually make an agent version too.
>
> Thanks,
>
> Aaron
|
|