develooper Front page | perl.fwp | Postings from December 2001

graphing the sexchart

Thread Next
Paul Makepeace
December 31, 2001 16:15
graphing the sexchart
Message ID:
[Wow, I must've deleted FWP from my folder list; so much mail here these
days. Paying attn now..]

So, the moderately infamous sexchart got some more media attn recently
which spurred thoughts of writing a parser for it. The sexchart, a
seriously impressive piece of ASCII art/documentation is at described in
Wired recently,,1284,48997,00.html

I couldn't figure out a Perl-ish way of parsing it, resorting to putting
it all in a big 2D array and scurrying around it. With lots of
consistency checking it takes about 5s to run on my 1.6GHz box (yikes).
Hashes & caches were used in some places but the core is basically
looking at each character in turn. Thought I'd throw it out and see if
anyone can think up another way...

I GraphViz'ed it too,

Some of those are quite big when they're rendered; start small if you
don't have oodles of RAM. *.png recommended for download size.

Happy new year,

Paul Makepeace .......................................

"If he were here now, then we truly are doomed."

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About