Hacker News new | ask | show | jobs
by lukeschlather 5 days ago
I never had the time to really truly care about how sorting algorithms work before. I use the library sort. If I'm lucky I take some time to do some tuning and make sure there's not a better library sort for the usecase.

With AI I can idly suggest the AI try every single library sort and benchmark them while I go to get a drink. I'm still not sure I really understand how the sorting algorithms work, but I have a lot more confidence I'm using them correctly.

1 comments

Seeing people on HN pride themselves on being completely incurious is a real sign of the times changing I suppose.

Like I don't consider myself exactly a smart person, but I strive to understand how things work because why shouldn't you? Why shouldn't we know how our computers work, how our cars work. That knowledge is how you obtain some level of freedom.

If you think I'm being incurious you're not understanding me. I have much stronger understanding of my tools because of AI, and I am indulging my curiosity much more often than I did before I had LLMs to investigate everything that seems interesting to me. There are never enough hours in the day to learn everything, but LLMs let me learn a lot more.
> With AI I can idly suggest the AI try every single library sort and benchmark them while I go to get a drink.

Unless you're reading DSA at the bar while AI tries its thing, then you're not developing understanding; you are offloading. This is fine until it's not.

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.

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"

AI can explain the why. You need to use judgement to decide if it's right or not, but you can absolutely learn these things, and you have functional code that you can take apart and test to validate your understanding.

If you're just taking the AI's statements for granted, sure, you learn nothing, but you don't have to do that.

I don't see it as incurious at all. It's deciding what to be curious about when there is only so much time in the day. How much software have you built using only agents and not writing a single line of code?
Sounds like a way to spend a lot of time and energy digging into minutia and details that aren't of the highest practical relevance to whatever you are supposed to be working on.