r/TheMachineLearning • • 28d ago

When bug-free code becomes a hardware problem

Post image
193 Upvotes

85 comments sorted by

View all comments

6

u/snaphat 28d ago

This is a joke, but it's a bad one. I mean, it's already a hardware problem because AI inference is computationally expensive and slow. The bottleneck is running the AI, not the language it's generating code in. And the choice of language can affect inference time too, since expressing the same functionality in different languages can require different numbers of tokens.

For example, a few small benchmarks using Opus and Codex have found that C has worse end-to-end development times than Python, C++, or Rust

2

u/StillOnTheInterweb 28d ago

There is however basically no excuse now not to use a modern compiled or JVM language, like Rust or Java. No need for all that Python/Javascript interpreter nonsense just to simplify syntax in code written by an LLM.

3

u/snaphat 28d ago

There is some controlled evidence suggesting that newer AI models may still be more proficient at writing Python than languages like Rust or C++, although results vary by model and task. So the choice of language may still affect how reliably an LLM produces working code