Fedora Linux Support Community & Resources Center
  #1  
Old 15th March 2012, 03:59 PM
gastonv Offline
Registered User
 
Join Date: Nov 2006
Posts: 162
linuxfirefox
Algol 60

Hello,
I am working in Fedora 16 on a i686 computer.
I have a old book of Computer Mathematics and the programs are written in ALGOL 60.
Please where can I find a program so I can run ALGOL 60 programs?
Many thanks in advance,
Gaston Verhulst.
Reply With Quote
  #2  
Old 15th March 2012, 04:08 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,334
linuxfirefox
Re: Algol 60

That one is going to be hard to find since ALGOL is pretty much a dead language. (Last compiler I heard of was in the late 70's for the PDP-11 series) (Algol 60 is over 50 years old now)

Searching around, I did find an ALGOL 68 compiler for linux, though. But, ALGOL 68 had a lot of difference from ALGOL 60.

You can try it and see, though..

source code is located at:
http://www.nunan.myzen.co.uk/algol68...c_1.13.tar.bz2

Edit:

This one may be better for you. It is a ALGOL 60 to C translator.

http://www.gnu.org/software/marst/

Last edited by DBelton; 15th March 2012 at 04:28 PM.
Reply With Quote
  #3  
Old 15th March 2012, 05:48 PM
gastonv Offline
Registered User
 
Join Date: Nov 2006
Posts: 162
linuxfirefox
Re: Algol 60

Many thanks for your quick reply and your edit.
Indeed, the ALGOL 68 is different of the ALGOL 60.
So, I tried to install the ALGOL 60 software.
Code:
 [gastonv@gastonv marst-2.6]$ ls 
aclocal.m4   alglib2.o   config.guess   depcomp      ltmain.sh    marst
alglib1.alg  alglib3.c   config.log     doc          macvt        marst.c
alglib1.c    alglib3.lo  config.status  examples     macvt.c      marst.o
alglib1.lo   alglib3.o   config.sub     INSTALL      macvt.o      missing
alglib1.o    algol.h     configure      install-sh   Makefile     README
alglib2.c    AUTHORS     configure.ac   libalgol.la  Makefile.am  tests
alglib2.lo   ChangeLog   COPYING        libtool      Makefile.in
I have done a test with a installed hello.alg example program:
That gives at the end only one error:
Code:
 [gastonv@gastonv examples]$ marst hello.alg -o hello.c
[gastonv@gastonv examples]$ gcc hello.c -lalgol -lm -o hello 
[gastonv@gastonv examples]$ ./hello
./hello: error while loading shared libraries: libalgol.so.0: cannot open shared object file: No such file or directory
For that error I also can take contact with the autor.
When that error is fixed, then I have a useful program to play with it.
Greetings,
Reply With Quote
  #4  
Old 15th March 2012, 07:00 PM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,720
linuxfedorafirefox
Re: Algol 60

The example on page 6 of the marst documentation worked for me. When you did "make install" of the marst source code, it installs libalgol.so.0 by default in /usr/local/lib. So you need to have /usr/local/lib listed in a *.conf file (e.g. local.conf) under the /etc/ld.so.conf.d directory, then run ldconfig as root.
__________________
OS: Fedora 20 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 5GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote
  #5  
Old 15th March 2012, 07:21 PM
gastonv Offline
Registered User
 
Join Date: Nov 2006
Posts: 162
linuxfirefox
Re: Algol 60

Great!
Many thanks!
I could make a first test successfully:
Code:
 [gastonv@gastonv examples]$ ls
a232.alg   euler.c    gps      gps.c      manorboy.alg  tennent.alg
euler.alg  euler.txt  gps.alg  hello.alg  primes.alg
[gastonv@gastonv examples]$ marst hello.alg -o hello.c
[gastonv@gastonv examples]$ ls -l hello.c
-rw-rw-r--. 1 gastonv gastonv 2230 15 mrt 18:17 hello.c
[gastonv@gastonv examples]$ gcc hello.c -lalgol -lm -o hello 
[gastonv@gastonv examples]$ ./hello
Hello, world!
I have to thank you all for the splendid help!
Kind regards,
Gaston Verhulst.
Reply With Quote
  #6  
Old 3rd April 2012, 04:03 PM
Algol Linguist Offline
Registered User
 
Join Date: Apr 2012
Location: Australia
Posts: 3
windows_vistafirefox
Re: Algol 60

gastonv:

As was already mentioned, ALGOL is quite a dead language. I'm intrigued to know why you are learning this language, as I am trying to expand the modern day aspect at my ALGOL information page.
__________________
Algol - Grandfather of Computer Programming Languages
Reply With Quote
  #7  
Old 3rd April 2012, 04:43 PM
gastonv Offline
Registered User
 
Join Date: Nov 2006
Posts: 162
linuxfirefox
Re: Algol 60

Hello,
First of all, thanks that you are interesting in my question about Algol 60.
Programming and program languages has interest me since many years.
I bought the dutch pocketbook, with the name translated in English "Computer Mathematics", around 1970, because I was very interesting for it.
In that time, I did not have a computer, but I had a programmable Texas Instrument TI-57 and learned algorithms and writing my first programs on it.
But now, I was very happy that I could experiment with that language.
With the examples which were delivered with the program, I could write the examples from the book with some corrections and let run them.

I also can use the examples from that book and program them in another languages, like there are C or TclTk or Java or Python.
The reason is, because it still interests me and it gives me some fun.

Many greetings,
Gaston Verhulst.
Reply With Quote
  #8  
Old 3rd April 2012, 04:51 PM
Algol Linguist Offline
Registered User
 
Join Date: Apr 2012
Location: Australia
Posts: 3
windows_vistafirefox
Re: Algol 60

Gaston, that's an extraordinary length of time to maintain interest. Just like spoken languages, there tends to be a few people who keep them alive
__________________
Algol - Grandfather of Computer Programming Languages
Reply With Quote
  #9  
Old 3rd April 2012, 05:26 PM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,994
linuxfirefox
Re: Algol 60

Quote:
Originally Posted by DBelton View Post
That one is going to be hard to find since ALGOL is pretty much a dead language. (Last compiler I heard of was in the late 70's for the PDP-11 series) (Algol 60 is over 50 years old now)
Hmm - I used Algol on a Sperry Univac circa 1972, and on an IBM360 circa 1980. The Univac compiler was maintained until at least 1980 - the IBM compiler was stale a the time.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #10  
Old 3rd April 2012, 05:28 PM
gastonv Offline
Registered User
 
Join Date: Nov 2006
Posts: 162
linuxfirefox
Re: Algol 60

Algol Linguist, you are right. In 1970 I was 26 years old and now 67. In the years 80 I had an Atari 800XL Home Computer and on it I could write programs in Atari QBasic and C an to simulate it now I have Linux atari++ installed. Learning Linux also was a great thing to learn it and since a couple of years, I only work with Fedora. I already have read your interesting article concerning Algol. Thanks for the nice communication.
Reply With Quote
  #11  
Old 3rd April 2012, 10:18 PM
Algol Linguist Offline
Registered User
 
Join Date: Apr 2012
Location: Australia
Posts: 3
windows_vistafirefox
Re: Algol 60

stevea - all I can say is WOW. It would be amazing for people today to look over the shoulder of someone coding on ALGOL on such old machines. Every time someone uses library code, it has its deepest origins in the 70s and earlier.
__________________
Algol - Grandfather of Computer Programming Languages
Reply With Quote
  #12  
Old 3rd April 2012, 10:51 PM
RHamel Offline
Registered User
 
Join Date: Sep 2004
Location: Denver, Colorado
Posts: 560
linuxfirefox
Re: Algol 60

You know you could emulate an older computer with SIMH or HERCULES, and then download the ALGOL compiler from someplace like here.
Reply With Quote
  #13  
Old 4th April 2012, 08:28 AM
mikereid Offline
Registered User
 
Join Date: Aug 2011
Posts: 60
linuxfirefox
Re: Algol 60

This is an interesting thread. We used Algol on a Burroughs system in the late 70s and early 80s when I was a graduate student. I later wrote quite a lot of code in Pascal, which is unfortunately also rather dead. But I still have legacy code that runs fine. It would be nice if it was all translated into C, but it would run just the same, so I have never bothered... We also, of course, sometimes run Fortran 77 code, some of which has parts that were written in the early 60s.

Mike
Reply With Quote
  #14  
Old 4th April 2012, 09:21 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,994
linuxfirefox
Re: Algol 60

Quote:
Originally Posted by Algol Linguist View Post
stevea - all I can say is WOW. It would be amazing for people today to look over the shoulder of someone coding on ALGOL on such old machines. Every time someone uses library code, it has its deepest origins in the 70s and earlier.
Punched cards & 132 char line printers for I/O and batch jobs was a lot less "amazing" than you might imagine
A common laptop can beat the snot out of that IBM360. There are even 360/370 emulators out there that run near full speed on mediocre Pentium. Even the later IBM327x terminal worked like virtual card punches. Historically interesting, but not something we want to reconsider.

Algol was a really nice language for that era - like PL/I without all the frou-frou extras.

Perhaps the most interesting "dead language" from that era was APL. Brilliantly terse, poor flow control, write-only and encompassed a lot of mathematical concepts expressed as array operations & functors. The lazy evaluation and functors are fabulous ideas of APL that is now found in Haskell.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #15  
Old 20th May 2012, 07:05 PM
RHamel Offline
Registered User
 
Join Date: Sep 2004
Location: Denver, Colorado
Posts: 560
linuxfirefox
Re: Algol 60

Here's a picture of my system running an MVS 3.8J turnkey system on F16 under Hercules.
Attached Thumbnails
Click image for larger version

Name:	Screenshot at 2012-05-20 11:10:28.png
Views:	73
Size:	17.1 KB
ID:	23112   Click image for larger version

Name:	Screenshot at 2012-05-20 11:12:43.png
Views:	73
Size:	131.8 KB
ID:	23113   Click image for larger version

Name:	Screenshot at 2012-05-20 11:12:59.png
Views:	70
Size:	17.0 KB
ID:	23114  

Last edited by RHamel; 20th May 2012 at 07:08 PM.
Reply With Quote
Reply

Tags
algol

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Current GMT-time: 17:29 (Wednesday, 26-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Maramag Instagram Photos - Kharian - Gamboma