Re:Is C++ Doomed?
by bodhiandphysics on Wednesday February 23, 2022 @04:22PM
(#30446634)
Finanally, c++ is the only language I would ever want to do linear algebra in, or for that matter, many graph algorithms. Rust is adding features to make it useful for linalg, but it’s not their yet.
Linear algebra is important!
[ Parent
| on HN ]
Re:Is C++ Doomed?
by MetricExpansion on Wednesday February 23, 2022 @11:13PM
(#30450174)
Perhaps syntactically C++‘s operator overloading can make it quite palatable, but C and C++’s unique aliasing rules would mean that a naive implementation could leave performance on the table. There’s a reason it’s almost always Fortran at the bottom of the stack in most LinAlg codes in most languages.
Re:Is C++ Doomed?
by chrisseaton on Wednesday February 23, 2022 @04:23PM
(#30446657)
> Finanally, c++ is the only language I would ever want to do linear algebra in
Isn't something like MATLAB better for linear algebra than C++?
Re:Is C++ Doomed?
by bodhiandphysics on Wednesday February 23, 2022 @04:30PM
(#30446732)
Low level linalg... implementing solvers using openmp and CUDA
Or Fortran or Julia.
Re:Is C++ Doomed?
by bodhiandphysics on Wednesday February 23, 2022 @04:34PM
(#30446797)
I don’t want to use Fortran! Julia is lovely