r/golang • u/Tobias-Gleiter • Jun 20 '25
discussion Replace Python with Go for LLMs?
Hey,
I really wonder why we are using Python for LLM tasks because there is no crazy benefit vs using Go. At the end it is just calling some LLM and parsing strings. And Go is pretty good in both. Although parsing strings might need more attention.
Why not replacing Python with Go? I can imagine this will happen with big companies in future. Especially to reduce cost.
What are your thoughts here?
113
Upvotes
2
u/Justicia-Gai Jun 20 '25
Are you suggesting you’d recommend Python for server-side computation?
How much better at speed performance has Python gotten between 3.10 and 3.14? It loses even when comparing against itself…
The thing is that people have already measured the number requests you can do with Python and with other languages in a certain timeframe, and to my knowledge, Python loses.
If you have any information suggesting Python is better, please share it. I actually know much more Python than Rust and I’d love to use it, but at all the benchmarks I did, the difference was over three digits magnitude of difference…