News for hackers. Stuff that matters.
Re:Why we chose Rust by Waterluvian on Thursday June 20, 2019 @07:01PM (#20238274)
Off topic nitpick: I wish Python stopped being added to these kinds of performance lists. Python isn't a poor tool for those kinds of problems, it's the wrong tool. And I don't mean, "oops you locked yourself into the wrong language." I mean that valid Python is Python that calls into a language like C or Rust when there's performance needs. Numpy and Scipy are, I'm going to bet, mostly C.

Imagine I did a comparison of the fastest way to cut a board lengthwise. And my comparison was using a table saw, a jigsaw, a circular saw, and a planer. Actually, that sounds dumb enough that I kind of want to do that. All the worst ways to rip a board.

Re:Why we chose Rust by tylerhou on Thursday June 20, 2019 @07:11PM (#20238361)
> Numpy and Scipy are, I'm going to bet, mostly C.

You'd be surprised; About 25% of SciPy (much of the numerical computing portions) are in FORTRAN. It turns out that decades of compiler/numerical computing research has made the FORTRAN compiler generate numerical code which runs faster than GCC/Clang today.

https://github.com/scipy/scipy

Re:Why we chose Rust by cyphar on Thursday June 20, 2019 @09:48PM (#20239180)
Most people use the GCC Fortran front-end. I think the main reason you get speed from Fortran is because it provides more hints to the compiler, but also because generations of PhD students have been optimising compilers for Fortran-specific performance gains.
Re:Why we chose Rust by pjmlp on Friday June 21, 2019 @02:35AM (#20240363)
People that care about Fortran performance use Intel, PGI, IBM compilers.
Re:Why we chose Rust by cyphar on Friday June 21, 2019 @03:01AM (#20240511)
Maybe, but most people who are using numpy are probably using their Linux distro's package for it (or the pip package) which means it's being compiled using GCC.
Re:Why we chose Rust by pjmlp on Friday June 21, 2019 @03:39AM (#20240667)
Depends if they work on HPC environments or not.
Re:Why we chose Rust by Waterluvian on Thursday June 20, 2019 @07:14PM (#20238374)
Wow. That's a really cool thing to see. Thanks for sharing. So Python bindings around Fortran. Cool.
Re:Why we chose Rust by cyphar on Thursday June 20, 2019 @10:05PM (#20239257)
MicroPython is a wholesale rewrite of Python to be suitable for microcontrollers. I imagine this is the reason it was included in a comparison for languages to be used for an SoC. From memory, the ESA (European Space Agency) uses it for some of their projects.