An unofficial, read-only Hacker News reader.

I'm Scared of AI (opens external site)

219 points by mgirkins 1 day ago | thesoapbox.email | 255 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. 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.

    Replies (1)
    1. This is an example of the other side of this argument: you learned enough to know what questions to ask by slogging through doing these things manually. Its one thing to be told that optimizing for a smaller big-O is important; its another thing to be _told_ this (and be denied the opportunity to understand the _why_). AI can only provide the latter.

      AI is how we get to "big-O(1) is good because we were told its good"