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