Hacker News new | ask | show | jobs
by iagiagiag 13 days ago
I recently did it only for speed honestly. Python is quite slow in many cases, like a small operation on millions of lines of text. I tried the rust version and it removed that bottleneck, it's quite easy with AI. It's mostly for manipulation of strings, for math we already have numpy, numba, pytorch etc.

But in many cases a rust version already exists (like for tokenization etc.). I wouldn't advise to write it yourself if a supported repo is already doing it.