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

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!yktnews!prener
  3. From: prener@watson.ibm.com (Dan Prener)
  4. Subject: Re: Uglifier (was Re: Real Programmers)
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <PRENER.92Dec16021050@prener.watson.ibm.com>
  7. In-Reply-To: ercolessi@uimrl3.mrl.uiuc.edu's message of Wed, 16 Dec 1992 05:16:19 GMT
  8. Date: Wed, 16 Dec 1992 07:10:50 GMT
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. References: <1992Dec15.170343.10342@craycos.com>
  11.     <DODD.92Dec15142737@mycenae.cchem.berkeley.edu> <gay.724466320@sfu.ca>
  12.     <1992Dec16.025109.24541@coe.montana.edu> <BzC6n8.J2G@news.cso.uiuc.edu>
  13. Nntp-Posting-Host: prener.watson.ibm.com
  14. Organization: IBM T.J. Watson Research Center, Hawthorne, New York
  15. Lines: 38
  16.  
  17. In article <BzC6n8.J2G@news.cso.uiuc.edu> ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi) writes:
  18.  
  19. > In article <1992Dec16.025109.24541@coe.montana.edu>, uesu03@giac1.oscs.montana.edu (Lou Glassy)
  20. > writes:
  21. > |>[...] Last year, an instructor
  22. > |>handed out a small numeric code that followed all of the qualities
  23. > |>listed by {Doctor FORTRAN| James|Laurence|Ian}.  No unnecessary spaces
  24. > |>or commas, all caps, 98.7% of variables were 2 or 3 characters in
  25. > |>length, and a whopping 5 comments in about 1500 lines of source.
  26. > |>Blecch!
  27.  
  28. > Hmmm ...
  29. > did any one ever made a source code uglifier, a filter removing
  30. > all comments, renaming all variables as A1,A2,... (*),  removing all
  31. > extra spaces, replacing character constants with Holleriths, etc?
  32. > It could be a useful tool after all!  Sometimes you do not want to
  33. > give away your sources, you would like to give only the binaries
  34. > but that's impractical ... this would be a brilliant intermediate 
  35. > solution, give uglified code!  :-)
  36.  
  37. > Also, sounds like a good exercise for some CS course.
  38.  
  39. You shouldn't joke about such things.  Frequently, when one invents some
  40. absolutely preposterous scenario, one eventually finds that someone is
  41. actually doing it.
  42.  
  43. In this case, I refer you to various discussions that have taken place,
  44. over the years, about "shrouded C".  This was one of the approaches that
  45. was proposed in OSF's initial investigations into ANDF.  The idea was 
  46. to use the C language, transformed by exactly the sort of uglifier you
  47. suggest, as an architecture-neutral distribution format for software.
  48. The thought was that C is ubiquitous, and that "shrouding" (i.e.,
  49. uglifying) it would offer reasonable protection for proprietary
  50. software.
  51.  
  52. In my opinion, that would have been a wise choice.
  53. --
  54.                                    Dan Prener (prener@watson.ibm.com)
  55.