jump to navigation

The Program Prayer February 9, 2011

Posted by mareserinitatis in computers.
Tags: , ,
trackback

A few of you know that I’m having to relearn Fortran.  It was the first college class I took (while still in high school), and the version I’m learning now is considerably newer.

As I’m going through this, I’m remembering why I like Matlab.  The one thing that bothers me about Fortran is that it will deal with integers and reals in different ways, and that can be problematic if you have a mixed-type operation.  My main irritation with Matlab is that I will use i as a counter and later try to use it as an imaginary value.  (Of course, I always forget I can use j because that’s just not proper…I still have difficulties adjusting to that usage in certain contexts.)

I’ll bet I’m not the only one who gets annoyed at various language quirks.

Anyway, while digging through some files, I came across something from the same time period I took Fortran.  In fact, the printing on the paper is from a dot-matrix printer. If there is one thing I am thankful for, it is that technology has created quieter printers.

The Program Prayer

Our program, which art in memory,
“Hello” be thy name.
Thy operating system come,
Thy commands be done,
On the printer as it is on the screen.
Give us this day, our daily data,
And forgive us our I/O errors
As we forgive those whose logic circuits are faulty.
Lead us not into frustration,
But deliver us from power surges,
For thine is the algorithm, the application, and the solution,
Looping forever and ever.
Return.

Advertisements

Comments»

1. Massimo - February 10, 2011

OMG…. you are not programming in fortran 77 are you… please say it ain’t so… it is now 13 years since I last wrote a line of fortran, and boy, isn’t life good.

Like

mareserinitatis - February 10, 2011

Heavens, no. Fortran77 was what I learned back in ’92. The book I have is for Fortran90, but I’m guessing the code is for 95. Not sure. When I asked, I was told the intel version, and I’m not sure if 90 runs on multiple cores or not.

Blech.

So what do you code in now?

Like

2. Luke Holzmann - February 10, 2011

[laughing] That is fantastic!

~Luke

Like

3. Massimo - February 10, 2011

C++ has been my programming language for the past 13 years. It was 1998, I visited UC Irvine and a smart fellow by the name Steven White convinced me to give it a try. I reluctantly agreed, mostly because I felt that C++ was more in demand in industry, and therefore getting students to learn it would be a good idea. I never looked back, I am convinced that it makes for much better, smarter, more structured and flexible programming.
No,w, I am told that F95 approaches C++ closely, but I don’t think its objects are as powerful.

Like


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: