No love for FORTRAN?
Re: No love for FORTRAN?
When I worked at IBM my group wrote parallel scientific subroutines in FORTRAN for IBM's multi-processor systems. It is still used very extensively in HPC. Every new generation of supercomputer requires fine tuning of the core algorithms (BLAS, DEGEM, etc.), which are still in FORTRAN.
The shift toward neural network loads may finally displace FORTAN in several sub-areas of HPC. For years competitors like Julia nipped at its heels, but FORTRAN has endured.
The shift toward neural network loads may finally displace FORTAN in several sub-areas of HPC. For years competitors like Julia nipped at its heels, but FORTRAN has endured.
Re: No love for FORTRAN?
My first encounter with Fortran, I'm pretty sure, was A Fortran Coloring Book which I got on inter-library loan from the town library. I think there was some bemusement when I ordered it, but it turned up and it was great. I had no way to compile or run Fortran, but I could at least get an idea of what it was about! I think I might have heard of the book in Scientific American which I'd sometimes see a copy of.


Re: No love for FORTRAN?
So further to my earlier post, old, hazy (or horrid?) memories trickling in... In the late 80's/early 90's I worked for a UK supercomputer company - one thing we'd hear a lot was along the lines of: "I have this 30 year old FORTRAN program, make it go faster" ... So rather than them re-write it to utilise parallel processing/whatever, they just wanted us to make it faster - that's where the standard libraries shone - make sure they were using those libraries (e.g. linpack, etc.), then re-write them to fast on the new hardware then their ancient code magically went faster - well, that was one trick, anyway - the compilers were really key there.
The other thing - at uni, (1980+) I was exposed to Primos - something I'm not sure I'll recover from. early versions of Primos were written in FORTRAN. Imagine writing a multi-user OS today in FORTRAN...
-Gordon
The other thing - at uni, (1980+) I was exposed to Primos - something I'm not sure I'll recover from. early versions of Primos were written in FORTRAN. Imagine writing a multi-user OS today in FORTRAN...
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Re: No love for FORTRAN?
The Norsk Data operating system was SINTRAN-III and was written in NPL, but the first version (called SINTRAN-I retrospectively) was written in FORTRAN. The name is a combination of SINTEF and FORTRAN - the research institute that wrote the OS, and the language the OS was written in. The name was kept even if the implementation was new.
So it's been done, more than once (but SINTRAN-III was written in something entlrely different)
I just had a look through my old FORTRAN (and Fortran) programs from old times - there are a lot of various tools that I wrote in FORTRAN. Terminal emulation, an implementation of xmodem, remote transfer server tool, a tool to do DMA transfer to an imaging system, etc.
Very versatile language.
Quote:
Imagine writing a multi-user OS today in FORTRAN...
I just had a look through my old FORTRAN (and Fortran) programs from old times - there are a lot of various tools that I wrote in FORTRAN. Terminal emulation, an implementation of xmodem, remote transfer server tool, a tool to do DMA transfer to an imaging system, etc.
Very versatile language.
Re: No love for FORTRAN?
Wow. I didn't expect to see so many responses! I guess there is some love for FORTRAN after all. 
I have an old FORTRAN book I got for free at my local thrift store. With my love of all things "vintage electronics", it really seems like a great language to learn. Another one is Pascal. In fact, I think Pascal was more popular on 8 bit machines, yet, I see more FORTRAN ads in the vintage Byte magazines.
I have an old FORTRAN book I got for free at my local thrift store. With my love of all things "vintage electronics", it really seems like a great language to learn. Another one is Pascal. In fact, I think Pascal was more popular on 8 bit machines, yet, I see more FORTRAN ads in the vintage Byte magazines.
Cat; the other white meat.
Re: No love for FORTRAN?
Well, as mentioned by the comment above about Fortran on the PC.
As the PC encroached upon the engineering space (vs the business space, where I think early micros were much more popular), then demand for doing things in FORTAN simply to save time running on the expensive mainframes would be more important.
A PC running FORTRAN could be a great productivity booster for someone who relies upon centralized computing resources.
Not necessarily to actually run the applications, especially early one before the math co-processors became more and more widely available. But simply empowering development of the programs. Being able to edit, compile, and test your code on "PC" time before uploading it to the mainframe had to be just an incalculable benefit.
As the PC encroached upon the engineering space (vs the business space, where I think early micros were much more popular), then demand for doing things in FORTAN simply to save time running on the expensive mainframes would be more important.
A PC running FORTRAN could be a great productivity booster for someone who relies upon centralized computing resources.
Not necessarily to actually run the applications, especially early one before the math co-processors became more and more widely available. But simply empowering development of the programs. Being able to edit, compile, and test your code on "PC" time before uploading it to the mainframe had to be just an incalculable benefit.
Re: No love for FORTRAN?
On the subject of implied types, FORTRAN was specifically designed to code math equations for automated calculation. In math the usual variables used for indices are i, j, k, l, m, n and are assumed to be integers. Physicists and engineers, the biggest users of FORTRAN back when I was a physics student in university, didn't necessarily want to be nuanced computer scientists, they wanted to get their models in and running, so having the implied types for indices was never a bother at all. We used Cray FORTRAN (Cray X-MP) so it was a little different than FORTRAN-77 but only in its platform specific extensions. Those we were interested in as they allowed for optimizing speed.
Now, Pascal or Modula-II, they seemed to get the computer science folks all of a dither.
Now, Pascal or Modula-II, they seemed to get the computer science folks all of a dither.
Bill
Re: No love for FORTRAN?
whartung wrote:
A PC running FORTRAN could be a great productivity booster for someone who relies upon centralized computing resources.
Not necessarily to actually run the applications, especially early one before the math co-processors became more and more widely available. But simply empowering development of the programs. Being able to edit, compile, and test your code on "PC" time before uploading it to the mainframe had to be just an incalculable benefit.
Not necessarily to actually run the applications, especially early one before the math co-processors became more and more widely available. But simply empowering development of the programs. Being able to edit, compile, and test your code on "PC" time before uploading it to the mainframe had to be just an incalculable benefit.
During my uni time, I had a summer job in a local hospital (mostly re-writing a FORTRAN program into Apple/ucsd Pascal!), and in the department I was based, they had some big ICL thing to do blood reports on - and a traditional hierarchy with the senior analyst programmer and the programmers and operators - which I found mildly amusing, but not alien due to the uni experience - one task I had was to update a program written 20 years ago on an Elliot 903 which I took to readily - which none of these others would touch. It was a funny old time.
So you can see why at that time, the "personal" desktop was a boon to scientists and engineers - even if it were relatively slow - the ability to get results quicker, interactively was great. I don't think the university I went to recovered from our generation of new students then.
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Re: No love for FORTRAN?
Ah, yes.. I had almost forgotten. As soon as people started to get computers at home there was a rush to prepare programs when at home, with some variant of (typically) Pascal or Fortran, and only after that would they bring the code to work/uni and massage it into its final form. That reason alone was more than enough for people to want Fortran compilers on their PCs. Wouldn't matter that much if it was slow. And soon enough it was good enough to do the actual job too.
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: No love for FORTRAN?
That was my first experience with computers too. It was with Fortran IV at school, and you'd write your program by hand, take it to the computer lab and sit down to the punch-card machines, punch, stack, rubber-band, put the stack in a cubby with the account number, and come back a couple of hours later in hopes the operator had run your program, only to find a long printout with all the reasons it wouldn't run
. I got myself a programmable calculator, and although it couldn't do such huge programs, it could do ones at least as long as the stuff we did for class, and with maybe a few seconds' wait, rather than hours, and the printer paper was only 2.5" wide.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: No love for FORTRAN?
Yeah, I remember the cards. At first ours were pencil marked and we'd have to send them off to and outside place to have them run. No idea what kind of system they ran on. 3 days response time - minimum. Needless to say editing was a painful process. That was in high school - early 70's. We used BASIC back then.
The good ol' days.
The good ol' days.
Bill
Re: No love for FORTRAN?
I would like to write programs in Fortran77 for my 6502 SBC with 32k RAM and 16K EEPROM (design by Grant Searle).
Small programs I write in 6502 assembly but I am unhappy that I can not easily save X or Y on the stack and can not access any function parameter on the stack with stack relative addressing. (I don't use the 65C02 or the 65816.)
A friend of mine is using the Elektor Junior with 32KB DRAM expansion + keyboard + video card and we write some software together.
In my opinion Fortran77 would be a good match for the 6502, better than C or Pascal because they are using a stack.
Does anyone know a Fortran77 compiler for 6502? I would prefer cross compiling on Windows, if possible - because my SBC does not have a floppy drive, hard disk or SD card.
I consider Fortran90 too modern and Fortran66 too ancient for me on the 6502.
Small programs I write in 6502 assembly but I am unhappy that I can not easily save X or Y on the stack and can not access any function parameter on the stack with stack relative addressing. (I don't use the 65C02 or the 65816.)
A friend of mine is using the Elektor Junior with 32KB DRAM expansion + keyboard + video card and we write some software together.
In my opinion Fortran77 would be a good match for the 6502, better than C or Pascal because they are using a stack.
Does anyone know a Fortran77 compiler for 6502? I would prefer cross compiling on Windows, if possible - because my SBC does not have a floppy drive, hard disk or SD card.
I consider Fortran90 too modern and Fortran66 too ancient for me on the 6502.
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: No love for FORTRAN?
Hermes wrote:
Small programs I write in 6502 assembly but I am unhappy that I can not easily save X or Y on the stack and can not access any function parameter on the stack with stack relative addressing. (I don't use the 65C02 or the 65816.)
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
- BigDumbDinosaur
- Posts: 9426
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: No love for FORTRAN?
Hermes wrote:
(I don't use the 65C02 or the 65816.)
Why not use the 65C02? There is nothing about 65C02 hardware that prevents it from being retrofitted to a unit running an NMOS 6502.
Some limitations of the NMOS 6502 got addressed in the 65C02, especially with being able to push and pull the index registers. Plus some new addressing modes are available that can streamline code and often make it run faster. Not to be overlooked is that errata, such as JMP ($xxFF), was fixed. While the 65C02 doesn’t have any stack-relative addressing modes (you’d need the 65C816 for such features), Garth’s stack articles can be quite helpful in that regard.
Last edited by BigDumbDinosaur on Tue Apr 23, 2024 5:48 am, edited 1 time in total.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: No love for FORTRAN?
BigDumbDinosaur wrote:
Why not use the 65C02? There is nothing about 65C02 hardware that prevents it from being retrofitted to a unit running an NMOS 6502.
Neil