5 ms·
I think grep is a compelling example of when it makes sense to do the extra work here. But I'm more dubious of the idea that carefully optimising yes was a good
by zenhack 6y ago
I think grep is a compelling example of when it makes sense to do the extra work here. But I'm more dubious of the idea that carefully optimising yes was a good use of engineering time.
- throwaway_pdp09 6y ago> But I'm more dubious of the idea that carefully optimising yes was a good use of engineering time. I literally can make no sense of that. Why do you think widely used pieces of software should not be well made.
- zenhack 6y agoThere's an opportunity cost. There has to have been a better use of that person's time than taking a tool designed to say yes to repetitive "are you sure?" prompts, and get it to keep up with memory throughput. The throughput of a tool like that does not matter.
- throwaway_pdp09 6y agoHere's the code for it https://github.com/coreutils/coreutils/blob/master/src/yes.c https://github.com/coreutils/coreutils/blob/master/src/yes.c The core is about 70 lines. As for over-optimising it, I think chesterton's fence needs mentioning https://fs.blog/2020/03/chestertons-fence/ https://fs.blog/2020/03/chestertons-fence/ I don't think this is a useful avenue of debate for me.