<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: A comment from 1991 in Fortran in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662160#M174985</link>
    <description>&lt;P&gt;Should&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/89041"&gt;@JohnNichols&lt;/a&gt;&amp;nbsp;choose the ANY method, then after the 600 CONTINUE, he will need to insert&amp;nbsp;&lt;SPAN&gt;NH1&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;NCHAIN&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;IH1&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; should the value of NH1 be required later in the code.&lt;/P&gt;&lt;P&gt;Jim Dempsey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2025 15:51:38 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2025-01-31T15:51:38Z</dc:date>
    <item>
      <title>A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1660444#M174920</link>
      <description>&lt;P&gt;I needed a program to draw bridge profiles so I grabbed a program from 1991 to draw rising mains from a text file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;!
!      NATURAL SURFACE
!
!
!      LAST PLOT POINTS FIX FOR WMS/SWP
!
!     &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;THIS COULD BE FLAWED&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
          IH1=I-1
          DO 600 J11=1,7
              NH1=NCHAIN(IH1)
              IF (NH1 .EQ. 22) THEN
                  IH1=IH1-1
              ELSEIF( NH1 .EQ. 28) THEN
                  IH1=IH1-1
              ELSEIF(NH1 .EQ. 38) THEN
                  IH1=IH1-1
              ELSEIF(NH1 .EQ. 77) THEN
                  IH1=IH1-1
              ELSEIF(NH1 .EQ. 78) THEN
                  IH1=IH1-1
              ENDIF
600       CONTINUE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to laugh, when I wrote this code with this comment in 1991.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;                  IF(NYNEXT .NE. 22 .AND. NYNEXT .NE. 28 .AND. NYNEXT .NE. 38 .AND. NYNEXT .NE. 77 .AND. NYNEXT  .NE. 78 .OR. NY .EQ. 31) THEN&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim:&amp;nbsp; Is there a better way to do the if statement?&amp;nbsp; This is from 1991.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Me to student :&amp;nbsp; &amp;nbsp;What are you studying?&lt;/P&gt;&lt;P&gt;Student :&amp;nbsp; FEM&lt;/P&gt;&lt;P&gt;Me What language?&lt;/P&gt;&lt;P&gt;Student: Python&lt;/P&gt;&lt;P&gt;Me: Ah.. you want a fast language&lt;/P&gt;&lt;P&gt;Student:&amp;nbsp; It is better then MATLAB.&lt;/P&gt;&lt;P&gt;Me:&amp;nbsp; &amp;nbsp;Ah.....................&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 16:42:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1660444#M174920</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2025-01-25T16:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1660482#M174922</link>
      <description>If (any(nh1==[22,28,38,77,78])) ih= ih1-1</description>
      <pubDate>Sun, 26 Jan 2025 01:30:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1660482#M174922</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2025-01-26T01:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1660561#M174928</link>
      <description>&lt;P&gt;Any is not in my MS Fortran 5.1 manual written in 1991.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pity I like that manual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks - learnt something new.&amp;nbsp; I will not comment about it potentially being syntactic sugar, although it is simpler.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2025 20:28:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1660561#M174928</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2025-01-26T20:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1660712#M174933</link>
      <description>&lt;P&gt;Well you could have constructed an integer array and made a do loop with an if statement in it. That would be much shorter code also. I remember using that old ms Fortran and had no opinion good or bad at the time. If I had to use it now I would consider it a restrictive buggy bag of ****.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 03:54:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1660712#M174933</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2025-01-27T03:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661339#M174950</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; Old MS Fortran manuals are good as they provide simple examples and clear explanations for a lot of Fortran stuff.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Old Fortran cannot do what a modern compiler can do I accept that, but the manuals were better then, as you could read them in bed. Now they are html and example poor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peanuts Comic Strip.jpg" style="width: 240px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/62286i1068050918B8FB15/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Peanuts Comic Strip.jpg" alt="Peanuts Comic Strip.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 22:48:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661339#M174950</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2025-01-28T22:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661757#M174957</link>
      <description>&lt;P&gt;I agree about old manuals. When I was using Algol many of us used one vendor's inexpensive readable manual even though our one compiler was a different vendor's.&amp;nbsp; There are books e.g. Modern Fortran Explained by Metcalf et al. that could be read in bed &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 06:48:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661757#M174957</guid>
      <dc:creator>JFH</dc:creator>
      <dc:date>2025-01-30T06:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661827#M174962</link>
      <description>&lt;P&gt;Fortunately, it was not arithmetic if. Imagine&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;      if (nhi-22) 10,90,10
10    if (nhi-28) 11,90,11
11  ...
      goto 99
90    ih1=ih1-1
99    continue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 14:42:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661827#M174962</guid>
      <dc:creator>GVautier</dc:creator>
      <dc:date>2025-01-30T14:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661843#M174966</link>
      <description>&lt;P&gt;In your first source:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;          IH1=I-1
          DO J11=1,7
              NH1=NCHAIN(IH1)
              SELECT CASE(NH1)
              CASE(22,28,38,77,78)
                  IH1=IH1-1
              DEFAULT
                  EXIT ! Note, if none of the above, exit loop as NH1 is unchanging
              END SELECT
          END DO&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;Edit&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/66560"&gt;@andrew_4619&lt;/a&gt;&amp;nbsp;'s solution is much better&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 16:00:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661843#M174966</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2025-01-30T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661877#M174973</link>
      <description>&lt;P&gt;I do, but you cannot read the Intel Fortran 2025 manual in bed unless you take a computer.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 19:58:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661877#M174973</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2025-01-30T19:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661878#M174974</link>
      <description>&lt;P&gt;IN order to do some of the plastic analysis I am using programs from late 1960's and early 1970's and they use arithmetic if, slowly fixing them, but if it is not broken why fix it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 19:59:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661878#M174974</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2025-01-30T19:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661879#M174975</link>
      <description>&lt;P&gt;Should have thought of case been using it a lot.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I like Andrew's solution, but which one takes up the least assembler code and which one is fastest.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 20:01:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661879#M174975</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2025-01-30T20:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661885#M174977</link>
      <description>&lt;P&gt;The speed difference of any of them is probably irrelevant, easiest to read, understand and maintain would get my vote.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 20:29:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1661885#M174977</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2025-01-30T20:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662098#M174980</link>
      <description>&lt;P&gt;A piece of code slightly modernized but in which I never succeeded to replace the arithmetic if. The code do what it is supposed to do but I never understood neither how neither why.&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;      intli=0
    9 if (lign-ptal_g)999,15,10
   10 if (lign-ptal_d)11,20,999
   11 if (xa-xb)20,999,15
   15 isens=1
      lim=ptal_d
      goto 30
   20 isens=-1
      lim=ptal_g
   30 do l=lign+isens,lim,isens
          do n=npro,npro,-1
             call inseg_old(xa,ya,xb,yb,p(n  ).x(l),p(n  ).y(l)
     s                                 ,p(n-1).x(l),p(n-1).y(l)
     s                      ,x,y)
              if ((x-xa)*(x-xb))34,34,40
   34         if ((x-p(n).x(l))*(x-p(n-1).x(l)))35,35,40
   35         if (p(n).v(l))36,36,100
   36         if (p(n-1).v(l))40,40,100
   40         if (p(n-1).y(l)-ymin)41,45,45
   41         if (p(n-1).y(l)-p(n).y(l))50,50,45
   45         continue
          enddo
   50     continue
      enddo
      return

  100 intli=1
      xint=x
      yint=y
  999 return&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 08:24:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662098#M174980</guid>
      <dc:creator>GVautier</dc:creator>
      <dc:date>2025-01-31T08:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662147#M174981</link>
      <description>&lt;P&gt;Presumably&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/66560"&gt;@andrew_4619&lt;/a&gt;&amp;nbsp;'s solution is inside the DO 600 loop and thus will execute 7 times regardless of the length of the chain.&lt;/P&gt;&lt;P&gt;As to if which method is faster, will depend on the length of the chain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 14:58:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662147#M174981</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2025-01-31T14:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662148#M174982</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;= If (any(nh1==[22,28,38,77,78])) ih= ih1-1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you like Lisp and I love Lisp then this would be your first choice.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;!
!      NATURAL SURFACE
!
!
!      LAST PLOT POINTS FIX FOR WMS/SWP
!
!     &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;THIS COULD BE FLAWED&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
          IH1=I-1
          DO 600 J11=1,7
              NH1=NCHAIN(IH1)
              IF (NH1 .EQ. 22) THEN
                  IH1=IH1-1
              ELSEIF( NH1 .EQ. 28) THEN
                  IH1=IH1-1
              ELSEIF(NH1 .EQ. 38) THEN
                  IH1=IH1-1
              ELSEIF(NH1 .EQ. 77) THEN
                  IH1=IH1-1
              ELSEIF(NH1 .EQ. 78) THEN
                  IH1=IH1-1
              ENDIF
600       CONTINUE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are rapidly developing Fortran code this is easy to understand although Verbose, its only problem is say 100 items, but&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is easy to forget( in Version 1 top of page) in counting or adding numbers correctly, try MySQL commands with&amp;nbsp; more than 4 parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;IH1=I-1
          DO J11=1,7
              NH1=NCHAIN(IH1)
              SELECT CASE(NH1)
              CASE(22,28,38,77,78)
                  IH1=IH1-1
              DEFAULT
                  EXIT ! Note, if none of the above, exit loop as NH1 is unchanging
              END SELECT
          END DO&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is Zen like, obviously the person who wrote this read Zen and the Art of Motorcycle maintenance in their misspent youth.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an early Fortran programmer I read the book and summarized it for an English student who had more homework than I did.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Zen read C.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Al of them meet Andrew's criteria for different reasons.&amp;nbsp; It is the old argument, how does one do hill climbing, slow and steady or fast and parched.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although technically 1&amp;nbsp; is syntactic sugar on old English Fortran, beloved of no-one.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;of course&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/41971"&gt;@mecej4&lt;/a&gt;&amp;nbsp; would tell me to knock of the games and just concentrate on the Fortran.&amp;nbsp; &amp;nbsp;Although yesterday I was asked by a student, who is the Mother of Zeus, she was doing a crossword, I said Raia but it is Rhea.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 15:06:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662148#M174982</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2025-01-31T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662151#M174983</link>
      <description>&lt;P&gt;Some of the older coder's style may have written the loop as follows:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;          IH1=I-1
          DO 600 J11=1,7
              NH1=NCHAIN(IH1)
              IF(NH1 .EQ. 22) IH1=IH1-1
              IF(NH1 .EQ. 28) IH1=IH1-1
              IF(NH1 .EQ. 38) IH1=IH1-1
              IF(NH1 .EQ. 77) IH1=IH1-1
              IF(NH1 .EQ. 78) IH1=IH1-1
600       CONTINUE
 &lt;/LI-CODE&gt;&lt;P&gt;Fewer punched cards.&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 15:22:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662151#M174983</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2025-01-31T15:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662154#M174984</link>
      <description>&lt;P&gt;&lt;EM&gt;Although technically 1&amp;nbsp; is syntactic sugar on old English Fortran, beloved of no-one.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't actually agree, there are several things happening in that one line statement all of which have many different potential usage cases.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1] constructing a list of integers in an array&lt;/P&gt;&lt;P&gt;2] constructing a temporary logical array comparing a scaler to an array.&lt;/P&gt;&lt;P&gt;3] Using the ANY function to see if any logical in the array is true and if so......&lt;/P&gt;&lt;P&gt;4] executing the IF construct.&lt;/P&gt;&lt;P&gt;The use of whole array operations is fundamental to the Fortran language from Fortran 90 onwards. Personally I find that the one liner much quicker to understand than&amp;nbsp; the list of ELSEIFs which I need to read all of to see what each case does. OK they all do the same thing but you do not know that without checking each line.&amp;nbsp; Why write and maintain 14 lines of code when one will do? Why write code that creates unnecessary scrolling up and down the page because it is verbose? And as a final point if one wanted to change the IH1 = IH1-1 in some way you would need to change it in 5 places instead of one, whoops I missed one and made a bug....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 15:41:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662154#M174984</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2025-01-31T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662160#M174985</link>
      <description>&lt;P&gt;Should&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/89041"&gt;@JohnNichols&lt;/a&gt;&amp;nbsp;choose the ANY method, then after the 600 CONTINUE, he will need to insert&amp;nbsp;&lt;SPAN&gt;NH1&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;NCHAIN&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;IH1&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; should the value of NH1 be required later in the code.&lt;/P&gt;&lt;P&gt;Jim Dempsey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 15:51:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662160#M174985</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2025-01-31T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662210#M174986</link>
      <description>&lt;LI-CODE lang="none"&gt;(map ’string #’(lambda (x y) 
		 (char "01234567890ABCDEF" (mod (+ x y) 16))) 
      ’(1 2 3 4) 
      ’(10 9 8 7)) → "AAAA" 
(setq seq ’("lower" "UPPER" "" "123")) → ("lower" "UPPER" "" "123") 
(map nil #’nstring-upcase seq) → NIL 
seq → ("LOWER" "UPPER" "" "123") 
(map ’list #’- ’(1 2 3 4)) → (-1 -2 -3 -4) 
(map ’string 
      #’(lambda (x) (if (oddp x) #\1 #\0)) 
      ’(1 2 3 4)) → "1010" 
(map ’(vector \* 4) #’cons "abc" "de") should signal an error &lt;/LI-CODE&gt;&lt;P&gt;This is the problem with Fortran's development over the last 50 years.&amp;nbsp; The developers borrow from other languages, such as ANY being similar to map from Lisp.&amp;nbsp; &amp;nbsp;Why not use a word that other program use and not reinvent the wheel.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no problem with ANY per se, just make the language closer to common things in other languages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 23:05:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662210#M174986</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2025-01-31T23:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: A comment from 1991 in Fortran</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662391#M174987</link>
      <description>&lt;P&gt;I do not know lisp but ANY does not seem analogous to MAP and there is already a MAP in a widely supported Fortran extension. ANY is just an .OR. applied to an array of type logical and returns TRUE if ANY are true.&amp;nbsp; ALL is the equivalent&amp;nbsp; for .AND.&amp;nbsp; and returns TRUE if ALL are true. Those names seem quite LOGICAL to me.&amp;nbsp; ANY/ALL/COUNT (from F2003 or 2008 from memory) allow you to work with arrays rather than scalars and can make code much less verbose and can eliminate loops. I would also think it gives a compiler more chance to vectorise/optimise.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2025 12:30:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/A-comment-from-1991-in-Fortran/m-p/1662391#M174987</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2025-02-02T12:30:35Z</dc:date>
    </item>
  </channel>
</rss>

