You are viewing a single thread.
View all comments View context
1 point
*

A lot of codebases in skuff like fluid mechanics, meterological models, quantum mechanics etc. are still in Fortran. Largely because there is very little to gain from rewriting the code base in some other language.

I would choose Fortran for a new project 0/10 times, but to be fair, it’s a completely viable language for developing complex and computationally intensive models, and it’s better to have the 1-2 new guys learn Fortran every year than to rewrite a 200k line code base in some other language that offers few or no real advantages outside of personal preference.

permalink
report
parent
reply
1 point

Could the advantage be not having to train a small number of folks on some system no one wants to use and has very little utility outside of a few small things?

I’m legitimately asking. I don’t code at all. So, for all I know the answer could be “no.”

permalink
report
parent
reply
2 points

That’s not a bad question! If it were the case that Fortran was a language that had very little utility outside of a few small things that no one wants to use, the cost of training people would eventually surpass the one-time cost of a rewrite.

As it stands however, Fortran is still a perfectly viable language if you know how to use it, and (one of) the de-facto standard in quite a few environments. So even if you re-wrote the code base, your new guys would still probably have to learn it in order to use some common libraries and tools.

Also, it’s hard to overestimate the complexity in this kind of re-write. We’re talking about a lot of code that is written for performance rather than readability, and where the documentation for the algorithms typically is “that article”.

permalink
report
parent
reply
1 point

Thanks! Makes sense to me.

permalink
report
parent
reply

Comic Strips

!comicstrips@lemmy.world

Create post

Comic Strips is a community for those who love comic stories.

The rules are simple:

  • The post can be a single image, an image gallery, or a link to a specific comic hosted on another site (the author’s website, for instance).
  • The comic must be a complete story.
  • If it is an external link, it must be to a specific story, not to the root of the site.
  • You may post comics from others or your own.
  • If you are posting a comic of your own, a maximum of one per week is allowed (I know, your comics are great, but this rule helps avoid spam).
  • The comic can be in any language, but if it’s not in English, OP must include an English translation in the post’s ‘body’ field (note: you don’t need to select a specific language when posting a comic).
  • Politeness.
  • Adult content is not allowed. This community aims to be fun for people of all ages.

Web of links

Community stats

  • 9.1K

    Monthly active users

  • 2.3K

    Posts

  • 45K

    Comments

Community moderators