Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

157 views
Skip to first unread message

Lynn McGuire

unread,
Feb 14, 2022, 5:21:39 PM2/14/22
to
"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

Beliavsky

unread,
Feb 14, 2022, 7:35:55 PM2/14/22
to
Discussed at Hacker News: https://news.ycombinator.com/item?id=30314189 . Wirth has many Fortran posts
on his site.

James Van Buskirk

unread,
Feb 15, 2022, 10:49:28 AM2/15/22
to
"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.

Lynn McGuire

unread,
Feb 15, 2022, 4:20:09 PM2/15/22
to
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

Jos Bergervoet

unread,
Feb 15, 2022, 5:38:22 PM2/15/22
to
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


Robin Vowels

unread,
Mar 1, 2022, 10:02:26 AM3/1/22
to
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.
0 new messages