3 ms·
I spent a couple of years working on a Haskell backend and honestly the safety and performance wasn't worth it, compared to the agility of python. Judicious us
by alephu5 5y ago
I spent a couple of years working on a Haskell backend and honestly the safety and performance wasn't worth it, compared to the agility of python.
Judicious use of mypy, unit testing and leaning heavily on the framework can keep things well organised
If you're hitting performance limits you likely have enough revenue to get some extra computing power and this might even be a viable long-term solution. Otherwise you can:
- Build a service in the performant language
- Embed C, Rust or Fortran into python
A full rewrite in a performant language is an option but almost never the right one in my experience. In any case optimise for development agility right now, which includes writing good organised code. You can cross the performance bridge when you come to it.