Re: How "scalable" is forth?



GerryJ wrote:


casioculture@xxxxxxxxx wrote:


http://www.cs.caltech.edu/~mvanier/hacking/rants/scalable_computer_programming_languages.html

He doesn't mention forth. :-/

Perhaps it's just as well. If you consider the features that the author
thinks makes a scalable language he would have condemned it:

- garbage collection
- no pointers or pointer arithmetic
- a foreign function interface to the C language
- static type checking with type inference
- support for exception handling
- run-time error checking for errors that can't be caught at compile
time, like array bounds violations and division by zero
- support for assertions and design by contract
- a powerful, statically checked module system
- support for object-oriented programming
- support for functional programming
- structural macros
- support for components
- a simple, consistent and readable syntax

Of these surely ANS Forth only features exception handling (the last
feature could be arguable). Of course many of these can be added to
Forth but the author is talking about the defined language, not
extensions.

Quite a lot of that list could be achieved in Forth but, really, why would
anyone need to. The largest programming task I have ever seen was a
collection of small programmes that cooperated.

--
********************************************************************
Paul E. Bennett ....................<email://peb@xxxxxxxxxxxxxxxxxx>
Forth based HIDECS Consultancy .....<http://www.amleth.demon.co.uk/>
Mob: +44 (0)7811-639972
Tel: +44 (0)1235-811095
Going Forth Safely ..... EBA. www.electric-boat-association.org.uk..
********************************************************************
.



Relevant Pages

  • Re: Conformance
    ... better than C for certain types of programming, and C is better than C++ ... You think that C will lose because it has far less features than C++. ... currently a superior language. ... libraries, some of which were last updated decades ago. ...
    (comp.std.c)
  • Re: Learning C++?
    ... My ideal programming language would: ... No program that passes the compiler or interpreter should produce ... * Have built-in support for common data structures, like lists, tuples, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Thanks for all the help!
    ... group to present a less biased view of the new VB language. ... support for the product. ... I have been programming in the new VB.Net language for the last two years, ... Having said all of that, VB classic was a brilliant language, and will ...
    (microsoft.public.vb.general.discussion)
  • Re: C++ in embedded systems
    ... >>procedural language with support for OOP. ... >>functional and generic programming is poor and its support for ... C++'s support for generics is no more than a kludge - a compiler ...
    (comp.os.linux.embedded)
  • Re: [Lit.] Buffer overruns
    ... consider the relationship between the design of programming languages ... and the integrity of software implemented using them to be weak. ... absense from the language is of little, if any, consequence. ... And of course the most direct expression of your, at best, weak support ...
    (sci.crypt)