Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I usually use https://www.taichi-lang.org/ when I need to speed up the code.


That can only accelerate a very limited subset of Python code. For numerical calculations it looks promising, but for a codebase like PyPI's it's probably no use at all.


Right - I'd say Taichi was not designed to accelerate the entire Python codebase. In fact, since Taichi needs to run to GPUs, supporting a very wide range of dynamic features of Python would go in the opposite direction of its original goal (faster compute-intense code such as numerical simulations).

Back to the main thread, I'd say the acceleration in Python 3.11 would benefit Taichi users too - there are still parts of Taichi that runs in Python (such as constructing the AST of computation kernels), which will run faster with 3.11.


This introduces a completely new value stack which is only accessible from taichi and it takes a lot of hacking to pass python objects back and forth between taichi and python so anything you write, you will have to rewrite pretty much everything. It is not just adding a simple decorator to speed things up if your program is just a little more complex than summing numbers.


What does this provide that Numba does not?


Some related discussions are in this article: https://docs.taichi-lang.org/blog/accelerate-python-code-100... - hope that's helpful!


Thank you for that, I had never heard of it


Welcome to give it a shot and let the Taichi community know how you fell about it :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: