home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.forth
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!venezia!penev
- From: penev@venezia (Penio Penev)
- Subject: Re: Documenting
- References: <C18CFv.GtA@starnine.com>
- Sender: nobody@ctr.columbia.edu
- Organization: Rockefeller University
- Date: Sat, 23 Jan 1993 11:54:26 GMT
- X-Newsreader: TIN [version 1.1 PL6]
- Message-ID: <1993Jan23.115426.24547@sol.ctr.columbia.edu>
- Reply-To: penev@venezia.rockefeller.edu
- X-Posted-From: venezia.rockefeller.edu
- NNTP-Posting-Host: sol.ctr.columbia.edu
- Lines: 64
-
- Mike Haas (mikeh@starnine.com) wrote:
- : In article <1993Jan14.122149.16814@Informatik.TU-Muenchen.DE> pazsan@Informatik.TU-Muenchen.DE (Bernd Paysan) writes:
- : >|> Usre of blocks in no way increases one's efficiency. In fact, it hinders it
- : >|> because you have to develop all your own print software, backup software,
- : >|> stuff that normal OS files live easy with.
- : >
- : >Per file backup should work. And to port print software you have already
- : >is an easy task.
- :
- : And write some that doesn't is less easy. And to write a 'diff' utility
- : for screens is even less easy. Sooner or later, you're going to get
- : to something that's hard!
- :
- : Seriously, even DOS provides this stuff for text files. Why have to
- : re-invent it at all? And when improved versions of DOS (or your text editor
- : or print spooler or ... ) appear, you will benefit by default.
-
- Well, DOS doesn't. It fails on the first inserted char. But this is
- not the point. I program in FORTH since 1985 and have never needed
- such a utility. Sure, if I have needed it, I should have written one.
- I wrote an (screen) editor, though. It was fun, easy and is the best
- editor I've ever used. And the most portable editor I've ever used too.
-
- :
- : >
- : >|> It's a helluva lot easyier to insert a new function in the middle of
- : >|> your program with files.
- : >
- : >bigFORTH:
- : >Alt I and a new screen is inserted at the actual position. Alt D and one
- : >is deleted. Even with long screen files it's fast on a HD.
- :
- : Text files:
- : Press RETURN and a new line is entered. You don't have waste 1023
- : characters to get that new line, either.
- :
- : BTW, this idea of "inserting" a screen may apply to BigForth, but
- : not in most of them. In fact, it's those Forths that use
- : screens-within-files that provide this capability. And it's the
- : fact that there's a FILE SYSTEM underneath that allows you to do this!
-
- Well, the file system has nothing to do with it. When You insert a
- screen You copy a block range one screen further. This You can do on
- any BLOCK system. And text editors do the same. I've never seen an OS
- function "isert bytes(blocks) at the file pointer". I know CPM, DOS &
- UNIX. I may be wrong for the rest OSes.
-
- :
- : Just go the next logical step and throw away the BLOCK layer. There's
- : no reason for it on file-based platforms, and it's continuance
- : hurts Forth.
- :
-
- Everybody may use whatever he wants, even BLOCKS. The questions is
- whether BLOCKS vs. text files matters for having a good production
- environment. I'm sure, that FORTH can be a good one with both. Perhaps
- the experience of the companies using FORTH should sumarised in a
- book to see the approaches. Surely all of the standard approaches will
- work. The question is what is best suited to the particular needs. And
- the answers is it depends on the needs. So no general solutions are
- good. Some may be just OK.
-
- -- Penio.
-
-