Fireship · @fireship
FORTRAN in 100 Seconds
Uploaded June 10, 2022 · Length 2:39
Summary
A brief history and introduction to the Fortran programming language, its evolution, and basic syntax.
- fortran
- programming language
- compiled language
- imperative programming
- history of programming
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Fortran a compiled imperative
- 0:02
programming language famous as the first
- 0:03
ever highle language designed for humans
- 0:06
it was developed in the 1950s at IBM by
- 0:08
John bakus a guy who is too lazy to
- 0:10
write assembly for the IBM 704 Mainframe
- 0:13
computer the haters said it would never
- 0:15
be as performant as hand-coded programs
- 0:17
but by 1957 formula translator became
- 0:20
the first computer language standard at
- 0:22
the time computers were extremely rare
- 0:24
but Fortran was a huge technical
- 0:25
breakthrough because For the First Time
- 0:27
Ever people outside the computer science
- 0:29
realm could use a computer most
- 0:31
importantly the language implemented the
- 0:33
first optimizing compiler which was able
- 0:35
to produce machine code just as fast as
- 0:37
anything coded by hand the language has
- 0:38
evolved into many different versions
- 0:40
over the years and is still in use today
- 0:42
primarily for heavy duty number
- 0:43
crunching and scientific Computing when
- 0:45
you're grandma wrote Fortran back in the
- 0:47
70s she didn't have access to fancy
- 0:49
tools like editors and Terminals and
- 0:51
instead wrote her code on a punch card
- 0:53
each card represents one line of code
- 0:54
and is kept neatly in a stack where it
- 0:56
can then be fed into a card reader to be
- 0:58
compiled the modern developer can get
- 1:00
started by installing the Fortran
- 1:01
compiler then create a file ending in f
- 1:04
or f95 to specify a certain version like
- 1:07
Fortran 95 use the program keyword to
- 1:09
give your app a name in older versions
- 1:11
keywords used all caps because the shift
- 1:13
key didn't exist on punch card machines
- 1:15
until the 1970s declare variables by
- 1:17
starting with a type followed by a name
- 1:19
and optionally a default value any
- 1:21
variable names that start with ik JK LMN
- 1:24
will automatically be considered
- 1:25
integers to disable this ancient feature
- 1:27
use the implicit nun directive at the
- 1:29
top use the character type to create a
- 1:31
string by declaring it with a fixed
- 1:33
maximum length now print that value to
- 1:35
the standard output using the executable
- 1:37
statement of Print Star in addition the
- 1:39
dimension keyword can be used to create
- 1:41
an array of numbers and multiple
- 1:43
Dimensions will create a matrix just be
- 1:44
careful not to allocate too much memory
- 1:46
because your Apple 2 only has 4 kiloby
- 1:48
of ram early versions of the language
- 1:50
didn't perform fine grain memory
- 1:52
management but modern versions support
- 1:54
pointers that can manually allocate and
- 1:56
deallocate memory but the real killer
- 1:58
feature of for tram when it came out in
- 1:59
the these is the ability to perform


