Taichi Lang is an imperative parallel language inside Python. A JIT compiler offloads heavy numeric code to GPU or CPU backends after you install it with pip.
Overview
Taichi Lang targets high-performance numerical work while keeping a Python-like syntax. Developers decorate functions so a just-in-time compiler can turn them into parallel machine code for selected hardware.
SNode fields model hierarchical, multi-dimensional data, including patterns useful for sparse spatial simulations. Supported compute backends named in the docs include x64 and ARM CPUs, CUDA, Vulkan, OpenGL, Apple Metal, and experimental WebAssembly.
The project emphasizes portability across APIs and integration with NumPy, PyTorch, matplotlib, and pillow. Automatic differentiation and sparse data structures appear in published examples for robotics, fluids, rendering, and vision pipelines.
Ahead-of-time compilation is offered for shipping binaries on platforms without a Python runtime, including PCs and mobile targets. Gallery and tutorial material walk through fractals, voxel rendering, and simulation demos from a standard pip install.
Key features
- Python-like syntax with kernel decorators
- JIT compilation to GPU or CPU
- Hierarchical SNode field containers
- CUDA, Vulkan, Metal, and CPU backends
- NumPy and PyTorch interoperability
- Automatic differentiation support
- Spatially sparse data structures
- Ahead-of-time deployment mode
Use cases
- Real-time physics and fluid simulation
- GPU rendering and voxel art prototypes
- Computer vision and LiDAR SLAM research
- Differentiable robotics control experiments
- Large-scale particle simulations on GPU