(no title)
Karunamon | 1 year ago
https://chat.openai.com/share/371863ec-edbd-4454-8b19-382035...
Here is an example of the kind of scripting I do regularly with ChatGPT. I cannot speak to its capabilities with Go, but it is quite proficient at Python.
sgarland|1 year ago
If you start getting into more esoteric edges of Python, like SharedMemory, ChatGPT quickly falls apart. Or, more relevant to your example, using carriage return to overwrite text for a progress indicator – works great, very simple. Until you try to use it through subprocess. To ChatGPT’s credit, it eventually came up with using pty, which with some massaging, I got to work.
I’m not saying it isn’t useful – far from it. It’s just that on anything modestly complicated, you sometimes have to spend more time fiddling with the prompt than if you just sat down and wrote the code. Another example that comes to mind was implementing a B+tree in pure Python. I know how they work, and wanted to see if ChatGPT could figure it out. You’d think so, right? But no, it kept getting stuck on node splits.
Karunamon|1 year ago
It doesn't mean you can turn your brain off and just mindlessly copy and paste whatever gets output, but for basics and boilerplate it's a massive time save, and I only foresee the capabilities getting better over time. It's just that comments like the one I was replying to come off as childishly throwing one's toys out of the pram because they are imperfect.
Closi|1 year ago
Future generation AI's are highly likely to have more capability though - I wouldn't bet the house on the current state being the future state.