home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!yktnews!prener
- From: prener@watson.ibm.com (Dan Prener)
- Subject: Re: Uglifier (was Re: Real Programmers)
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <PRENER.92Dec16021050@prener.watson.ibm.com>
- In-Reply-To: ercolessi@uimrl3.mrl.uiuc.edu's message of Wed, 16 Dec 1992 05:16:19 GMT
- Date: Wed, 16 Dec 1992 07:10:50 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <1992Dec15.170343.10342@craycos.com>
- <DODD.92Dec15142737@mycenae.cchem.berkeley.edu> <gay.724466320@sfu.ca>
- <1992Dec16.025109.24541@coe.montana.edu> <BzC6n8.J2G@news.cso.uiuc.edu>
- Nntp-Posting-Host: prener.watson.ibm.com
- Organization: IBM T.J. Watson Research Center, Hawthorne, New York
- Lines: 38
-
- In article <BzC6n8.J2G@news.cso.uiuc.edu> ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi) writes:
-
- > 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.
-
- You shouldn't joke about such things. Frequently, when one invents some
- absolutely preposterous scenario, one eventually finds that someone is
- actually doing it.
-
- In this case, I refer you to various discussions that have taken place,
- over the years, about "shrouded C". This was one of the approaches that
- was proposed in OSF's initial investigations into ANDF. The idea was
- to use the C language, transformed by exactly the sort of uglifier you
- suggest, as an architecture-neutral distribution format for software.
- The thought was that C is ubiquitous, and that "shrouding" (i.e.,
- uglifying) it would offer reasonable protection for proprietary
- software.
-
- In my opinion, that would have been a wise choice.
- --
- Dan Prener (prener@watson.ibm.com)
-