News for hackers. Stuff that matters.
Re:Twelve Years of Go by bobbylarrybobby on Wednesday November 10, 2021 @03:10PM (#29179973)
I think a lot of that is that Python doesn't launch a server that handles code analysis/formatting requests, so every time you want to do another round of things-to-do-on-save, they all have to do be done more or less from scratch (some info can be cached between runs, but if you're launching a Python process that's like 100ms right there...). I imagine if there were a Python code server that handled formatting and type checking without ever shutting down, it would be quite speedy.
Re:Twelve Years of Go by bombela on Wednesday November 10, 2021 @03:22PM (#29180158)
I have some sort of python language server running with neovim to highlight type errors. This is definitively not fast to add errors. But being asynchronous it's palatable.
Re:Twelve Years of Go by MapleWalnut on Wednesday November 10, 2021 @03:28PM (#29180252)
Mypy provides a server to help with this called dmypy: https://mypy.readthedocs.io/en/stable/mypy_daemon.html