|
|
|
|
|
by lukeschlather
6 days ago
|
|
So, the sort of thing I do is, I have something I want to do (say I need to sort some objects.) I have the AI generate 10 different versions of the sorting function. I ask it to consider different things like memory locality, caching behavior, etc. and suggest algorithms. I review the algorithms it gives me, I suggest several alternatives. I have it implement and run benchmarks, then I review the benchmark data, try the "good" implementations out myself and consider which one to use. I can do this in less time than it would take me to implement a single algorithm, even if we ignore the time to read DSA. And I don't necessarily know how to implement my favorite sorting algorithm by hand after, but that's not the thing that interests me, it's which implementations are correct and performant for the sort of use cases I have that interests me. |
|
AI is how we get to "big-O(1) is good because we were told its good"