Old programming languages

Started by
14 comments, last by GameDev.net 19 years, 4 months ago
I used c++ for years, and I thought it would be interesting to get to know some other (older) languages too, such as BASIC, COBOL, Fortran, or Pascal (I used pascal at school for some time but in a really basic way) I'd like to know your opinion. Do you think I can actually learn something useful exploring those languages? Are they still used? And, what compilers are currently available for the Win32 platform? Thanks!
Advertisement
fudge those oldies you mentioned...
give prolog or lisp a try
Some languages guaranteed to expand your mind:

Lisp (or Scheme)
Prolog
Objective Caml (ha, had to get that one in there ;))
Haskell
Clean
Smalltalk
Python
Ruby
Self
Forth
Eiffel
Erlang

These are toys, but if you go in depth into the theory of languages they are of interest:

Brainf**k
Whitespace

(If you want to learn BASIC, learn OCaml first and write an interpreter for BASIC, it'll be an interesting project :))

EDIT: forgot these

[Edited by - JuNC on November 26, 2004 2:59:25 PM]
Quote:Original post by Arcibald Wearlot
I used c++ for years, and I thought it would be interesting to get to know some other (older) languages too, such as BASIC,
COBOL, Fortran, Pascal (I used pascal at school for some time but in a really basic way)
I'd like to know your opinion. Do you think I can actually learn something useful exploring those languages?

There's no point learning BASIC. Everything that was good about BASIC (and that's not much) you can get from modern scripting languages like Python, Ruby or Perl.

For something that is derived from BASIC, but isn't actually anything like it, you have Visual Basic.

Standard COBOL is hediously verbose and lacks important features taken for granted in modern programming languages, such as dynamic memory management and recursion. There are 'modern' versions of COBOL which provide those features, but I still would not recommend using them.

Fortran was and in some people's opinions still is, preferable to C/C++ for heavy numeric work. However, it isn't the most beautiful of languages. I wouldn't recommend using it.

Pascal is just a bad version of C. I doubt you'd learn anything from it.
Quote:
Are they still used?

Yes. But not (usually) for new programs -- they are used because old programs are written in them, and still need to be maintained.

As dman1027 quite correctly observed, Lisp is the language you want. It's difficult to describe exactly how wonderful Lisp is. I highly recommend reading On Lisp, a classic of the genre, now available for free!

JuNC reminds me. Although I find it almost entirely useless, Haskell is still a great language. In addition, the way that Icon handles conditions and iteration is initially mindbending but ultimately elegant.
CoV
Also take a look at the Lisp dialect that is Scheme.

Read HTDP and get DrScheme
By the way when you say 'old', are you aware that Fortran goes back to 1954 and Lisp goes back to about 1955/56.

Lisp is of course the Hundred-Year Language
C/C++
Well, C and C++ are the best programming languages you can use for most of applications you can develop.

Pascal
Pascal/Delphi is my favourite programming language just because I know the language very good. I can easy make any program I want using Pascal. Unfortunately I'm not that good in C/C++...

Fortran
Even I have never wrote a program using Fortran, I know that is (was) very good for arithmetic calculations. Nowadays I thing C/C++ can do very good.

COBOL
Just for the record I write COBOL programs to make the living (!!!). You DON'T want to learn this language

BASIC/VB
It seems uselless to learn BASIC, C++ can do much more!

If you want something new try PROLOG or LISP.
Quote:Original post by JuNC
(If you want to learn BASIC, learn OCaml first and write an interpreter for BASIC, it'll be an interesting project :))


i dont know ocaml, but i wish if u (or anyone) could explain
why u picked ocaml for developing an interpreter
To gain some algorithmic thinking, try searching for something like
"Robot Karel" ... don't know, whether there is some english version, i know just about slovak and czech versions of this "interpreter"... it's not classical prg. language, but kind of Logo language, where you don't have variables and need to do whatever you can using recursion and simple conditions. But in it's simplicity it it's power and requires you to think, think and think about basic problems solved in unusual ways.

one of implementations of a friend of mine is here:
http://www.karel.sk/Karel%202010rc2.zip

i just am not really sure, whether it has slovak interface or english... if you want to try, or search google for "Robot Karel", there are many links regarding it...

Have fun :)
m.
Quote:
i dont know ocaml, but i wish if u (or anyone) could explain
why u picked ocaml for developing an interpreter


OCaml is virtually designed to be a compiler-implementation friendly language. It also compiles to extremely fast native code - occasionally rivalling C compilers - and has a good garbage collector (which makes it highly suitable for implementing interpreters).

You could of course use any language to do this, I just happen to particularly like OCaml as a practical and pragmatic functional (as in FP, not as in 'working' ;) language.

Quote:
Well, C and C++ are the best programming languages you can use for most of applications you can develop.


Bleugh. C is useful in kernels and being a LCD, C++ has virtually no redeeming qualities other than being a de-facto standard (and admittedly that is quite a big advantage!).

This topic is closed to new replies.

Advertisement