r/CFD • • Feb 03 '21

[February] Programming languages for CFD

As per the discussion topic vote, February's monthly topic is "Programming languages for CFD"

User /u/SignificantCell2 asked for Rust experiences, but that sounded overly specific so i op'ed'd it into this.

Talk about your experiences and preferences with various programming languages in the context of CFD programming.

43 Upvotes

72 comments sorted by

View all comments

Show parent comment

1

u/Underfitted Feb 07 '21

Rust is the futuuuuuuuuuuure!

More seriously, Rust seems like the successor for C++ that everyone secretly wished for but no one really wants to move to.

Julia is in a weird spot of trying to usurp Python which is already in the slow process of trying to usurp academia from C++, which is in the slow process of trying to usurp FORTRAN, and which it can't really since it doesn't scale as well as C++ unless it uses C libraries wrapped up.

I remember the recent Julia con highlighting CFD as one of the use cases for Julia, so it can work.

The you have the real weird stuff like OCaml and PASCAL, whose fans are adamant is the superior branch? I dunno. Can someone please create an AI that can translate a codebase from one language to another.

0

u/Yoramus Feb 12 '21

There is also nim that is in the slow process of trying to usurp rust that is in the slow process....

But actually zig is in the slow process of trying to usurp nim...

project Verona came that butchered zig, that drank nim, that put out rust, that burned C++... oh sorry

2

u/picigin Feb 13 '21

This is not a competition