Top
Best
New

Posted by indigodaddy 1 day ago

If AI writes your code, why use Python?(medium.com)
891 points | 946 commentspage 16
odiroot 1 day ago|
Because I don't only write the code. I will also read it, many more times.
grigio 1 day ago||
Because the training set is very good. Then ask to rewrite in rust
trelliumD 1 day ago||
i would say that object pascal is the clear winner in terms of readability, performance and ease of review bc of the static types.
john_builds 1 day ago||
Honestly use code that you're familiar with. Being able to understand and debug is critical even with AI as it can fall into a weird loop
dandanua 1 day ago||
You can also use Julia. It is both easy for humans to write and read and for AI to generate because of the sane and powerful type system.

However, I expect that in the future some new language will take this role of dual use.

trelliumD 1 day ago||
object pascal is by far superior in combining readability and performance. also the static type system is a huge bonus
jpgvm 1 day ago||
This is a fairly crap post and the reasoning isn't sound but somehow the conclusion is still somewhat correct.

You do want to use Rust with LLMs.

The reason you want it is simple, it's more constrained.

LLMs thrive on constraint and drown in freedom.

The further you can constraint the solution space the more likely you are to end up with a solution you like/is actually good.

Rust has several properties that make it really good for LLMs:

* Really robust type system that is also very expressive, if guided LLMs can implement most of the invariants in types which substantially increases the chances of success.

* Great compile time errors, the specificity and brevity (vs say C++ template expansion) means token efficient correction of syntax and/or borrow mistakes etc.

* Protection against subtle errors at compile time, namely data races and memory safety issues.

* Great corpus of well designed code and patterns, higher quality on average than some other ecosystems more favored by begineers/mass-market programming.

* Stdlib is strong, small-ish number of blessed crates.

* Context friendly, type signatures, errors, etc are all dense information.

* Also bias towards compile time checks means less runtime tests which means less toolcall time (and less tests needed overall) which in turn makes the process a ton faster.

I have been continually using Rust, Python and Kotlin since ~Jan this year and keeping track of my thoughts and I increasingly bias towards Rust now where I would have previously chosen Python or Kotlin instead just because I am lazy and I prefer the tool that the computer writes better so I have to write less lol.

scotty79 10 hours ago||
I tried using Rust but the development just seemed too slow. C# gets you good results form AI.
stuaxo 1 day ago||
Devs still have to maintain this code, the Python devs can definitely get the LLM to write (some kind of) Rust, but when it goes wrong and you hit the wall with the LLM then they can will have to learn Rust which might take a while, this sounds like a bit of a project risk.
sixdimensional 1 day ago|
First one to vibe code a language for LLMs, by LLMs, wins a cookie?
More comments...