News for hackers. Stuff that matters.
Re:Fortran 2023 by waynecochran on Wednesday November 22, 2023 @01:05PM (#38382720)
Modern C++ has obviated almost all use cases for pointers. Smart pointers handle 90% of the cases where I would use a ptr. Raw ptrs are just for transient weak ptrs.
Re:Fortran 2023 by pjmlp on Wednesday November 22, 2023 @04:05PM (#38385081)
The problem with modern C++ is that there are several meanings of modern, and lots of classical libraries that aren't being rewritten.
Re:Fortran 2023 by andy99 on Wednesday November 22, 2023 @01:42PM (#38383291)
I've never used modern C++, but I'd be interested to try it just to see what the overhead is in getting started writing some scientific code. When I was in grad school I used mostly Matlab, in which you can write matrix math without really having to learn any "programming". Same for numpy and Fortran. Definitely not for C. What about C++? Even the fact that pointers are being used at all would make it less attractive for a grad student who just wants to multiply some matrices.