Monday, June 13, 2011

[xmxvvjgs] Obfuscated Lisp

Lisp seems "elegantly" the ideal language for obfuscated programming. (+ Scheme, etc.)

It has constructs such as "eval", a good macro language (in contrast to C), and first class functions.  There's never the need to declare the type of anything.  In other real languages, to obfuscate requires fighting its limitations, stretching a language to its limits.

Other languages may have special compact syntax for certain operations (Perl's regex, C's bit twiddling), and all of Lisp's parentheses do take up one character each, so Lisp's optimality may only be in a asymptotic (information theoretic?) sense.

More practically, it may be good for terse programming, though that's usually poor software engineering.

Tcl, designed with a similar mindset, may also work.

1 comment :

Axio said...

Some Lisp dialects have a "close all open parentheses that are open" super character.