Fortran – ISO/IEC 1539

Comments Off on Fortran – ISO/IEC 1539

A blast from the past!

Here is the classic “Hello, World!” program in Fortran – ISO/IEC 1539:

PROGRAM hello
  IMPLICIT NONE
  CHARACTER (LEN=12) :: greeting = 'Hello, World!'
  WRITE (*,*) greeting
END PROGRAM hello

Let me explain what’s going on:

  • PROGRAM is the keyword to define a Fortran program.
  • IMPLICIT NONE specifies that all variables must be explicitly declared.
  • CHARACTER (LEN=12) :: greeting = 'Hello, World!' declares a character variable greeting with a length of 12 characters and initializes it with the string “Hello, World!”.
  • WRITE (*,*) greeting prints the value of greeting to the console.

To compile this program, you’ll need an Fortran compiler that supports ISO/IEC 1539. Some popular options include:

  • gfortran (part of the GNU Compiler Collection)
  • ifort (Intel Fortran Compiler)
  • pgfortran (Portland Group Fortran Compiler)

Once compiled, simply run the executable to see the output: “Hello, World!”

Prompt
young woman, beautiful face, standing, great body, gorgeous figure, long legs, pretty eyes, long hair, learns Fortran – ISO/IEC 1539 programming language, beautiful background, magnificent scenery, Ernst Neizvestny style, HD, sharp focus, stunningly beautiful, cybernetic style, futuristic, technological, cybernetic enhancements, robotics, artificial intelligence themes

Negative prompt
verybadimagenegative, bad_prompt_version2-neg, easynegative, FastNegativeV2, ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, historical, medieval, extra eyes, bad eyes, ugly eyes, imperfect eyes, deformed pupils, deformed iris, cross-eyed, poorly drawn face, bad face, fused face, ugly face, worst face, unrealistic skin texture, out of frame, poorly drawn hands, cloned face, double face, blurry, bad quality

Text model: llama3

Image model: PixelAlchemy