News for hackers. Stuff that matters.
Re:Writing code with MS Paint by RodgerTheGreat on Wednesday April 06, 2011 @09:34AM (#2415007)
In Java, source files can contain unicode escapes[1] of the form '\uXXXX' which are expanded prior to tokenization. In effect this gives you several options for what characters can exist in a given "pixel". I think that this, combined with careful application of whitespace and comments, should easily provide enough flexibility to make arbitrary code look roughly like a desired bitmap.

[1] http://java.sun.com/docs/books/jls/second_edition/html/lexic...

Re:Writing code with MS Paint by JoachimSchipper on Wednesday April 06, 2011 @09:48AM (#2415050)
Just \uXXXX (or C trigraphs etc) doesn't give you much to play with, and I'd say that selectively tokenizing Java is cheating.