home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!friedman
- From: friedman@gnu.ai.mit.edu (Noah Friedman)
- Newsgroups: comp.unix.shell
- Subject: Re: Shell Scripts vs. C programs
- Message-ID: <FRIEDMAN.92Sep5050108@nutrimat.gnu.ai.mit.edu>
- Date: 5 Sep 92 09:01:08 GMT
- References: <121@steiny.com> <1992Sep1.173604.15563@u.washington.edu>
- <FRIEDMAN.92Sep2045423@nutrimat.gnu.ai.mit.edu>
- <1992Sep2.142212.29524@osf.org>
- Sender: news@ai.mit.edu
- Organization: Free Software Foundation, 675 Mass Ave. Cambridge, MA 02139
- Lines: 24
- In-reply-to: rsalz@osf.org's message of 2 Sep 92 14:22:12 GMT
-
- In article <1992Sep2.142212.29524@osf.org> rsalz@osf.org (Rich Salz) writes:
- >In <FRIEDMAN.92Sep2045423@nutrimat.gnu.ai.mit.edu> friedman@gnu.ai.mit.edu (Noah Friedman) writes:
- >>fork is expensive and it's not going to get better any time soon ...
- >> and exec is even worse
- >
- >I am totally dismayed and depressed by this attitude: "The OS isn't fast
- >enough so I will glom all the features I might ever need into my program."
- >Is it not totally obvious to you that this mindset is BROKEN!?
-
- It's not a matter of broken mindsets. It's the truth: there is no
- incentive for all the unix vendors out there to do anything about it. Most
- of them are just using the Evil One's code anyway. Besides, how would you
- go about making fork faster? Even with COW pages you have to go mark them
- all to get write faults. In a large process, going through all those pages
- still takes time. Exec is not particularly fast in *any* OS I've ever
- used, and my (admittedly limited so far) experience suggests it's a
- difficult problem.
-
- And, for the record, I don't think having a lot of functionality in one
- program is a bad thing, any more than I think interpreters in general are
- bad. A careful, modular and orthogonal design would make large programs
- perfectly reasonable. Perl is a bad example (and so is GNU Emacs). Yes,
- I'm aware of the problems of program size and complexity. No one said
- careful planning was easy either.
-