Re:Rewriting Fortran Software in Rust
by classified on Wednesday July 15, 2020 @12:34PM
(#23847642)
I came here to ask whether your typical Fortran program would carry the coding security risks that Rust is designed to mitigate; I couldn't think of any. Your comment seems to confirm my doubts.
[ Parent
| on HN ]
It probably wouldn't have affected my work at all. We were running our code as a monolith - it was the only thing that ran on any given machine, and its output was stored on a large filesystem on NFS.
That's not to say there isn't someone out there with this concern :)
Re:Rewriting Fortran Software in Rust
by mumblemumble on Wednesday July 15, 2020 @12:57PM
(#23848000)
https://www.fortran.io/
For example.
More seriously, I could imagine a security flaw in numpy wreaking all sorts of havok. But it's also somewhat difficult for me to imagine that there are any security vulnerabilities left in BLAS. But then I remember Heartbleed.
I think „coding security risks“ referred to language properties that increase the likelihood of introducing bugs in a general sense, not in terms of cyber security/hacking.
Memory errors also affect correctness.
Forgetting to initialize that last entry or initializing one too many entries by accident can cause random, very hard to track down, issues.
Security? Perhaps if your code is pulling chunks of data from a cloud source?
Re:Rewriting Fortran Software in Rust
by classified on Friday July 17, 2020 @05:35AM
(#23868844)
You are right, I forgot to mention correctness.