Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
selfgol [2020-10-22 14:34] – Working selfgol code from https://debconf2.debconf.org/talks/dconway/dconway-extreme-perl.tex 63.241.40.119selfgol [2020-10-22 15:13] (current) nik
Line 16: Line 16:
 SelfGOL was written to win all four categories in the Obfuscated Perl contest (3rd year, I believe, whose web pages are no longer available) and still comply with other restrictions of not using modules and being under 1000 bytes. Alas, the rules were drastically changed for the following year's contest, and so it was never entered. SelfGOL was written to win all four categories in the Obfuscated Perl contest (3rd year, I believe, whose web pages are no longer available) and still comply with other restrictions of not using modules and being under 1000 bytes. Alas, the rules were drastically changed for the following year's contest, and so it was never entered.
  
-the self-replicating code, used the standard [[quine]] code:+the self-replicating code is based on the standard [[quine]] in perl 
 + 
 +<code perl> 
 + @s=(  
 +    q[printf pop@s, @s],  
 +    q[@s=(q[%s],q[%s])x2;%s],  
 +  )x2;  
 +  printf pop @s, @s;  
 +</code
 + 
 +...expanded into this Obfuscation
  
 <code perl> <code perl>
Line 41: Line 51:
 </code> </code>
  
-or download -> [[/pub/Libarynth/SelfGOL/SelfGOL.tgz|SelfGOL.tgz]] 
  
----- +==== some (other) perl quines ====
- +
- +
-==== some perl quines ====+
  
 loosely related,.. from -> http://www.nyx.net/~gthompso/quine.htm loosely related,.. from -> http://www.nyx.net/~gthompso/quine.htm
Line 58: Line 64:
  
 Author: Brian Raiter Author: Brian Raiter
-<code>+<code perl>
 $_=q{$_=q{Q};s/Q/$_/;print};s/Q/$_/;print $_=q{$_=q{Q};s/Q/$_/;print};s/Q/$_/;print
 </code> </code>
  
 Author: V Vinay Author: V Vinay
-<code>+<code perl>
 $_=q(print"\$_=q($_);eval;");eval; $_=q(print"\$_=q($_);eval;");eval;
 </code> </code>
  • selfgol.txt
  • Last modified: 2020-10-22 15:13
  • by nik