56 points mococa 36 minutes ago 9 comments

glouwbug 15 minutes ago | parent

Very nice. Let's see Paul Allen's quicksort

moralestapia 14 minutes ago | parent

Very nice, curious to see if something like this could be largely AI-driven optimizations (for other kinds of code).

Seems to me like the answer is yes, given that there's extensive documentation and code samples related to AVX instructions.

Edit: Downvotes why? Don't worry, expected from this site, but at least learn to construct an argument. This was written in 2022, there's a world of difference in model capabilities to today.

kg 12 minutes ago | parent

(2022)

If you're curious why you would want a vectorized way to sort lists of numbers, one use case is building histograms - it's much easier to build a histogram if you've sorted all your samples first

mcdonje 3 minutes ago | parent

>(2002)

I wonder what apps have implemented this now that a few years have passed.

tucnak 12 minutes ago | parent

Who would've guessed? SIMD is so boring.

sigbottle 5 minutes ago | parent

Honestly part of me feels that way about way too many things in retrospect about my own life and interests.

Flex247A 3 minutes ago | parent

time to log off

cs702 5 minutes ago | parent

Hadn't seen it until now. Open-source. Immediately usable. It will find its way to every place in which it can be used. Very nice! A big THANK YOU to the developers.

bananaflag 4 minutes ago | parent

My first thought was "but doesn't quicksort already work with vectors?"