News for hackers. Stuff that matters.
Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by Quekid5 on Monday August 21, 2023 @06:52AM (#37207752)
This is about changing the sorting algoritm. No snark needed. It should be trivial to add a test for the current algorithm (whenever it was introduced) and to replace it afterwards. Heck, even keep running both for bisimulation testing.
Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by kragen on Monday August 21, 2023 @07:06AM (#37207885)
probably colin was more interested in booting faster than in improving testing infrastructure

if your interests run the other way, that's great, and hopefully you will succeed in improving freebsd's testing infrastructure, but it's hardly a reason for colin not to speed up booting

but i don't think i saw anyone claiming that the change should not be made because it wouldn't be adequately tested?

Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by Quekid5 on Monday August 21, 2023 @05:38PM (#37215692)
I don't think you fully read the post I was replying to. I was just saying that that poster's argument against changing the sorting algorithm was misguided.

Quote:

> will be reviewed and tested by 200 people before it reaches production

I was only saying that this is a bad argument for any simple-ish sorting algorithm.

(Granted, if you're doing super-complicated sorting algos with fallbacks for different sizes, heurestics for detecting semi-sorted input, etc. you might want something more sophisticated than trivial property-based checking.)

Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by kragen on Monday August 21, 2023 @08:41PM (#37217155)
i read that as an argument against having done it that way 30 years ago, not against changing it
Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by Quekid5 on Wednesday August 30, 2023 @05:46PM (#37329592)
No worries!