[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] obfuscation



FWP folks -

I had lots of fun with Perl in the recently (finally) completed IOCCC
(obfuscated C coding contest).  From my description of the code:

     We all know that Perl and other VHLLs (very high level languages)
     are particularly well-suited for (among other things) string
     handling, I/O, and powerful built-in datatypes, and (relatively)
     poorly suited for number crunching and other processor-intensive
     tasks - areas where C is strongest.  This program takes this
     knowledge to its extreme conclusion, using each language for its
     strengths.  Thus, it uses Perl to read and parse input, for output,
     and for the easy-to-use list primitive, and uses C for mathematical
     operations.  Since the rules of this contest state that the program
     must be generated by an ANSI C compiler, of course, the outer Perl
     layer is wrapped with a thin layer of C.

     In case that wasn't clear, in a nutshell: this program is C, calling
     embedded Perl (contained in a C string), which in turn calls back to
     C, which performs math on Perl data types and calls Perl functions for
     error reporting.

Check it out, let me know what you think:

http://www.ioccc.org/years.html#2000_dlowe

: : : J. David Lowe :: dlowe@pootpoot.com :: http://pootpoot.com : : :
:     "Computers are useless.  They can only give you answers"       :
:                                        - Pablo Picasso             :
 :: fingerprint: 79 1D 66 9F 35 A1 2D ED   81 98 26 E1 F8 D5 3F 29 ::


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe