<?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: Simpler for for type declaration in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1564771#M170487</link>
    <description>&lt;P&gt;There is a long and deadly boring discussion on the difference between Fortran and FORTRAN on the Fortran discourse forum.&amp;nbsp; It echoes rather badly the excellent points made by Steve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need the program to run faster, it is usually much more cost effective to buy a better computer.&amp;nbsp; A Intel CORE i9 with bells and whistles like the Old No 9 train is merely 3200 USD.&amp;nbsp; Less than the cost of a programmer for a week.&amp;nbsp; Or you get a special Fortran computer and do not put anything else on it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really you only need LISP and FORTRAN, everything else is just cake, but human beans make lots of cakes, some good and some excellent, in cake terms you need LISP and FORTRAN, the rest is just a nice sugar on the top to improve programming productivity.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 01:40:18 GMT</pubDate>
    <dc:creator>JohnNichols</dc:creator>
    <dc:date>2024-01-22T01:40:18Z</dc:date>
    <item>
      <title>Simpler for for type declaration</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1564684#M170483</link>
      <description>&lt;P&gt;Steve, why is it that the TYPE keyword was needed? The double colon alone would have made it clear we were referring to a type.&lt;/P&gt;&lt;P&gt;So instead of&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;TYPE(FOO) :: variable&lt;/P&gt;&lt;P&gt;We could have just had:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;FOO :: variable&lt;/P&gt;&lt;P&gt;Does the ability to declare TYPE or CLASS dummy arguments improve performance? To me its seams&amp;nbsp;unnecessary to have this complication of arguments being converted to and from polymorphic and that it would worsen performance.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 12:33:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1564684#M170483</guid>
      <dc:creator>Andrew_Smith</dc:creator>
      <dc:date>2024-01-21T12:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simpler for for type declaration</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1564695#M170484</link>
      <description>&lt;P&gt;Yes it is simpler&amp;nbsp; but I will note&amp;nbsp;&lt;SPAN&gt;double colon is optional in which case it maybe become ambiguous.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 16:13:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1564695#M170484</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-01-21T16:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Simpler for for type declaration</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1564696#M170485</link>
      <description>&lt;P&gt;Not every change in the standard is for performance - indeed most are there to improve programmer productivity. Sure, anything that defers decisions to runtime will reduce performance, (CLASS does this, TYPE does not), but polymorphism greatly simplifies some aspects of programming and appears in many other languages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2024 16:30:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1564696#M170485</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-01-21T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simpler for for type declaration</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1564771#M170487</link>
      <description>&lt;P&gt;There is a long and deadly boring discussion on the difference between Fortran and FORTRAN on the Fortran discourse forum.&amp;nbsp; It echoes rather badly the excellent points made by Steve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need the program to run faster, it is usually much more cost effective to buy a better computer.&amp;nbsp; A Intel CORE i9 with bells and whistles like the Old No 9 train is merely 3200 USD.&amp;nbsp; Less than the cost of a programmer for a week.&amp;nbsp; Or you get a special Fortran computer and do not put anything else on it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really you only need LISP and FORTRAN, everything else is just cake, but human beans make lots of cakes, some good and some excellent, in cake terms you need LISP and FORTRAN, the rest is just a nice sugar on the top to improve programming productivity.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 01:40:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1564771#M170487</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2024-01-22T01:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simpler for for type declaration</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1565071#M170507</link>
      <description>&lt;P&gt;Additionally, there are no "reserved" words in Fortran and therefore code such as the following shall be conformant:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;      type pointer
         integer :: n = 42
      end type
      type(pointer), allocatable :: a !&amp;lt;-- imagine this instruction without TYPE()
      allocate( a )
      print *, a%n
end&lt;/LI-CODE&gt;&lt;LI-CODE lang="none"&gt;C:\temp&amp;gt;gfortran -ffree-form p.f -o p.exe

C:\temp&amp;gt;p.exe
          42&lt;/LI-CODE&gt;&lt;LI-CODE lang="none"&gt;C:\temp&amp;gt;ifx /free /standard-semantics p.f
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2023.2.0 Build 20230627
Copyright (C) 1985-2023 Intel Corporation. All rights reserved.

Microsoft (R) Incremental Linker Version 14.36.32537.0
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:p.exe
-subsystem:console
p.obj

C:\temp&amp;gt;p.exe
 42&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, imagine the instruction on line 4 without `TYPE(..)` enclosure.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 16:43:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1565071#M170507</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2024-01-22T16:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simpler for for type declaration</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1565105#M170511</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/92920"&gt;@FortranFan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Additionally, there are no "reserved" words in Fortran&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Quite true (I wrote about that &lt;A href="https://stevelionel.com/drfortran/2020/06/07/doctor-fortran-in-no-reserve/" target="_blank" rel="noopener"&gt;here&lt;/A&gt;), but you can't declare your own derived type that has the same name as an intrinsic type, and you &lt;STRONG&gt;are&lt;/STRONG&gt; allowed to name intrinsic types in a type() declaration.&lt;/P&gt;&lt;P&gt;C734 (R727) A derived type type-name shall not be DOUBLEPRECISION or the same as the name of any&amp;nbsp;intrinsic type defined in this document.&lt;/P&gt;&lt;P&gt;R703 declaration-type-spec is intrinsic-type-spec&lt;BR /&gt;&amp;nbsp;or TYPE ( intrinsic-type-spec )&lt;BR /&gt;&amp;nbsp;or TYPE ( derived-type-spec )&lt;BR /&gt;&amp;nbsp;or TYPE ( enum-type-spec )&lt;BR /&gt;&amp;nbsp;or TYPE ( enumeration-type-spec )&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 17:57:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Simpler-for-for-type-declaration/m-p/1565105#M170511</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-01-22T17:57:32Z</dc:date>
    </item>
  </channel>
</rss>

