DeSitter wrote:
>
> I thought about other ways to use color in code. It would be interesting
> to color-code a program with a profiler - instant visual evidence of
> bottlenecks.

The Functional Developer IDE for Dylan does that. The profiler colors the
source code based on where dynamic dispatch is happening. (Dylan is an OO
language, and to get better performance the compiler tries to prove where
full dynamic dispatch is unneccessary, so it can replace it with a simple
function call or even inline it completely.)

It's really neat -- in Dylan type declarations are optional (if they are
not present the language is dynamically-typed) and as you add and remove
them the color of the source changes.