3 ms·
> Yes, if you don't know Rust, and you think it's just a weird re-skin of C++ that can be gsub'd from one to another, you're going to have a bad time. most C++
by jcelerier 5y ago
> Yes, if you don't know Rust, and you think it's just a weird re-skin of C++ that can be gsub'd from one to another, you're going to have a bad time.
most C++ code is not "idiomatic C++" either, it's code which looks like this:
https://github.com/cdemel/OpenCV/blob/master/modules/calib3d/src/epnp.cpp#L49 https://github.com/cdemel/OpenCV/blob/master/modules/calib3d...
or this
https://github.com/madronalabs/madronalib/blob/master/source/matrix/MLMatrix.cpp#L769 https://github.com/madronalabs/madronalib/blob/master/source...
or this
https://github.com/MTG/essentia/blob/master/src/3rdparty/spline/splineutil.cpp#L1925 https://github.com/MTG/essentia/blob/master/src/3rdparty/spl...
etc ... which is in general code from science papers written in pseudocode which is ported at 2AM by tired astrophysics or DSP masters students to have something to show to their advisor. You can have whatever abstraction you want but they won't be used because the point is not to write rust or C++ or anything but to get some pseudo-MATLABish thing to run ASAP, and that won't have anything that looks like range / span, only arrays being indexed raw.