2 ms·
That's viable only if you're writing the algorithm for academic fun. If you want to check its specific runtime behavior and speed with C++, for incorporation i
by coldtea 10y ago
That's viable only if you're writing the algorithm for academic fun.
If you want to check its specific runtime behavior and speed with C++, for incorporation into a program, then you can't just use ML or Python etc.
- catnaroek 10y agoMLton comes within a factor of 1.5 or 2 of C and C++'s runtime speed, at the price of requiring whole-program compilation and having long compilation times. (Not that C++'s compilation times are blazing fast either.) The implementation of a single algorithm is hardly ever big enough a project for long compilation times to become a serious problem, so this seems like an acceptable tradeoff to me.