#AdventOfCode in #FORTRAN 77.
Day 1 wasn't too bad ... all numbers, so no nasty string handling to worry about.
#AdventOfCode in #FORTRAN 77.
Day 1 wasn't too bad ... all numbers, so no nasty string handling to worry about.
@psychotimmy An experienced hand knows all the moves 😉
Fascinating seeing the number of #AdventOfCode posts saying how tricky it is to parse two columns of integers from a file in <insert trendy language here> when it only takes a read with a simple format(i6,bn,i6) statement in #Fortran.
(Not gloating too much as I know as soon as we get onto weirdly formatted and delimited variable length text files I'm going to struggle!)
@psychotimmy Maybe next year I try Advent of Code myself. A chance to learn some LISP or Scheme.
Today's puzzle input was annoying as although it was single space separated integers, Fortran77 expects them right justified (and they were left justified!) ... a leftover from punch card machines ;)
So I had to write a subroutine to read the input as character strings and then convert.
I did say that I wasn't going to gloat too quickly!!!
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.