News for hackers. Stuff that matters.
Re:62% of code generated by GPT-4 contains API misuses by beatthatflight on Sunday August 27, 2023 @09:48PM (#37288710)
I've used it for performance boosts. It's not perfect, but if I paste a method (my own code) and say 'rewrite in fewer lines' to simplify, or 'rewrite to run faster', I've been in awe at what it comes up with that hadn't occured to me. Tricks in python I wasn't aware of, or hadn't considered using a different datastructure that can be searched faster (for some reason my brain always defaults to lists, when a set may be better, for example). It absolutely makes errors though, so unit tests are critical, but I've got code running so much faster as a result.

There are no comments on this comment yet.