4 ms·
2x is probably both ambitious and not a game changer. If I had to choose between 2x faster Python and a modicum of static safety, I’d choose the latter. Nothin
by rich_sasha 6y ago
2x is probably both ambitious and not a game changer.
If I had to choose between 2x faster Python and a modicum of static safety, I’d choose the latter. Nothing worse than running a slow process for half a day, only to find out you mistyped “pickle.dump” at the end. I know type hints are there, but somehow they never save me from such errors.
- cozzyd 6y agoYes this is the worst. Writing a long-lived daemon in Python is a painful excercise in slowly funding all the typo errors in the rarely executed code paths.
- smitty1e 6y agoPytest isn't everything, but it does help.
- CodeGlitch 6y agoYeah but having to write tests means you lose the advantage of python's quick turnaround
- coldtea 6y ago>only to find out you mistyped “pickle.dump” at the end. I know type hints are there, but somehow they never save me from such errors. You don't need type hints for that, any old Python linter would have spotted this error...
- rich_sasha 6y agoThat, fine. What if you swap the file and the object? Etc. Linters help, but there is so much they don’t catch in practice.
- rbanffy 5y agoUnit tests should flag that.