home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / fortran / 4749 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uimrl7.mrl.uiuc.edu!ercolessi
  3. From: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
  4. Subject: Uglifier (was Re: Real Programmers)
  5. References: <1992Dec15.170343.10342@craycos.com> <DODD.92Dec15142737@mycenae.cchem.berkeley.edu> <gay.724466320@sfu.ca> <1992Dec16.025109.24541@coe.montana.edu>
  6. Message-ID: <BzC6n8.J2G@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Reply-To: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
  9. Organization: MRL - UIUC
  10. Date: Wed, 16 Dec 1992 05:16:19 GMT
  11. Keywords: n
  12. Lines: 27
  13.  
  14. In article <1992Dec16.025109.24541@coe.montana.edu>, uesu03@giac1.oscs.montana.edu (Lou Glassy)
  15. writes:
  16. |>[...] Last year, an instructor
  17. |>handed out a small numeric code that followed all of the qualities
  18. |>listed by {Doctor FORTRAN| James|Laurence|Ian}.  No unnecessary spaces
  19. |>or commas, all caps, 98.7% of variables were 2 or 3 characters in
  20. |>length, and a whopping 5 comments in about 1500 lines of source.
  21. |>Blecch!
  22.  
  23. Hmmm ...
  24. did any one ever made a source code uglifier, a filter removing
  25. all comments, renaming all variables as A1,A2,... (*),  removing all
  26. extra spaces, replacing character constants with Holleriths, etc?
  27. It could be a useful tool after all!  Sometimes you do not want to
  28. give away your sources, you would like to give only the binaries
  29. but that's impractical ... this would be a brilliant intermediate 
  30. solution, give uglified code!  :-)
  31.  
  32. Also, sounds like a good exercise for some CS course.
  33.  
  34.  
  35. [(*) HP 9830 BASIC anyone?]
  36. --
  37. Furio Ercolessi
  38. Materials Research Laboratory           |   Intl School for Advanced Studies
  39. Univ. of Illinois at Urbana-Champaign   |   Trieste, Italy
  40. furio@uiuc.edu                          |   furio@sissa.it
  41.