Velocity Reviews > Ruby > Need help finding a pithy corouting example

Need help finding a pithy corouting example

Dave Thomas
Guest
Posts: n/a

 11-09-2008
I'm looking for a concise but interesting example of corotuines to
illustrate symmetrical fibers for the 1.9 edition of the PickAxe.

Way back in the dim past, I remember a logic puzzle to do with laying
down a path of colored tiles such that there were no repeating
subsequences. I remember coding a solution using coroutines in Simula.
But I can't now find a formulation of the problem. Does anyone know
it? Or can anyone suggest an alternative illustration of coroutines
that will fit in about 20-30 lines.?

Thanks

Dave

bullockbefriending bard
Guest
Posts: n/a

 11-09-2008
On Nov 9, 10:19*pm, Dave Thomas <(E-Mail Removed)> wrote:
> I'm looking for a concise but interesting example of corotuines to *
> illustrate symmetrical fibers for the 1.9 edition of the PickAxe.
>
> Way back in the dim past, I remember a logic puzzle to do with laying *
> down a path of colored tiles such that there were no repeating *
> subsequences. I remember coding a solution using coroutines in Simula. *
> But I can't now find a formulation of the problem. Does anyone know *
> it? Or can anyone suggest an alternative illustration of coroutines *
> that will fit in about 20-30 lines.?
>
> Thanks
>
> Dave

Chapter 9 - Coroutines in Programming in Lua has a few examples.

Chapter 13.4 in Teach Yourself Scheme in Fixnum days has a tree-
matching example.

Both are available in online versions.

Dave Thomas
Guest
Posts: n/a

 11-09-2008

On Nov 9, 2008, at 10:27 AM, bullockbefriending bard wrote:

> Chapter 9 - Coroutines in Programming in Lua has a few examples.
>
> Chapter 13.4 in Teach Yourself Scheme in Fixnum days has a tree-
> matching example.
>
> Both are available in online versions.

I should have said: I saw those, but I was looking for something a
little more fun

 Thread Tools

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Roedy Green Java 23 08-23-2009 03:39 AM Piper Computer Support 4 01-01-2007 05:31 AM Robert Dodier Java 2 11-27-2006 07:24 PM ToddAndMargo@gbis.com Perl Misc 1 09-30-2006 11:34 AM Sam Roberts Ruby 15 02-07-2005 04:36 PM

Advertisments