Live data from Hacker News

What can Rust do for astrophysics?

arxiv.org

111–115 of 115 posts

Re: What can Rust do for astrophysics?

#111
post #108
post #93

Earlier quoted context omitted.

https://news.ycombinator.com/item?id=13636724 Offering context? ;-)

That is a slightly different thing: stable is a perfectly good choice, but one can still debate the fairness or not of being compared to C-with-language-extensions i.e. not standard C (a joke which I think you missed, in one of kibwen's replies).

There are places on the website that abbreviate to "C" or shorten to "programming language", but whenever practical it's more specific - "C gcc" & "programming language implementation".

Re: What can Rust do for astrophysics?

#112

For those who are looking at doing data analysis with Rust in astrophysics, I have a crate fitsio ( https://crates.io/crates/fitsio ) which wraps cfitsio into rust, allowing the reading and writing of .fits files.

and for those doing the same but in Go:

https://github.com/astrogo/fitsio

(a pure Go version)

Re: What can Rust do for astrophysics?

#113

Earlier quoted context omitted.

The code has now been improved with all the suggestion friendly made by the Hacker news and Rust subreddit communities. Thanks!

I just had a look at the Fortran code, and oh boy, it's not pretty, and far from "canonical" Fortran. I will submit a PR (hopefully later tonight) that makes it less ugly and slow. (Protip: don't use if's inside tight loops. Just don't.)

Update: just sent you a PR that reduces the amount of code by ~70% while increasing the speed by ~30% for the Fortran version.

Re: What can Rust do for astrophysics?

#114

Earlier quoted context omitted.

I just had a look at the Fortran code, and oh boy, it's not pretty, and far from "canonical" Fortran. I will submit a PR (hopefully later tonight) that makes it less ugly and slow. (Protip: don't use if's inside tight loops. Just don't.)

Update: just sent you a PR that reduces the amount of code by ~70% while increasing the speed by ~30% for the Fortran version.

Merged! Thank you very much :-)

Re: What can Rust do for astrophysics?

#115
post #96
post #94

Earlier quoted context omitted.

Does current Rust stable provide equivalent SSE support? If so then an equivalent Rust program would be welcome. If not then it's hardly unfair to compare what actually is provided in current Rust stable to what actually is provided in an old C compiler (gcc 5.4.0).

> Does current Rust stable provide equivalent SSE support? Yes, stable Rust provides equivalent SSE support to the language specified as ISO 9899:2011. :P

For those, like me, who missed it - kibwen apparently made a little joke.

Apparently this is just Rust stable not providing the functionality.

Post reply on HN