by astee · 3y ago · 0 comments
It will give incorrect code, but you can guide it toward a correct solution by asking it to fix the problem. Normally you don't even have to say exactly what is wrong.
For example, I got it to implement a basic bittorrent tracker server in Go in about 5 minutes. I didn't even have to point it to the RFC. I just said to consult the bittorrent RFC. It gave me back a server with /announce and /scrape endpoints. I then asked it to implement the functions using a struct for the requests. It correctly deserialized the URL-encoded sha1 info hashes from the /announce endpoint on the first try. I didn't even have to mention that detail.
It can also help you explore solutions. I asked it about algorithms to learn policies for 2-player zero sum games. It gave me a description of min-max, MCTS, reinforcement learning, deep neural networks. I then asked it to describe the pros/cons of each, which it did. I asked it to show an example of a reinforcement learning algorithm in python from scratch, which it did in about 10 seconds.
And that's the point: it won't work for most "new" stuff. But a lot of the code I write for work has been written before by someone else, so I can benefit from this. Looks to me as if this is essentially a form of swarm intelligence in the end.
That’s the thing of industrial revolutions. People believed it would kick humans out of the loop, when in fact it allows single persons to become entrepreneurs.
The other side effect is, we don’t use these performance gains to work less, but to produce more. Only, this time, ecologists are triggering the alarm because producing more means pulling resources from the Earth, so for the first time ever, we might see people working actually less.