• "What Fortran does better than C-like languages" by Michael Wirth

    From Lynn McGuire@21:1/5 to All on Mon Feb 14 16:21:35 2022
    "What Fortran does better than C-like languages" by Michael Wirth

    https://craftofcoding.wordpress.com/2022/02/11/what-fortran-does-better-than-c-like-languages/

    Interesting.

    Lynn

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Beliavsky@21:1/5 to Lynn McGuire on Mon Feb 14 16:35:52 2022
    On Monday, February 14, 2022 at 5:21:39 PM UTC-5, Lynn McGuire wrote:
    "What Fortran does better than C-like languages" by Michael Wirth

    https://craftofcoding.wordpress.com/2022/02/11/what-fortran-does-better-than-c-like-languages/

    Interesting.

    Lynn

    Discussed at Hacker News: https://news.ycombinator.com/item?id=30314189 . Wirth has many Fortran posts
    on his site.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From James Van Buskirk@21:1/5 to Lynn McGuire on Tue Feb 15 08:49:06 2022
    "Lynn McGuire" wrote in message news:sueklf$4bg$1@dont-email.me...

    "What Fortran does better than C-like languages" by Michael Wirth

    https://craftofcoding.wordpress.com/2022/02/11/what-fortran-does-better-than-c-like-languages/

    Of course I would have printed out arr2d in one line:

    write(*,'(6i4)') transpose(arr2d)

    BTW, you never told me whether my last post was useful or not. Did it solve your problem? It's always useful to have feedback.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lynn McGuire@21:1/5 to James Van Buskirk on Tue Feb 15 15:20:05 2022
    On 2/15/2022 9:49 AM, James Van Buskirk wrote:
    "Lynn McGuire"  wrote in message news:sueklf$4bg$1@dont-email.me...

    "What Fortran does better than C-like languages" by Michael Wirth

    https://craftofcoding.wordpress.com/2022/02/11/what-fortran-does-better-than-c-like-languages/


    Of course I would have printed out arr2d in one line:

    write(*,'(6i4)') transpose(arr2d)

    BTW, you never told me whether my last post was useful or not. Did it solve your problem? It's always useful to have feedback.

    I got pulled off the Watcom F77 to Intel Fortran port by a customer
    problem. I fixed his first problem. He has found more.

    In the port, I am having extreme problems getting both my Intel Fortran
    2,000 subroutines and my 150 C/C++ methods to work in 2019 Visual
    Studio. I may have to brute force the port (massive build script) but
    then the visual code debugger may not work. Or try Code::Blocks.

    Lynn

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jos Bergervoet@21:1/5 to Lynn McGuire on Tue Feb 15 23:38:16 2022
    On 22/02/14 11:21 PM, Lynn McGuire wrote:
    "What Fortran does better than C-like languages" by Michael Wirth

    https://craftofcoding.wordpress.com/2022/02/11/what-fortran-does-better-than-c-like-languages/


    Interesting.

    Well, of course he's right, but in this group everybody already knows
    these things. Also interesting (even more interesting) would be the
    comparison to *non-C-like languages*, like Matlab or Python. or even Mathematica.

    Or even with LISP-like languages! After all, Ocean/Skill-based scripts
    are still used in the electronics world:
    <https://wiki.to.infn.it/vlsi/workbook2/skill>
    <https://en.wikipedia.org/wiki/Cadence_SKILL>
    It's based on LISP and you still can use car and cdr with lists,
    alongside complex numbers, mathematical functions and ordinary control structures like if-then-else and for loops. Really an interesting mix!

    --
    Jos

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Robin Vowels@21:1/5 to James Van Buskirk on Tue Mar 1 07:02:11 2022
    On Wednesday, February 16, 2022 at 2:49:28 AM UTC+11, James Van Buskirk wrote:
    "Lynn McGuire" wrote in message news:sueklf$4bg$1...@dont-email.me...
    "What Fortran does better than C-like languages" by Michael Wirth

    https://craftofcoding.wordpress.com/2022/02/11/what-fortran-does-better-than-c-like-languages/
    Of course I would have printed out arr2d in one line:

    write(*,'(6i4)') transpose(arr2d)
    .
    In PL/I, an array can be printed by rows
    using formatted output thus:
    put edit (arr2d) (skip, (hbound(arr2d,2)) F(4) );
    .
    where HBOUND delivers the upper bound (assumes that the lower bound is 1).
    .
    The transpose can be printed by columns using an almost identical statement.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)