Live data from Hacker News

What can Rust do for astrophysics?

arxiv.org

91–100 of 115 posts

Re: What can Rust do for astrophysics?

#91
post #74
post #52

Earlier quoted context omitted.

In most of those benchmarks rust is slower because it lacks SIMD support, not because of compiler optimizations.

Or rather, Rust is slower on those because SIMD is currently only supported on nightly, and the benchmarks game chooses to use stable Rust exclusively.

1. Have those Rust programs already been rewritten to use SIMD and measured ?

2. How many years already has SIMD not supported on stable been posted as a response in these discussions ?

Re: What can Rust do for astrophysics?

#92
post #91
post #74

Earlier quoted context omitted.

Or rather, Rust is slower on those because SIMD is currently only supported on nightly, and the benchmarks game chooses to use stable Rust exclusively.

1. Have those Rust programs already been rewritten to use SIMD and measured ? 2. How many years already has SIMD not supported on stable been posted as a response in these discussions ?

1. Yes, but nobody's bothered to submit them because there's no point.

2. 1.75, which is coincidentally how long a stable version of Rust has existed. :P

Re: What can Rust do for astrophysics?

#93
post #86
post #76

Earlier quoted context omitted.

I also don't work with VS Release Candidates for production code, as such I think it is faire to use only stable Rust.

From what I've seen, most of the Rust community agrees that using stable a perfectly fine choice; kibwen is offering context, not complaining.

https://news.ycombinator.com/item?id=13636724

Offering context? ;-)

Re: What can Rust do for astrophysics?

#94
post #75
post #26

Earlier quoted context omitted.

It's 64 lines of rs, hardly enough to demonstrate anything for the real use, and it's suspiciously badly written, if I understand correctly: The C code: void integrator_leapfrog_part1(int n_particles, double x[][3], double v[][3], double half_time_step){ for (int i=0;i The Rust code: const N_PARTICLES: usize = 2; ... fn main() { ... while time The way I understand it, with the C code the compiler during the compilati…

>The N-Body on this site As noted elsewhere in here, the C implementation is using SSE, whereas the Rust implementation isn't. It's just as much of an unfair comparison as the one you're describing. :P

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

Re: What can Rust do for astrophysics?

#95
post #92
post #91

Earlier quoted context omitted.

1. Have those Rust programs already been rewritten to use SIMD and measured ? 2. How many years already has SIMD not supported on stable been posted as a response in these discussions ?

1. Yes, but nobody's bothered to submit them because there's no point. 2. 1.75, which is coincidentally how long a stable version of Rust has existed. :P

I hope that one-day real-soon-now the much talked of SIMD support makes it into Rust stable.

Re: What can Rust do for astrophysics?

#96
post #94
post #75

Earlier quoted context omitted.

>The N-Body on this site As noted elsewhere in here, the C implementation is using SSE, whereas the Rust implementation isn't. It's just as much of an unfair comparison as the one you're describing. :P

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

Re: What can Rust do for astrophysics?

#97
post #95
post #92

Earlier quoted context omitted.

1. Yes, but nobody's bothered to submit them because there's no point. 2. 1.75, which is coincidentally how long a stable version of Rust has existed. :P

I hope that one-day real-soon-now the much talked of SIMD support makes it into Rust stable.

There's a pre-RFC being passed around privately right now, I'm happy to say that your cherished dream will soon become a reality. :)

Re: What can Rust do for astrophysics?

#98
post #76
post #74

Earlier quoted context omitted.

Or rather, Rust is slower on those because SIMD is currently only supported on nightly, and the benchmarks game chooses to use stable Rust exclusively.

I also don't work with VS Release Candidates for production code, as such I think it is faire to use only stable Rust.

Indeed, though I (perhaps optimistically) expect SIMD to be stabilized on Rust this year. :)

Re: What can Rust do for astrophysics?

#99
post #97
post #95

Earlier quoted context omitted.

I hope that one-day real-soon-now the much talked of SIMD support makes it into Rust stable.

There's a pre-RFC being passed around privately right now, I'm happy to say that your cherished dream will soon become a reality. :)

My cherished dream is no more "because SIMD is currently only supported on nightly" excuses :-)

Re: What can Rust do for astrophysics?

#100
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

In which case -- an equivalent Rust program would be welcome.
Post reply on HN