Re:Ask HN: Why are a lot of AI projects written in Python?
by jstx1 on Friday October 28, 2022 @04:21AM
(#33368927)
The best libraries are in Python.
> Curious that since a lot of things are popularly rewritten in Rust or Zig, why has this not happened on these types of projects?
1. It's a lot of work and you need to good hardware support. There are lots of people putting in a lot of work into PyTorch, TensorFlow, JAX etc.
2. Some things have been rewritten, mostly as hobby projects.
3. Even if you rewrote most of this sutff, it would be likely be more difficult to use. Writing Rust is a completely different experience from writing Python + PyTorch/TensorFlow.
4. Zig is a thing only on HN and in similar mini-bubbles. Hardly anyone has even heard of Zig, let alone considering to rewrite anything in it.
> Curious that since a lot of things are popularly rewritten in Rust or Zig, why has this not happened on these types of projects?
1. It's a lot of work and you need to good hardware support. There are lots of people putting in a lot of work into PyTorch, TensorFlow, JAX etc.
2. Some things have been rewritten, mostly as hobby projects.
3. Even if you rewrote most of this sutff, it would be likely be more difficult to use. Writing Rust is a completely different experience from writing Python + PyTorch/TensorFlow.
4. Zig is a thing only on HN and in similar mini-bubbles. Hardly anyone has even heard of Zig, let alone considering to rewrite anything in it.