FLOG

The Fortran webLOGger.

Welcome to FLOG

Written 2008-02-09 20:33

The other day I pondered something along these lines:

So if you want to make a really fast CGI, you write it in C. But if you want to make a really fast C program, you write it in FORTRAN... I wonder if I could make a really fast CGI program in FORTRAN...

FLOG is the culmination of that thought process — a blog CGI written entirely in FORTRAN 77. Why? Why not? If you think about it, all a CGI script really is is a very fast form of batch processing. You send in a stack of cards (your HTTP request) and some time later, you get a stack of cards back (your webpage). After the page is loaded, the web server forgets about you, and if you want another page, you start another job (send another request).

The only non-standard extension FLOG uses is GNU Fortran's GETENV() subroutine. If a suitable substitute for that exists in your version of FORTRAN, FLOG should be entirely portable. You will, of course, need a web server, which may be harder to find on systems that can run FORTRAN 77. :)

FLOG Source

Written 2008-02-09 20:52

Download these and run compile.sh

flog.f
html.f
util.f
compile.sh