home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / fortran / 4770 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.7 KB

  1. Path: sparky!uunet!olivea!charnel!rat!usc!sdd.hp.com!saimiri.primate.wisc.edu!copper!aspen.craycos.com!jrbd
  2. From: jrbd@craycos.com (James Davies)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Uglifier (was Re: Real Programmers)
  5. Keywords: n
  6. Message-ID: <1992Dec16.164347.21210@craycos.com>
  7. Date: 16 Dec 92 16:43:47 GMT
  8. References: <gay.724466320@sfu.ca> <1992Dec16.025109.24541@coe.montana.edu> <BzC6n8.J2G@news.cso.uiuc.edu>
  9. Organization: Cray Computer Corporation
  10. Lines: 23
  11.  
  12. In article <BzC6n8.J2G@news.cso.uiuc.edu> ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi) writes:
  13. >
  14. >Hmmm ...
  15. >did any one ever made a source code uglifier, a filter removing
  16. >all comments, renaming all variables as A1,A2,... (*),  removing all
  17. >extra spaces, replacing character constants with Holleriths, etc?
  18. >It could be a useful tool after all!  Sometimes you do not want to
  19. >give away your sources, you would like to give only the binaries
  20. >but that's impractical ... this would be a brilliant intermediate 
  21. >solution, give uglified code!  :-)
  22.  
  23. I once modified a prettyprinter I wrote to uglify instead (although I
  24. didn't go so far as to rename variables).  Just removing the comments,
  25. randomly indenting, and randomly inserting spaces and continuation-line
  26. breaks has a remarkable negative effect on readability.  Unfortunately,
  27. all of the things my obfuscator did (except for the comment removal)
  28. were reversible by using the prettyprinter.
  29.  
  30. I've also used a simple C uglifier extensively for sending out proprietary 
  31. source code in the past few years.  (I haven't yet seen any of it posted on 
  32. the net, so it must be working. :-)  Of the two languages, obfuscated C
  33. has a stronger resemblance to transmission-line noise than obfuscated Fortran,
  34. probably because of all the curly braces...
  35.