Using Gemini to do a large and tedious Rust refactor. It is going so-so.

I've given it the "before" method and an example "after" method, and then paste in "before" methods and asking it to translate.

On the one hand it's impressive it can do this at all - it actually provides reasonable results.

However on the whole I've gone back to making mannual edits and search and replace.

On one hand this is because copy-pasting between editor and web is tedious. Of course, editing by hand is also tedious, but it would be nice if I could reduce the tedium. I don't think CoPilot can do something like this - would be great if you could ask it to rewrite selected code according to prompt. I don't think CoPilot chat can do this, though I haven't tried very hard. It kept wanting to generate new code.

Gemini also keeps adding pointless comments, no matter how many times I ask not to add comments. I then have to go and delete those. More tedium!

Sometimes it does weird things, like insisting that two methods are the same when they clearly aren't, and then refuses to refactor the first method.

It also insists on explaining itself. I can get it to stop for a short while using prompts like "don't explain yourself, I am an expert", but it always goes back to its rather patronizing self.

Finally, it does make quite a few small and hard to notice mistakes, so I need to double check.

At the end of the day, I just felt like it wasn't really gaining me any time or make it any less tedious. It was, however, different and in that sense was a sort of relief from the tedium of search/replace and manual edits.

FIN