3 ms·
I usually use https://www.taichi-lang.org/ https://www.taichi-lang.org/ when I need to speed up the code.
by melony 4y ago
I usually use https://www.taichi-lang.org/ https://www.taichi-lang.org/ when I need to speed up the code.
- nevernever 4y ago
- jamespo 4y agoThank you for that, I had never heard of it
- yuanminghu 4y agoWelcome to give it a shot and let the Taichi community know how you fell about it :-)
- mkl 4y agoThat 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.
- yuanminghu 4y agoRight - 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.
- nurettin 4y agoThis 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.
- nerdponx 4y agoWhat does this provide that Numba does not?
- yuanminghu 4y agoSome related discussions are in this article: https://docs.taichi-lang.org/blog/accelerate-python-code-100x https://docs.taichi-lang.org/blog/accelerate-python-code-100... - hope that's helpful!