Fortran ?!?
Fortran ?!?
While running simulations in Solidworks I encountered an error message that indicated Solidworks (or more likely the analysis solver used in Solidworks) is using Fortran.
Fortran? Didn't that language die several decades ago? Mostly yes, but maybe it shouldn't have.
In a former life, I was charged with writing a vehicle dynamics simulation program. The front end of this simulation was in excel, with the code being written in VBA. After a couple of years of development we hired an engineer with a couple of decades of experience as a vehicle dynamicist, as well as a much stronger programming background than I had. (I didn't claim to be great at either.) When Dave came on board, he took the solver portion of the code and turned it into Visual Fortran code, which was then complied into a DLL to be referenced from Excel.
All of the "real" programmers gave/give him a hard time for using an ancient language. None of them believed him when he told them that he had done back to back comparisons, and despite what Microsoft and the rest of the world says, compiled Fortran code runs faster than compiled C+/C++/C# code, at least for heavy mathematical computations. To this day, no programmer wants to believe that their fancy new Visual Studio tools aren't as good as what was written in the dark ages.
As the company evolved, we eventually hired a degreed, experienced software engineer. Perry worked for Dave, and Dave challenged him to come up with a C DLL that outperformed his Fortran DLL. As I recall, the best the C could do was about 75% of the speed of the Fortran code. Now Perry and Dave are the only 2 people I know who believe Fortran still has a case use in the modern world. (Perry still won't code in Fortran, but he knows the truth.)
Fortran? Didn't that language die several decades ago? Mostly yes, but maybe it shouldn't have.
In a former life, I was charged with writing a vehicle dynamics simulation program. The front end of this simulation was in excel, with the code being written in VBA. After a couple of years of development we hired an engineer with a couple of decades of experience as a vehicle dynamicist, as well as a much stronger programming background than I had. (I didn't claim to be great at either.) When Dave came on board, he took the solver portion of the code and turned it into Visual Fortran code, which was then complied into a DLL to be referenced from Excel.
All of the "real" programmers gave/give him a hard time for using an ancient language. None of them believed him when he told them that he had done back to back comparisons, and despite what Microsoft and the rest of the world says, compiled Fortran code runs faster than compiled C+/C++/C# code, at least for heavy mathematical computations. To this day, no programmer wants to believe that their fancy new Visual Studio tools aren't as good as what was written in the dark ages.
As the company evolved, we eventually hired a degreed, experienced software engineer. Perry worked for Dave, and Dave challenged him to come up with a C DLL that outperformed his Fortran DLL. As I recall, the best the C could do was about 75% of the speed of the Fortran code. Now Perry and Dave are the only 2 people I know who believe Fortran still has a case use in the modern world. (Perry still won't code in Fortran, but he knows the truth.)
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Re: Fortran ?!?
It is still used in commercial apps with heavy math. We use some DOE analysis tools, and they require installing the Intel Fortran redist. Apparently, it is super-efficient with large scale numerical arrays.
- Frederick_Law
- Posts: 1948
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1643
- x 1472
Re: Fortran ?!?
No, HELL NO! No F king Fortran!
It's worse then LISP.
It's worse then LISP.
Re: Fortran ?!?
Fortran is still one of the best languages for matrix operations. Dassault's high end FEA software Abaqus uses it as well. As does ANSYS, Nastran and probably most other FEA software.
Re: Fortran ?!?
His solver did a lot of multi-dimensional matrix translations, so it sounds like it was the perfect Fortran candidate.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Re: Fortran ?!?
I've not used it since Fortran 77, but apparently it went through a major "remodel" with Fortran 2003 to support modern coding standards and object-oriented programming. Its latest update is Fortran 2023 (minor update) with the last major update being Fortran 2018. Guessing it may have changed a bit since either of us last used it.Frederick_Law wrote: ↑Tue Aug 13, 2024 5:44 pm No, HELL NO! No F king Fortran!
It's worse then LISP.
- Frederick_Law
- Posts: 1948
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1643
- x 1472
Re: Fortran ?!?
{{Not}{If}{it}{still}{look}{like}{this}}
It does look better now.
It does look better now.
Re: Fortran ?!?
Frederick_Law wrote: ↑Wed Aug 14, 2024 12:11 pm {{Not}{If}{it}{still}{look}{like}{this}}
It does look better now.
Re: Fortran ?!?
I'm dating myself but I took the fortran programing class in college. Once you know the syntax it's not bad to program in. Back then it was used pretty much everywhere.
Re: Fortran ?!?
The last time I programmed in Fortran was 1989, when I was a co-op in college. I took a class or two in Pascal, and we also received ADA training at that job.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
- Frederick_Law
- Posts: 1948
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1643
- x 1472
Re: Fortran ?!?
https://hackaday.com/2024/08/16/a-moder ... -language/
Wow, that was fun to read.
Wow, that was fun to read.
Re: Fortran ?!?
Wow, I had no idea it was still around.. I had a FORTRAN class in high school. A terminal with a dial up MODEM, put the phone handset into an acoustic coupler.
Re: Fortran ?!?
We've come full circle:Frederick_Law wrote: ↑Fri Aug 16, 2024 10:46 am https://hackaday.com/2024/08/16/a-moder ... -language/
Wow, that was fun to read.
https://www.emojicode.org/
- Frederick_Law
- Posts: 1948
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1643
- x 1472
Re: Fortran ?!?
LOL!
My masters thesis was a 3 dimensional analysis routine based upon Green's theorem written in.....
Fortran
But this was in 1983
My masters thesis was a 3 dimensional analysis routine based upon Green's theorem written in.....
Fortran
But this was in 1983
chris