Live data from Hacker News

Ask HN: ChatGPT best programming language to use?

news.ycombinator.com

1–10 of 12 posts

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

#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 lot of runtime errors.

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

#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.

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

#10

It generates pretty good Typescript, if it doesn't select a deprecated library.

Yeah, I've noticed that too. Its code is generally alright, but it has a habit of picking outdated / deprecated / poorly maintained libraries.

I wonder if that's because it's not weighting by recency in it's training or something.

Post reply on HN