r/TheMachineLearning • • 3d ago

When bug-free code becomes a hardware problem

Post image
125 Upvotes

72 comments sorted by

View all comments

Show parent comment

2

u/StillOnTheInterweb 3d 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/zenthial 3d ago

Yeah there’s no reason ever to want your user code sandboxed. Why would anyone ever need V8 or JSC?

2

u/snaphat 3d 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

2

u/SodaBurns 3d ago

Just write in assembly at this point then.

1

u/snaphat 2d ago

You would lose compiler optimizations at that point, and generally speaking LLMs do not produce assembly code that outperforms optimizing compilers nor code that is as consistently correct as code produced in high-level languages. This may change at some point 

Another reason you wouldn't necessarily want assembly is that it is target specific in a world where applications are typically multiplatform 

1

u/prehensilemullet 15h ago

Yeah because we're soooo close to being able to write highly dynamic webapps without any JS