To compare, the PyTorch repo has ~400k lines of C, ~850k lines of C++ and more than 1.5 million lines of Python code.
PyTorch does more than tinygrad, but does it really do 343x more things?
PyTorch does more than tinygrad, but does it really do 343x more things?
The Python source distribution has long maintained the philosophy of “batteries included” – having a rich and versatile standard library which is immediately available, without making the user download separate packages.
https://peps.python.org/pep-0206/
OTOH:
Simple is better than complex.
Complex is better than complicated.
https://peps.python.org/pep-0020/