Live data from Hacker News

How Thou Canst Maketh a Fine Program in Fortran

digitalocean.com

21–30 of 38 posts

Re: How Thou Canst Maketh a Fine Program in Fortran

#23
post #2

I'm thoroughly surprised to see that Fortran is still being updated (with an upgrade still in the works for next year apperantly). I had no idea. I'll give it a shot as it seems interesting to at least have worked in it a bit, but I do wonder, where is Fortran used these days? A quick glance at Tiobe[1] shows that it scored a bit higher than Haskell, Scala and Kotlin. Can anyone explain me why? [1]: https://www.tiobe…

It's a language whose syntax makes it easy to pass around multi-dimensional arrays, bounds checking is a standard feature on most compilers, doesn't have the same aliasing problems as C so compilers can do more aggressive optimizations and it compiles directly to your native hardware's instruction set (no vms/sandboxes). Why wouldn't you want that for cpu bound numerical code?

Also, the PG (now nVidia) Fortran compiler makes it very easy to make your code run on a gpu with only adding some attributes to variables and some pramgas.

Re: How Thou Canst Maketh a Fine Program in Fortran

#24
post #2

I'm thoroughly surprised to see that Fortran is still being updated (with an upgrade still in the works for next year apperantly). I had no idea. I'll give it a shot as it seems interesting to at least have worked in it a bit, but I do wonder, where is Fortran used these days? A quick glance at Tiobe[1] shows that it scored a bit higher than Haskell, Scala and Kotlin. Can anyone explain me why? [1]: https://www.tiobe…

It's a language whose syntax makes it easy to pass around multi-dimensional arrays, bounds checking is a standard feature on most compilers, doesn't have the same aliasing problems as C so compilers can do more aggressive optimizations and it compiles directly to your native hardware's instruction set (no vms/sandboxes). Why wouldn't you want that for cpu bound numerical code?

Also, the PG (now nVidia) Fortran compiler makes it very easy to make your code run on a gpu with only adding some attributes to variables and some pramgas.

Re: How Thou Canst Maketh a Fine Program in Fortran

#25
Author, I pray ye learn Early Modern English verb conjugation, the declension of "thou", and how the occurrence of periphrastic "do" changed with the era, that your titles, headings, and text might fall easily upon the eye and mind of the reader.

(Seriously, nice post, and well done on the title graphic font choice.)

Re: How Thou Canst Maketh a Fine Program in Fortran

#26

Needed more https://en.wikipedia.org/wiki/Long_s Turns In troth, the Fortran programming language is well suited for those persons who are scientific and who engineer. Named so for the phrase “Formula Translation,” it is a language exquisite for programming machines. into In troth, the Fortran programming language is well suited for thoſe perſons who are scientific and who engineer. Named so for the phraſe “Formula T…

Bonus points if he had used þe for the in a few places...

she

Re: How Thou Canst Maketh a Fine Program in Fortran

#27

Earlier quoted context omitted.

Not the parent, but "your machine" should probably be "thy machine." "Thou compiler" should be "thy compiler." In general, mapping from 3rd to 2nd person, "he" = "thou", "him" = "thee", and "his" = "thy." I believe "thou doth do" should just be "thou doth" but I could be mistaken about what "doth" is. :)

Just to share something I think is fun: Modern German has separate formal and informal pronouns ("du bist" vs. "Sie sind") and verbs. English used to have them too ("thou art"/"you are"). Even though people assume "thou" is more formal, it's actually the informal/intimate version. https://en.wikipedia.org/wiki/Thou Apparently we (~Angles/Saxons) also used to have a separate tense for "a group of exactly two of you" a…

I have always enjoyed the insult "I thou thee thou traitor" offered to Sir Walter Raleigh, presumably just before he was executed. There is a semi-plausible explanation of how thou died out in England

https://www.quora.com/English-language-Why-did-people-stop-u...

but it leaves open the question why it persists in other languages.

Re: How Thou Canst Maketh a Fine Program in Fortran

#28
post #7

Author missed a trick by not using a font with a long S. Also had some trouble declining thee/thou/thy, which is admittedly hard for a modern speaker.

What were the issues with the declensions?

Well, one thing I noticed was an inconsistency with "thy" and "thine". Which one you use depends on if the following word starts with a vowel, with "thine" before vowels and "thy" otherwise. For example, the article has "in thy own case", as well as, "output thine data". Some investigation seems to lead me to believe that this a more a matter of style, but I still think it sounds wrong.

Re: How Thou Canst Maketh a Fine Program in Fortran

#30
post #2

I'm thoroughly surprised to see that Fortran is still being updated (with an upgrade still in the works for next year apperantly). I had no idea. I'll give it a shot as it seems interesting to at least have worked in it a bit, but I do wonder, where is Fortran used these days? A quick glance at Tiobe[1] shows that it scored a bit higher than Haskell, Scala and Kotlin. Can anyone explain me why? [1]: https://www.tiobe…

I did my dissertation in astrophysics a few years ago using simulations I programmed in Fortran. As others have said, its efficient for number crunching, there's a lot of legacy code in scientific fields and most older Profs are familiar with it. Also, as a language, there isn't much to it. If you're already familiar with the basics of programming, you can learn most of what there is to know about Fortran 77 in an af…

My dissertation in astrophysics was pretty heavy in FORTRAN too (hydrodynamics simulations). Legacy code, simple language, and really fast compilers.
Post reply on HN