[ / / / / / / / / / / / / / ] [ dir / ashleyj / canada / kennedi / senran / srz / startrek / traffick ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): f55691ca3af3450⋯.jpg (61.28 KB, 530x750, 53:75, yuraofthehair.jpg) (h) (u)

[–]

 No.796940>>796950 >>796961 >>797104 >>797551 >>797752 [Watch Thread][Show All Posts]

Why are you not coding in Fortran, /tech/?

Straight From Wikipedia:

>Fortran (formerly FORTRAN, derived from "Formula Translation") is a general-purpose, imperative programming language that is especially suited to numeric computation and scientific computing. Originally developed by IBM in the 1950s for scientific and engineering applications, Fortran came to dominate this area of programming early on and has been in continuous use for over half a century in computationally intensive areas such as numerical weather prediction, finite element analysis, computational fluid dynamics, computational physics, crystallography and computational chemistry. It is a popular language for high-performance computing and is used for programs that benchmark and rank the world's fastest supercomputers.

I'm not going to blow smoke up your ass, and tell you it's perfect, but when it comes to number crunching, Fortran is the man.

>But anon, I use scipy and numpy when I need to crunch numbers. They are really useful and work well.

<Those are just Fortran and C kernels wrapped up in slow ass python.

Numpy arrays are just Fortran coarrays. If you had just written your program in Fortran, you'd be cutting out the middle man, and your code would be much much faster. Fortran is close to the machine, similar to C, only C is made for systems programming, while Fortran was made for math dince day one.

Speaking of day one, Fortran was the first high level compiled language. It was created by John Backus, the guy that created SpeedCode, the first high level language. It was interpreted, and a lot slower than assembly, but it was much much easier to program in.

>But anon, why don't I just use MATlab or GNU Octave?

<That's a step up from python, but those are just interpreted imitations of Fortran. Besides, Octave is buggy. It crashes harder than 9/11, and MATlab is proprietary.

Octave is a superset of MATlab, and MATlab is just a proprietary scripting language based on Fortran and APL. They are an improvement over python, but they aren't great. Besides, unless you're using an ancient Fortran standard, fortran can do everything APL does.

The most important reason to use Fortran, is that it gives the caps lock key a purpose. :^)

In Fortran, GOD is REAL

>pic somehow related

I did a bing image search(don't judge me. It's best for images) for "sexy fortran." R34 edit of pic related was in the top row of results.

 No.796945>>797751

RMS doesn't like it and neither do I.


 No.796946

Which version are we supposed to look at? It looks like there's a lot of different implementations.

Also which compiler?


 No.796950

>>796940 (OP)

<bing

<It's best for images

>implying anything is better than the G


 No.796958

Ah, a quality thread, as I love them.

Yes, OP, I agree that Fortran is a superior language, however, to truly see the light, you need to stick to Fortran 77, which enforces good coding practices by design. Any posterior Fortran standard is bloated shit.


 No.796961

>>796940 (OP)

well, why aren't you????????

fuck off larper

saged & reported


 No.796996

What if I do?


 No.797103>>797115

C and C++ are infinitely more usable, have exponentially larger documentation, and have almost no performance difference compared to Fortran.


 No.797104

>>796940 (OP)

>Why are you not coding in Fortran, /tech/?

Show me how many lines of fortran it takes to implement the Unicode collation algorithm


 No.797115>>797298

>>797103

>have exponentially larger documentation

They need more documentation because the C standards have as many problems as C programs.


 No.797141

Because i'm not a senile old person


 No.797298>>797310

>>797115

This is not enough for you?


 No.797310

File (hide): 30b13ab74715f5a⋯.png (4.47 KB, 200x75, 8:3, ClipboardImage.png) (h) (u)

>>797298

>GNU

>not [attached image]


 No.797551>>797765

>>796940 (OP)

Matlab is fantastic if you want to write some code very quickly. This is important if you're doing research and are moving from one idea to another rapidly and don't know what you'll be doing in a couple of months time. The ability to implement GMRES or solve a matrix system in a single line of code is fantastic.

The only catch with matlab is that it can only use one cpu at a time so you cannot parallelize loops. Outside of that it's a perfect language for mathematicians.

t. Mathematician


 No.797751

>>796945

Are you being sarcastic?


 No.797752>>797759

>>796940 (OP)

>Why are you not coding in Fortran, /tech/?

I value my time. If it needs to run I use Python 3, if it needs to run fast I use C.


 No.797759>>800111

>>797752

>if I care about speed I use C

<Fortran is faster than C and it's also higher level

>b-but if I don't care about speed I use a Lisp dialect

No wonder there's so much slow, buggy, exploitable software.


 No.797761

FORTRAN is too slow to write

it has a useability problem

we have an attention span problem

it does not work in this day and age, the needs of today require complex software that needs reconfiguration within minutes

there could still be useful areas for FORTRAN, but it wouldn't have magick C prestige behind it, so don't expect the next privacy-focused group text messager or gecko fork to be written in FORTRAN


 No.797765

>>797551

Even R has (very shitty) support for parallel code. Surely Matlab must have something similar.


 No.797816

I am too busy learning another language I won't ever use: Smalltalk.


 No.797819

because there's nothing I need to use it for.

C is capable of everything I need a programming language for.


 No.797860>>800035

because I code in julia


 No.800033

While Fortran is a fun language to toy around with, how would one even make ot useful beyond data crunching and science shit? As far as I know, there is no group around figuring that out like there is for QB64/QBasic.


 No.800035


 No.800043

but I am. I am an engineering student and fortran is the first programming language I am learning seriously.

For that matter, I am also learning vim. How do I hook up vim to gfortran (compiler). Anyone know?


 No.800111

>>797759

I never said C was faster than Fortran, I said I prefer C to Fortran when performance is required. I find C faster to write and easier to maintain. If you really wanted to nitpick about performance you'd write code with a performance requirement in raw opcodes.

Python is not a LISP dialect you fool. Its so far from a LISP dialect that its BDFL actively sabotages functional programming features.


 No.801105

Another Reason why Fortran is Superior

https://stackoverflow.com/a/6453476/




[Return][Go to top][Catalog][Screencap][Nerve Center][Update] ( Scroll to new posts) ( Auto) 5
26 replies | 2 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / ashleyj / canada / kennedi / senran / srz / startrek / traffick ][ watchlist ]