Live data from Hacker News

Ask HN: ChatGPT best programming language to use?

news.ycombinator.com

11–12 of 12 posts

Re: Ask HN: ChatGPT best programming language to use?

#12
post #4
post #2

Rust is a good idea because "does not compile" is better than "contains lots of errors, but compiles/runs anyway". No one should be running ChatGPT-produced code without carefully proofreading it anyway. The training set likely contains more JavaScript than any other language, so the resulting code quality would probably be the best, but JavaScript is also the most tolerant mainstream language and would tolerate a lo…

I thought the same thing about the compiler, but the threads I read said GPT would just make up imaginary crates to use in some cases.

> GPT would just make up imaginary crates to use in some cases

I think this is where trial and error comes into play. If GPT makes up a crate for, say, an HTTP server, and the API is very close to a real HTTP server, then it's not a big deal. You can just swap in a crate you know works.

If GPT is making up a crate and also mangling the use of such a crate, then it's probably not worth the human effort to fix all of that.

The same is true with any language: you'd have to try it a few times to decide if it's even worth the time saved.

Copilot is probably a better product for coding regardless, although I think it's deeply unethical and hope it gets sued out of existence.

Post reply on HN