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

  1. Newsgroups: comp.lang.fortran
  2. From: julian@bjalon.demon.co.uk ("Julian Templeman")
  3. Path: sparky!uunet!pipex!demon!bjalon.demon.co.uk!julian
  4. Subject: Real Programmers) 
  5. Distribution: world
  6. References: <BzC6n8.J2G@news.cso.uiuc.edu>
  7. Organization: Baker Jardine
  8. Lines: 51
  9. Date: Wed, 16 Dec 1992 14:46:52 +0000
  10. Message-ID: <724517212snx@bjalon.demon.co.uk>
  11. Sender: usenet@demon.co.uk
  12.  
  13.  
  14. In article <BzC6n8.J2G@news.cso.uiuc.edu> ercolessi@uimrl3.mrl.uiuc.edu writes:
  15.  
  16. >
  17. >In article <1992Dec16.025109.24541@coe.montana.edu>,> uesu03@giac1.oscs.montana.edu (Lou Glassy)
  18. >writes:
  19. >|>[...] Last year, an instructor
  20. >|>handed out a small numeric code that followed all of the qualities
  21. >|>listed by {Doctor FORTRAN| James|Laurence|Ian}.  No unnecessary spaces
  22. >|>or commas, all caps, 98.7% of variables were 2 or 3 characters in
  23. >|>length, and a whopping 5 comments in about 1500 lines of source.
  24. >|>Blecch!
  25. >
  26. >Hmmm ...
  27. >did any one ever made a source code uglifier, a filter removing
  28. >all comments, renaming all variables as A1,A2,... (*),  removing all
  29. >extra spaces, replacing character constants with Holleriths, etc?
  30. >It could be a useful tool after all!  Sometimes you do not want to
  31. >give away your sources, you would like to give only the binaries
  32. >but that's impractical ... this would be a brilliant intermediate 
  33. >solution, give uglified code!  :-)
  34. >--
  35. >Furio Ercolessi
  36. >Materials Research Laboratory           |   Intl School for Advanced Studies
  37. >Univ. of Illinois at Urbana-Champaign   |   Trieste, Italy
  38. >furio@uiuc.edu                          |   furio@sissa.it
  39.  
  40. Don't laugh - a company I used to work for actually used this system. They
  41. had a program for 'camouflaging' the source of their Fluid Dynamics program, 
  42. which did all the things you suggested, and for much the same reasons. 
  43.  
  44. They supported the code on a *lot* of machines (when I was there in '86 or 
  45. '87, there were several dozen), and since we didn't have easy access to some
  46. of them (like Crays, and some of the Cyber supercomputers), the shrouded
  47. source used to get sent out instead. 
  48.  
  49. And *guess* who used to get sent out to get it running when problems arose?
  50. Ever tried debugging uglified code? I used to have a huge printout giving
  51. the mapping between real and fake variable names.....
  52.  
  53. I still remeber the time when the Chairman (in the US, read 'CEO')  met one 
  54. of his old university buddies at a conference, and told us to give him a 
  55. plain-text version. Turned out he was a consultant for a major competitor. 
  56. Ho-hum.
  57.  
  58. Ah, those were the days.
  59.  
  60. julian,
  61. who used to work
  62. for CHAM
  63. in london
  64.