Live data from Hacker News

How Thou Canst Maketh a Fine Program in Fortran

digitalocean.com

11–20 of 38 posts

Re: How Thou Canst Maketh a Fine Program in Fortran

#11

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...

Re: How Thou Canst Maketh a Fine Program in Fortran

#12
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 afternoon, and pick up later additions to the language as you go. In physics, where the focus is getting grad-students to a point where they can do research quickly, having a language they don't have to spend a month figuring out is an advantage.

Re: How Thou Canst Maketh a Fine Program in Fortran

#13
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?

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. :)

Re: How Thou Canst Maketh a Fine Program in Fortran

#14
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…

A lot of very solid code has been written in it over the years and continues to be used as libraries accessed from e.g. R.

Re: How Thou Canst Maketh a Fine Program in Fortran

#15
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…

And COBOL scored higher than Fortran! Interestingly enough, it's still being updated too. COBOL 2014 is the latest ISO standard.

Re: How Thou Canst Maketh a Fine Program in Fortran

#16

Earlier quoted context omitted.

What were the issues with the declensions?

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. :)

Yup, that's about the size of it. Also, "canst maketh" is wrong. "Thou canst make" is correctly conjugated. But I pick nits -- I appreciate the attempt to write about FORTRAN as if one were a 16th century scholar translating the instructions from Aramaic. I had a laugh.

Re: How Thou Canst Maketh a Fine Program in Fortran

#17
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…

Personal experience: My general language-to-go is Python, and I'm very fond of Rust. But Fortran has no competition in numerical computing at native speeds in terms of convenience. I was just recently rewriting a small Fortran library (that I usually but not always call from Python) to C, and it was a pain. So, as a result of that, Fortran is still used heavily in scientific computing. (On the other hand, Fortran is a pain for anything else than numbers and arrays.)

It is also the only language I'm aware of that has a special syntax for distributed memory [1], making parallel distributed computing potentially extremely convenient.

[1] https://gcc.gnu.org/wiki/Coarray

Re: How Thou Canst Maketh a Fine Program in Fortran

#19

Earlier quoted context omitted.

What were the issues with the declensions?

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. :)

doth is 3rd person singular, so maybe dost ? not sure, have to look it up, 20+ years since I was doing this sort of thing in grad school

Re: How Thou Canst Maketh a Fine Program in Fortran

#20

Earlier quoted context omitted.

What were the issues with the declensions?

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" and words like "both" (vs all) and "either" (vs any) are residual traces of this.

https://en.wikipedia.org/wiki/Dual_(grammatical_number)

Post reply on HN