3 ms·
I agree. I often use it as if it is a code generator with a decent grasp of human language. Here is what I asked it to do the other day, and it just did it rig
by therein 3y ago
I agree. I often use it as if it is a code generator with a decent grasp of human language.
Here is what I asked it to do the other day, and it just did it right away and got it entirely right.
> Write async tokio Rust code that takes in a Vec<u8>, writes it to a temporary file, calls /usr/bin/svc infer pathToTemporaryFile, reads and deletes temporaryFile+".out" and returns Result<Vec<u8>> containing the contents of temporaryFile+".out"
I knew what I wanted, I could have written it myself, there was no unknown but it took fewer keystrokes and honestly when asked to write small components like this with pedantic detail, it does an incredible job and the output is easy to validate quickly.
- karmakaze 3y agoIf this is a good example of using ChatGPT for writing Rust, I suspect that the problem may be with Rust async.