4 ms·
> But then you rewrite the whole thing in vanilla Rust without profiling once and it's still 20x faster The main reason Python is used is because developer tim
by albrewer 2y ago
> But then you rewrite the whole thing in vanilla Rust without profiling once and it's still 20x faster
The main reason Python is used is because developer time is expensive and computer time is cheap. When that balance shifts the other way (i.e. the compute slowdown is more expensive then the dev time), Python is no longer the right choice.
There's no point in developing at half speed or less in Rust compared to Python if your code only runs a few times, or if the 20x performance gains only results in 60 minutes of total compute time saved.
- carlmr 2y ago>There's no point in developing at half speed or less in Rust compared to Python In a lot of cases the Rust development speed is faster IME, because you can really get the correctness on the first go much more often than with Python. Also proc-macros make dealing with serialization and deserialization or CLI parameters a breeze.
- albrewer 2y ago> because you can really get the correctness on the first go much more often than with Python Helpful only when you have a full-ish picture of the problem ahead of you and know what's correct when you start programming.