Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #15171
| From | "Rod Pemberton" <do_not_have@notemailnot.cmm> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: abstraction: do haskell and lisp beat forth in abstraction? or no? |
| Date | 2012-08-26 06:03 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <k1cs4h$2ig$1@speranza.aioe.org> (permalink) |
| References | <559c2d7a-4afc-4ac1-8329-88197001a474@googlegroups.com> <k147r9$3tk$1@dont-email.me> <43424b5a-0d2a-4bbb-a385-e06f4f287853@googlegroups.com> <d81d9a4b-10f6-45fb-b8cd-6e2af143c448@s2g2000vbj.googlegroups.com> |
"Mark Wills" <markrobertwills@yahoo.co.uk> wrote in message news:d81d9a4b-10f6-45fb-b8cd-6e2af143c448@s2g2000vbj.googlegroups.com... [...] > Forth is perfectly good at abstraction. With the right factoring it's > possible to produce code that reads almost like English. OMG! I can't believe you just said that. I'm feeling queasy now and think I'm going to be sick ... The reason I think I program well is because I'm nowhere near as good with English (or wasn't years ago...) as I am with a programming language. Programming languages aren't supposed to be just like English. There are too many ambiguities and complexities with English. > That's not possible with LISP or C which require parenthesis > and a myriad of other punctuation in order to guide the compiler. I can't say that's a benefit for LISP. LISP is known for too many of them. But, that's a benefit with C. There is a clear distinction in C between operators and keywords. In general (with a few exceptions), the operators are symbolic and perform some action: arithmetic, address-of, indirection, indexing, etc, while keywords are names of things: control-flow, variables, structures, procedures, etc. Early Forth introduced symbolic naming too: @ ! +! : ; + - etc. I think Forth doesn't have enough of it, personally. It's too "wordy" in the sense that it has many words instead of symbols. I never liked .LE. or .GT. etc for Fortran, and so don't like XOR and AND etc for Forth. > The real offenders were the early BASIC variants, with their terrible > line numbers! Yack. Thank goodness we've seen the last of those! (I've discussed much of this previously, but I don't recall if it was on c.l.f. It might've been c.l.m. or a.o.d. etc.) I think most of the advantage of line numbering at the time was because it allowed a simple line-oriented "text" editor to be used. But, I don't recall line numbers being as bad as you remember. Usually, there is a command (or utility) to renumber the program from a starting line number and an increment. But, as long as you left a spacing of 10 or 20 between line numbers originally, you rarely needed to renumber even after many more lines. The bad thing about languages that used line numbers had nothing to do with line numbers: GOTO. If someone programmed BASIC without knowing structured programming concepts, they ended up with "spaghetti" code - code which jumped all over the place. Yuck! A few years ago, I looked at a BASIC I once used to see what merit it had "today" (a few years ago). This BASIC was on the C64 which I think was an MS product (?). About the only thing of merit was the string concepts of right$, left$, mid$, and '+' for concatenation. That's still useful for a variety of languages today, except for a language like C which has more powerful equivalents (and no ability to use $ in a name...). I thought the old BASIC was sufficiently limited that it'd have to be thoroughly reworked for effective use in a modern environment. I.e., good for 8-bit, but not so good for 32-bits. E.g., functions limited to what fits on one line, or limitations of DIM and DATA, or need to use CHR$ or ASC. That said, I also programmed BASIC for one industrial machine. It was very effective in that situation. BASIC supplied the console input and output (keyboard & screen), ability to load and save files, interactivity of an interpreter, a line editor, and of course the language itself: variables, control-flow, arithmetic, etc. The machine's operations weren't controlled by BASIC. An escape character was used to send (or redirect) machine commands to the machine. So, a bunch of lines in the program would begin with the escape character. This piece of equipment was an old machine when I programmed it a decade ago, but I can see any type of modern CAM or CNC mill or plotter etc working well with the same concept. Wikipedia says the same basic concept is called "parametric programming" on it's CNC page. So, I'm not sure why someone added the words: "A more recent advancement in CNC ..." Rod Pemberton
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
abstraction: do haskell and lisp beat forth in abstraction? or no? gavino_himself <visploveslisp@gmail.com> - 2012-08-22 13:20 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Jason Damisch <jasondamisch@yahoo.com> - 2012-08-22 17:31 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Ron Aaron <rambamist@gmail.com> - 2012-08-23 06:25 +0300
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? jacko <jackokring@gmail.com> - 2012-08-24 08:41 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-08-25 03:46 -0400
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? jacko <jackokring@gmail.com> - 2012-08-25 10:03 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-08-25 04:51 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-08-26 06:03 -0400
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? John Passaniti <john.passaniti@gmail.com> - 2012-08-26 20:19 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-08-27 04:38 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? John Passaniti <john.passaniti@gmail.com> - 2012-08-27 12:37 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Unknown <dog@gmail.com> - 2012-08-29 18:53 +0000
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Jason Damisch <jasondamisch@yahoo.com> - 2012-08-29 12:30 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-08-29 14:37 -0500
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Unknown <dog@gmail.com> - 2012-08-29 18:53 +0000
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Unknown <dog@gmail.com> - 2012-09-08 22:14 +0000
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Bernd Paysan <bernd.paysan@gmx.de> - 2012-09-09 01:12 +0200
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Paul Rubin <no.email@nospam.invalid> - 2012-09-08 18:04 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? "Elizabeth D. Rather" <erather@forth.com> - 2012-09-09 15:01 -1000
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Paul Rubin <no.email@nospam.invalid> - 2012-09-09 18:57 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? "Elizabeth D. Rather" <erather@forth.com> - 2012-09-09 18:47 -1000
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-09-10 01:19 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Paul Rubin <no.email@nospam.invalid> - 2012-09-10 08:18 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-09-10 16:21 +0000
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? "Paul E. Bennett" <Paul_E.Bennett@topmail.co.uk> - 2012-09-10 18:41 +0100
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Bernd Paysan <bernd.paysan@gmx.de> - 2012-09-11 00:37 +0200
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? "Paul E. Bennett" <Paul_E.Bennett@topmail.co.uk> - 2012-09-11 19:07 +0100
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Mark Wills <forthfreak@gmail.com> - 2012-09-12 00:32 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Doug Hoffman <glidedog@gmail.com> - 2012-09-10 09:09 -0400
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-09-10 06:49 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-09-10 15:17 +0000
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-09-10 14:17 +0000
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Doug Hoffman <glidedog@gmail.com> - 2012-09-14 11:54 -0400
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? Paul Rubin <no.email@nospam.invalid> - 2012-09-15 02:11 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-09-18 12:11 +0000
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? gavino_himself <visploveslisp@gmail.com> - 2012-09-14 03:22 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? gavino_himself <visploveslisp@gmail.com> - 2012-08-30 20:13 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? gavino_himself <visploveslisp@gmail.com> - 2012-08-30 20:16 -0700
Re: abstraction: do haskell and lisp beat forth in abstraction? or no? "Elizabeth D. Rather" <erather@forth.com> - 2012-08-30 17:44 -1000
csiph-web