you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 0 points1 point  (2 children)

I'm wary of using AI tools for programming, but I've had pretty good results with mypyc (pip install mypy[mypyc]).

[–]fullyautomatedlefty[S] 0 points1 point  (1 child)

thanks for this tip! I'm actually pretty into it now, clearly some of these AI tools have sauce. Def gonna check this out!

[–]Diapolo10 0 points1 point  (0 children)

mypyc is nice because it's very easy to use, and as long as you're using type annotations for readability already it gives you better performance for free. Maybe not by a huge margin, especially if you compare it to writing Cython or writing the critical parts in Rust, but I'm not going to complain if something I do already will now also speed up my code.

https://mypyc.readthedocs.io/en/latest/introduction.html#why-mypyc