News for hackers. Stuff that matters.
Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by IshKebab on Monday August 21, 2023 @01:09PM (#37212378)
> the facilities to support your general language / runtime environment is not up yet.

What facilities does Rust's sort require? It probably just needs a bit of stack but that's it.

That qsort implementation doesn't look like it needs anything either tbh, though I only skimmed it.

Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by throwawaylinux on Monday August 21, 2023 @10:20PM (#37217845)
Not sure, the qsort is recursive and stack limitations were mentioned. But the point being that the reason they don't use their library functions because it's a constrained environment.

Maybe they could permit some of their sort library functions to be used in such a constrained environment, sure. Don't need rust to do that, just need to be happy that the implementation is suitable for purpose. Which they would have to do regardless of what language and runtime they were using.