Some code I wrote while working on the 'save endo' problem from the ICFP 2007 contest
Haskell C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dna
.gitignore
FastString.hs
FastString2.hs
FastString3.hs
FastStringBench.hs
FastStringTest.hs
FastStringVisualise.hs
GInstr.hs
Makefile
README
Setup.lhs
dna2rna.hs
draw.c
icfp2007-ejt.cabal
journal.org
list.c
list.h
raw2png
rna2gbc.hs

README

Here's the code I wrote whilst trying to save Endo.  Alas I didn't.
Poor Endo.

It's a bit complicated to use:

* build dna2rna

   cabal configure
   cabal build

* run specifying a prefix on the command line

   ./dist/build/dna2rna/dna2rna "" < dna/endo.dna  > out.rna

* build rna2gbc (gbc = graphics bytecode)

   make rna2gbc

* run rna2gbc

   ./rna2gbc +RTS -K100M < out.rna > out.gbc

* build draw

   make draw

* run draw, this will produce out.raw (hard coded)

   ./draw out.gbc

* Use image magic to convert to something you can actually view

  ./raw2png out.raw

This produces out.raw.png, finally something you can view.