This is a language without imagination or elegance.
It's the perfect programming language to use drunk. It's so hard to do something truly stupid, but it's also so hard to do something truly beautiful. It's only fun when you're drunk.
I'd really appreciate it if somebody would show me I'm wrong about this. Otherwise... It's really boring.
Blake Hughes
What have you code with Fortran What is your compiler
Caleb Price
Quantum chemistry shit.
Gfortran.
Anthony King
I think you are just adding Fortran on your list of excuses to drink eg "My wife's son won his basketball game, better celebrate with a mickey's big mouth"
Grayson Martinez
desu I don't drink and program, but fortran is making me consider it.
Kevin Sanchez
so you work in the applied sciences? Where are you based?
Isaac Richardson
North America
Camden Brooks
>fortran >not just using matlab or scipy
Brandon Morgan
>are you a big fat person?
Jackson Reed
>a bunch of libraries for niche scientific calculations were written in fortran >nobody can be bothered to port over the barely readable code that was written back in the 70/80's >scientists that rely on those libraries are stuck with fortran
Colton Baker
You are now aware that scipy is mostly written in fortran.
James Ramirez
Modern Fortran (i.e. '03+) is pretty nice. If you're not a retard it's also fast and readable. It's main problem is the amount of shit legacy code.
Caleb Peterson
yes
Christian Rodriguez
I've been learning Fortran 77 for a while now and enjoy programming in it high, drunk, or sober, although learning it is really only bearable when I'm not sober once I'm just sitting down and programming I can do it sober
Matthew Garcia
Kek, enjoy your dog shit slow FORTRAN wrappers.
Leo Davis
This is why I come to Sup Forums 99% of people and posts are shit. But every once in a while someone pops in and suggest something that I haven't ried before. So I do and sometimes I like it, but the fact of having some external input is what makes me consider stuff I wouldn't even think of otherwise. BSD, APL, Haskell, Emacs, Gentoo, are some of those things I've tried thanks to these few people. >inb4 all the 12 year old and loser neckbeard start calling me names just because they feel like it
Gavin Wilson
I think the main problem I have with Fortran is having to declare variables at the top of functions instead of where they're used. Unnecessary scrolling.
Christopher Murphy
Here's another one for your list: Coq (with CoqIDE). There's a book called Software Foundations for when you're lost.
Dominic Campbell
>APL
Why do you enjoy torturing yourself
Andrew Smith
But if all that shit legacy code was clean, employers wouldn't pay as much for people that are willing/able to use it.
Christopher Myers
Your functions are too long friend :^)
Jaxon Baker
True. ;^)
Jackson Price
If you're gonna use Coq, you might as well use it together with Emacs and ProofGeneral.
Brody Bailey
That takes nonzero effort to install though. Especially so with Windows.
John Lewis
> nonzero effort Well let's not even bother then.
Nicholas Williams
The only valid reason to use Fortran is the legacy code of your old professor..
Isaac Hernandez
or you're doing anything related to math, science and HPC in general
Brandon Gomez
Beauty is where you find it.
I've seen beautiful brainfuck, elegant VB, horrible Rust, and illegible python.
Xavier Torres
>illegible python >illegible Redundant
Samuel Wilson
You've never had to dig into a giant existing system written in Haskell, have you? Python is incredibly legible compared to most of the production systems I work with.
Matthew Bennett
Is it good for first language ?
Cooper Cruz
Why not Matlab, Python, C or even Java?
I've done a STEM field and never seen Fortran apart from legacy code..
But hey, I think it's cool to do a non-mainstream langauge. Keep it up, mate!
Lincoln Gray
It's ok. You can get all the basics of loops and flow control and functions etc. It's very readable as well with no strange syntax. If you want to go into science/numerical programming it'll be worth it
Michael Harris
its special purpose is to be easy to use for math and science nerds. NASA still uses it (mainly due to the sheer arrogance of science nerds)
Luke Perry
Don't know anything about matlab or java, but python is slow (except libraries written in fortran/c). It has good intrinsic for arrays (unlike C) and you don't have to deal with pointers and memory management.
In other words of you need to do fast shit with arrays Fortran is good.
Lucas Rogers
because they're either slow as shit or otherwise going to be inefficient/less maintainable in some way when it comes to the kinds of big dataset problems you're typically working with in supercomputing and the like, you'll definitely see those kinds of solutions used for smaller problems though, nothing wrong with it
Bentley Taylor
Thinking about it you do have to allocate/deallocate large arrays (just like malloc/free). You still don't have to worry about pointers for passing arrays around etc. though.
Andrew Hall
But Java is not even so much slower than C anymore..
I don't know how long your calculations are, but I would rather wait one hour longer and have a good codebase.
Jack Foster
Does java still stop at random times to clean up its shit?
Jacob Hall
>good codebase There's no reason you couldn't have a good codebase in Fortran. They've even added some OO capabilities if that's your thing, though I've not looked into it.
Adrian Carter
Unless you count startup time, or your test case causes java to GC during the test. When you do, C is incredibly faster.
Brandon Stewart
Oh cool, I'll try it out during the week :)
Brandon Watson
...
Gabriel Allen
People who dont like Fortran usually have never programmed in Fortran and just assume that its an overly complicated mathematics language. Fortran has very simple, commonly used structures like loops and if statements like any other language, its syntax is very similar to Pascal, especially in the way that variables have to be declared in their own section. The reason its used so much in scientific programming is because it is the fastest language it the world. It is very safe, you dont have weird pointer errors or implicit casting, or memory allocation leaks like you do with C/C++. Its the perfect language for number crunching on supercomputers where you need the absolute fastest speed possible.