FORTRAN? Any reason to learn it?
I already know C/C++/Obj-C pretty well, is there any compelling reason to try to learn FORTRAN? Is it really better at mathematics than the aforementioned languages?
|
If you're specifically going to be involved in programming for large-scale scientific or mathematical computations, then yes.
http://www.moreisdifferent.com/2015/...l-use-fortran/ It's fairly niche however. If you're wanting to learn something purely for interest's sake, then why not try something like Julia or Go which are both "up and coming". I suppose the question has to be - for what purposes are you wanting to learn another language? |
probably you will find these interesting, although you can look for other pages too:
https://www.cfd-online.com/Forums/ma...c-fortran.html (more than 10 years long discussion) https://stackoverflow.com/questions/...-analysis-thes |
Quote:
It was the first programming language I learned, and still makes the most sense to me (most other languages have a crippled test for 'if'). Where it applies well, nothing else can compare to the performance it provides. If, however, you really have no need of that kind of power it is wasted time. The market for FORTRAN skills is small and very specialized and it is unlikely to enhance your career. If you are learning for fun or to enhance your mental skills it is one good option. If you are looking at general computing, perhaps not. |
I've translated from FORTRAN to C before, but never actually wrote it. I probably don't need it, but I just installed the Sun Compiler Workshop and it includes FORTRAN so II was just really musing.
Does its built-in support for matrices make SSE programming easier? |
I first learned FORTRAN in the seventies - even used it occasionally. Never used it since, certainly not in any commercially useful sense.
YMMV. |
Quote:
If you are going to work on programs which solve complex mathematics problems and you have to do all of the work from scratch then use C. C is just as good as FORTRAN for mathematics. C is far superior to FORTRAN for I/O, entering data, and printing reports. Trying to print a readable report in FORTRAN will drive you up the wall. ------------------- Steve Stites |
Quote:
CERN f'instance maybe. |
FORTRAN is still used heavily in the scientific and modeling communities. Large atmospheric models were written in FORTRAN decades ago and are still being used/modified today. If you plan to go to NCAR/UCAR or work with any of their models or similar models, it's a valuable skill to have. I know it, I use it pretty regularly, but I'm more of hardware person rather than software so I prefer to let other people do that kind of work. It's hard to find capable people though.
|
Quote:
|
I was just asking someone about this last week as they have lots of experience with both C and FORTRAN, among others. Their answer was that FORTRAN is faster than C even, when well writen.
In addition to the other areas, it is used in physics. |
No. The scientific community has largely moved to other languages such as Python.
|
https://docs.oracle.com/cd/E19205-01...vcv/index.html has many refs to SSE, fyi if that's the compiler you 'unearthed' :eek:
But +1 #12. Too bad your Solaris doesn't have APL :D R? |
Quote:
By the way, I wouldn't mind getting rid of the GO TO statements, but how the heck do you do that with staggered loops, like this? Code:
10 CONTINUE Quote:
|
Quote:
I think around that time Intel first came out with MMX which isn't that great. AltiVec on the PowerPC G4 came later and was much better. |
All times are GMT -5. The time now is 04:01 AM. |