Jump to page: 1 2 3
Thread overview
Why Physicists Still Use Fortran
Oct 15, 2017
Walter Bright
Oct 15, 2017
12345swordy
Oct 16, 2017
H. S. Teoh
Oct 16, 2017
Walter Bright
Oct 16, 2017
Manu
[OT] Re: Why Physicists Still Use Fortran
Oct 16, 2017
Walter Bright
Oct 16, 2017
Manu
Oct 16, 2017
Stefan Koch
Oct 21, 2017
codephantom
[OT] Re: Why Physicists Still Use Fortran
Oct 16, 2017
H. S. Teoh
Re: [OT] Re: Why Physicists Still Use Fortran
Oct 16, 2017
Manu
Re: [OT] Re: Why Physicists Still Use Fortran
Oct 16, 2017
H. S. Teoh
Oct 16, 2017
jmh530
Re: [OT] Re: Why Physicists Still Use Fortran
Oct 16, 2017
Jonathan M Davis
Oct 18, 2017
XavierAP
Oct 18, 2017
Stefan Koch
Oct 16, 2017
qznc
Oct 17, 2017
kdevel
Oct 16, 2017
Jonathan M Davis
Oct 16, 2017
jmh530
Oct 17, 2017
crimaniak
Oct 17, 2017
Meta
Oct 17, 2017
jmh530
Oct 17, 2017
Kagamin
Oct 17, 2017
Ilya Yaroshenko
Oct 19, 2017
Kagamin
October 15, 2017
http://moreisdifferent.com/2015/07/16/why-physicsts-still-use-fortran/

Some good information there!
October 15, 2017
On Sunday, 15 October 2017 at 22:09:21 UTC, Walter Bright wrote:
> http://moreisdifferent.com/2015/07/16/why-physicsts-still-use-fortran/
>
> Some good information there!

A language similar to matlab when handling arrays? I recall hating the damn thing when using it for graphics programming, it certainly doesn't help when you have a terrible teacher who should have retire already.

Alex
October 15, 2017
On Sun, Oct 15, 2017 at 03:09:21PM -0700, Walter Bright via Digitalmars-d wrote:
> http://moreisdifferent.com/2015/07/16/why-physicsts-still-use-fortran/
> 
> Some good information there!

1-based array indexing...  I don't know, but I've become so accustomed to 0-based indexing that I doubt I'll ever be able to get used to a language with 1-based indexing.  Or whether D will ever be able to challenge Fortran in this respect. :P


T

-- 
Questions are the beginning of intelligence, but the fear of God is the beginning of wisdom.
October 15, 2017
On Sunday, October 15, 2017 17:26:20 H. S. Teoh via Digitalmars-d wrote:
> On Sun, Oct 15, 2017 at 03:09:21PM -0700, Walter Bright via Digitalmars-d
wrote:
> > http://moreisdifferent.com/2015/07/16/why-physicsts-still-use-fortran/
> >
> > Some good information there!
>
> 1-based array indexing...  I don't know, but I've become so accustomed to 0-based indexing that I doubt I'll ever be able to get used to a language with 1-based indexing.  Or whether D will ever be able to challenge Fortran in this respect. :P

For an algorithms class that I took in college, the book used 1-based indexing for everything, and it drove me nuts. I guess that it was written for mathematicians and not programmers.

- Jonathan M Davis

October 15, 2017
On 10/15/2017 5:26 PM, H. S. Teoh wrote:
> 1-based array indexing...  I don't know, but I've become so accustomed
> to 0-based indexing that I doubt I'll ever be able to get used to a
> language with 1-based indexing.  Or whether D will ever be able to
> challenge Fortran in this respect. :P

I don't want to even try 1 based. All my learned behaviors with arrays would just produce corrupt code.

It's why I don't dare try driving in England.
October 16, 2017
On Sunday, 15 October 2017 at 22:09:21 UTC, Walter Bright wrote:
> http://moreisdifferent.com/2015/07/16/why-physicsts-still-use-fortran/
>
> Some good information there!

The article could have mentioned the restrict annotation in C. They mention the issue indirectly because Fortran programmers don't worry about pointers compared to C programmers. The crucial issue is that Fortran guarantees one variable can't alias another by default. There are compiler optimizations from ensuring this is the case. That's the reason restrict was created for C, so that it could make the same guarantee as Fortran.

The whole 0-based vs. 1-based is a small issue. If all your doing is matrix math, then 1-based is fine (esp. for a first language), but 0-based is better for a general purpose language.
October 15, 2017
On 15 Oct. 2017 6:40 pm, "Walter Bright via Digitalmars-d" < digitalmars-d@puremagic.com> wrote:

On 10/15/2017 5:26 PM, H. S. Teoh wrote:

> 1-based array indexing...  I don't know, but I've become so accustomed to 0-based indexing that I doubt I'll ever be able to get used to a language with 1-based indexing.  Or whether D will ever be able to challenge Fortran in this respect. :P
>

I don't want to even try 1 based. All my learned behaviors with arrays would just produce corrupt code.

It's why I don't dare try driving in England.


Haha, incidentally, I've just moved to LA, and I'm failing to convince myself I won't die if I try and drive here ;) .. I'm still chickening out.


October 15, 2017
On 10/15/2017 10:09 PM, Manu wrote:
> Haha, incidentally, I've just moved to LA, and I'm failing to convince myself I won't die if I try and drive here ;) .. I'm still chickening out.

LA? Cool!

(Don't watch "To Live and Die in LA")

Or just get a used "Yank Tank" and you'll be fine.
October 16, 2017
On Monday, 16 October 2017 at 00:26:20 UTC, H. S. Teoh wrote:
> On Sun, Oct 15, 2017 at 03:09:21PM -0700, Walter Bright via Digitalmars-d wrote:
>> http://moreisdifferent.com/2015/07/16/why-physicsts-still-use-fortran/
>> 
>> Some good information there!
>
> 1-based array indexing...  I don't know, but I've become so accustomed to 0-based indexing that I doubt I'll ever be able to get used to a language with 1-based indexing.  Or whether D will ever be able to challenge Fortran in this respect. :P

Dijkstra made a good argument for zero-based:
https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html


October 16, 2017
On 15 Oct. 2017 11:50 pm, "Walter Bright via Digitalmars-d" < digitalmars-d@puremagic.com> wrote:

On 10/15/2017 10:09 PM, Manu wrote:

> Haha, incidentally, I've just moved to LA, and I'm failing to convince myself I won't die if I try and drive here ;) .. I'm still chickening out.
>

LA? Cool!

(Don't watch "To Live and Die in LA")

Or just get a used "Yank Tank" and you'll be fine.


Hah. That would violate every principle I hold ;)
And besides, I'm pretty sure I'm only allowed to have an all-electric in
Southern California!


« First   ‹ Prev
1 2 3