Heater
Posts: 9237
Joined: Tue Jul 17, 2012 3:02 pm

Re: Please help with Fortran IV

Fri Jun 03, 2016 7:52 pm

Awsome.

Tony Hoare came up with the idea of Communicating Sequential Processes (CSP). As used in the famous Occam language for the Transputer and today in XC for the XMOS micro-controllers.

And now even web developers using Javascript are getting the idea: https://github.com/ubolonton/js-csp

Oh and Quicksort.

I didn't know he was into Algol compilers.

User avatar
PeterO
Posts: 4165
Joined: Sun Jul 22, 2012 4:14 pm

Re: Please help with Fortran IV

Sat Jun 04, 2016 7:04 pm

I'm sure I read somewhere that he used Algol (with it's support for recursion) to express Quicksort. Machines form that era did not all have hardware stacks. Subroutine calls used a "link" location to store the return address which made recursive calls tricky.

I have the paper tapes for the 803 Algol compiler and have run it on both a real 803 and my emulation.

http://www.peteronion.org.uk/video/Algol1.mpeg Slightly shortened loading of compiler tapes 1 and 2
http://www.peteronion.org.uk/video/Algol2.mpeg Pass 1 and 2 of the compiler (reading and compiling) and running a short Algol program.

https://www.youtube.com/watch?v=B8P44GCse0s Algol compiler running on my 803 emulation connected to a real paper tape reader.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

jlnava
Posts: 3
Joined: Tue Jan 23, 2018 10:22 pm

Re: Please help with Fortran IV

Tue Jan 23, 2018 10:37 pm

Please Use at least Fortran 95, it is recomended you update to Fortran 2003 or 2008 for they has many new instructions and provide asynchronous input/output.

And of course you must "unlearn" ugly and misleading code prectices of Fortran 77 or before (IV, 66, II, etc.)

You´ll enjoy coding with the new fortran, much better than Python in crunch numbering, and it is c compatible.

And the compiler Gfortran is FREE

https://gcc.gnu.org/wiki/GFortran
https://gcc.gnu.org/wiki/Fortran2003Status
https://gcc.gnu.org/wiki/Fortran2008Status

jlnava
Posts: 3
Joined: Tue Jan 23, 2018 10:22 pm

Re: Please help with Fortran IV

Tue Jan 23, 2018 10:43 pm

Upss, I forgot:

youll need to instal this:

https://solarianprogrammer.com/2017/12/ ... -programs/

jlnava
Posts: 3
Joined: Tue Jan 23, 2018 10:22 pm

Re: Please help with Fortran IV

Tue Jan 23, 2018 10:44 pm

it says C++ but it has Gfortran too

jahboater
Posts: 2631
Joined: Wed Feb 04, 2015 6:38 pm

Re: Please help with Fortran IV

Wed Jan 24, 2018 12:01 am

jlnava wrote:
Tue Jan 23, 2018 10:37 pm
Please Use at least Fortran 95, it is recomended you update to Fortran 2003 or 2008 for they has many new instructions and provide asynchronous input/output.
Whats wrong with Fortran IV :)
Its the only version of Fortran I learned and used.

Fortran had three way comparisons, which at last, after all these years, is coming in C++20 (the spaceship operator).

W. H. Heydt
Posts: 8395
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Please help with Fortran IV

Wed Jan 24, 2018 4:18 am

jahboater wrote:
Wed Jan 24, 2018 12:01 am
jlnava wrote:
Tue Jan 23, 2018 10:37 pm
Please Use at least Fortran 95, it is recomended you update to Fortran 2003 or 2008 for they has many new instructions and provide asynchronous input/output.
Whats wrong with Fortran IV :)
Its the only version of Fortran I learned and used.

Fortran had three way comparisons, which at last, after all these years, is coming in C++20 (the spaceship operator).
Besides, FORTRAN IV *is* an upgrade. I learned FORTRAN II.

Return to “Off topic discussion”

Who is online

Users browsing this forum: No registered users and 9 guests