[plt-scheme] Racket solves wiring problems!

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Mar 15 14:33:20 EDT 2010

My first thought was "how many connections can there be? I have a
mildly complex stereo, but there's generally not that many choices in
it." and then I looked at the code and now my second thought is "how
do you get any work done?"  :)

(define-av Wii () (Component-Video RCA) ())
(define-av PS3 () (HDMI-Audio HDMI-Video) ())
(define-av Xbox360 () (HDMI-Audio HDMI-Video) ())
(define-av PS2 () (Component-Video RCA) ())
(define-av Saturn () (S-Video RCA) ())
(define-av Dreamcast:VGA () (DC:VGA) ())
(define-av Dreamcast:S-Video () (DC:S-Video) ())

Robby

On Mon, Mar 15, 2010 at 1:01 PM, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> I had a conundrum hooking up all my audio/video components together
> this weekend. Racket to the rescue!
>
> It's cute and short enough I thought I'd share. Run it and it tells
> you how to make the connections. You can modify the available
> components or the query and see different options.
>
> Jay
>
> --
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://teammccarthy.org/jay
>
> "The glory of God is Intelligence" - D&C 93
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>


Posted on the users mailing list.