ChatGPT Is an Extra-Ordinary Python Programmer
davidamos.dev
ChatGPT Is an Extra-Ordinary Python Programmer
1–10 of 10 posts
Re: ChatGPT Is an Extra-Ordinary Python Programmer
#2Re: ChatGPT Is an Extra-Ordinary Python Programmer
#3You were too harsh on ChatGPT, by calling it rubbish, after it tried so hard.
Re: ChatGPT Is an Extra-Ordinary Python Programmer
#4Re: ChatGPT Is an Extra-Ordinary Python Programmer
#5Re: ChatGPT Is an Extra-Ordinary Python Programmer
#6My biggest complaint with all these AI coding tools is that they fail to make use of types; types would allow you to filter many incorrect outputs trivially by type checking it. If you go all the way to dependent types, you could even make it prove that the code is correct. If it's not correct, it won't type check. No need for the human to check anything beyond the types.
Re: ChatGPT Is an Extra-Ordinary Python Programmer
#7My biggest complaint with all these AI coding tools is that they fail to make use of types; types would allow you to filter many incorrect outputs trivially by type checking it. If you go all the way to dependent types, you could even make it prove that the code is correct. If it's not correct, it won't type check. No need for the human to check anything beyond the types.
I mean, there are (2^32)^(2^32) functions matching (int)->int, and many of them are both important and vastly more complicated if you ramrod them into a "types uniquely define behavior" mindset. Such issues become more common as code grows more complicated. You can alleviate a ton of problems by using the type system to assert a list is sorted or a string is HTML-escaped or whatever, but the general case is both very…
Re: ChatGPT Is an Extra-Ordinary Python Programmer
#8Re: ChatGPT Is an Extra-Ordinary Python Programmer
#9But adding one additional line: "Plan out how you plan to solve each task before writing the code."
https://twitter.com/Claybight/status/1625225378515021824
It manages to do the job without hassle.
Re: ChatGPT Is an Extra-Ordinary Python Programmer
#10My biggest complaint with all these AI coding tools is that they fail to make use of types; types would allow you to filter many incorrect outputs trivially by type checking it. If you go all the way to dependent types, you could even make it prove that the code is correct. If it's not correct, it won't type check. No need for the human to check anything beyond the types.
I mean, there are (2^32)^(2^32) functions matching (int)->int, and many of them are both important and vastly more complicated if you ramrod them into a "types uniquely define behavior" mindset. Such issues become more common as code grows more complicated. You can alleviate a ton of problems by using the type system to assert a list is sorted or a string is HTML-escaped or whatever, but the general case is both very…
In natural language, it might suffice to say "implement multiplication", but this is because it _knows_ what multiplication is beforehand. If it did not, and only knew how to code, you would effectively have to restate the exact same properties. This will more often be the case when you're not dealing with trivial examples.