Langsold

The Old Guard #

Forth #

Forth is probably the most well known “stack-oriented” language. Skipping a lot of the details, this means that you list argument and then the operand. To add 1 + 2 you would write 1 2 +.

1
: hello   ." Hello World!" CR ;

There are other stack oriented languages, but today most of them are esolangs - If you want to actually try stack based programming with a modern, not intentionally convoluted syntax check out Factor.

Cobol #

1
2
3
4
5
6
000100  IDENTIFICATION DIVISION. 
000200  PROGRAM-ID. MFPROG1.     
000300  PROCEDURE DIVISION.      
000400  MAIN-PARA.               
000500      DISPLAY 'HELLO WORLD'
000600      STOP RUN.

From mainframebug.com

https://github.com/azac/cobol-on-wheelchair

Fortran #

1
2
3
4
program hello
  ! This is a comment line; it is ignored by the compiler
  print *, 'Hello, World!'
end program hello

Pascal #

1
2
3
4
program Hello;
begin
  writeln ('Hello, world.');
end.

BASIC #

1
2
10 PRINT "Hello World!"
20 GOTO 10

Objective C #

One of the less-ancient languages on this list, it’s dead because it was only really used for Apple dev (OS X, iOS), but has been replaced by Apple with Swift.

APL #


If you would like to support my development of OpGuides, please consider supporting me on GitHub Sponsors or dropping me some spare change on Venmo @vegadeftwing - every little bit helps ❤️