[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::languages

Title:Languages
Notice:Speaking In Tongues
Moderator:TLE::TOKLAS::FELDMAN
Created:Sat Jan 25 1986
Last Modified:Wed May 21 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:394
Total number of notes:2683

124.0. "battle of the self-modifiers" by CSSAUS::MOSS (cogito cogito ergo cogito sum.) Wed Jan 21 1987 07:41

    It has been suggested in the WAR STORIES notesfile that we hold
    a similar contest to note 99 - the battle of the languages,
    only with the goal being to provide the "cleverest" piece of
    self-modifying code. This (probably) counts out lots of pascal,
    ada, etc etc programmers, but those of you who use teco, cobol,
    fortran, list, prolog etc... (and macro of course) should have
    examples of how (NOT) to program.
    
    Append all those 'clever' tricks you've longed to show off for years...
    
T.RTitleUserPersonal
Name
DateLines
124.1More than an editor, an adventure!WAAF::APPELLOFCarl J. AppellofWed Jan 21 1987 09:0112
    AH! You mentioned my favorite programming language: TECO.  TPU doesn't
    even come close in its possibilities for cleverness.  I hereby
    contribute the following TECO macro from the MATH notes file with
    credit to Stan Rabinowitz.
    
+0unqn"e20un'buhbuvhkqn<jbuqqn*10/3uiqi<\+2*10+(qq*qi)uablkqi*2-1ujqa/qjuq 
qa-(qq*qj)-2\10i
-1%i>qq/10utqh+qt+48uwqw-58"e48uw%v'qv"nqv^t'qwuvqq-(qt*10)uh>