home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.misc:2751 comp.lang.logo:168 comp.lang.scheme:2067 comp.lang.forth:2988 comp.edu:1294
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!mikc
- From: mikc@hal.gnu.ai.mit.edu (Mike Coughlin)
- Newsgroups: comp.lang.misc,comp.lang.logo,comp.lang.scheme,comp.lang.forth,comp.edu
- Subject: Re: Small Language Wanted
- Message-ID: <1992Aug21.140111.24487@mintaka.lcs.mit.edu>
- Date: 21 Aug 92 14:01:11 GMT
- References: <41910@skye.dcs.ed.ac.uk>
- Sender: news@mintaka.lcs.mit.edu
- Organization: /etc/organization
- Lines: 44
-
- In article <41910@skye.dcs.ed.ac.uk> gvw@epcc.ed.ac.uk (Greg Wilson) writes:
- >[apologies if this is a re-post --- problems first time around]
- >
- >Hello. I am looking for a small language to use and modify for teaching
- >purposes. Features I want include:
- >
- >* small, simple implementation in C (at most one week for a senior
- > student with a C/Unix background to read and understand source).
- >
- >* very simple syntax --- preferably only a single syntactic form,
- > like Scheme, Logo, and Forth.
- >
- >* textual scoping of variables (which (sigh) rules out Logo itself)
- >
- >* logical, integer, floating-point, and string data types (I'm
- > happy to have single characters treated as 1-length strings)
- >
- Your goals are mutually exclusive. You ask for a simple language
- and then want to include many complicated features. There are versions
- of Forth available in the form of C programs. You can get a good one
- by ftp from prep.ai.mit.edu as part of the gnu collection. Look for
- the file called tile.2.1.tar.Z. Since it is written in C and does
- not exactly follow usual Forth practices, it is named a "threaded
- interpretive language" or TIL.
-
- > I regularly lambast physicists for using "old" languages like Fortran,
- > so I feel I should set a good example for students by using some
- > modern ideas myself)
- As a user of Fortran, I must protest the idea that Fortran is an
- old language. Since structured programming concepts were introduced
- into Fortran many years ago, there are no "modern" programming ideas
- that are need in Fortran to accomplish its purpose of scientific
- and mathematical computation. The mathematical notation used by
- physicists is an old language and they don't have much interest in
- changing it. So why should they want to switch from Fortran? Perhaps
- if other computing languages included things like exponential operations
- ( ** ), and complex number arithmetic there would be more reason to use
- something besides Fortran.
- The best new idea that physicists (and every other programmer) should
- use is extensive commenting so human beings can read source listings.
- That would be the greatest advance since digital computers were invented.
- Of course if you want a language that can be modified to include any
- new idea that you want to try, Forth is a very good choice. And I've
- heard that Lisp and Scheme are good for that too.
-