News for hackers. Stuff that matters.
Re:American Flag Sort by dsamarin on Wednesday April 24, 2024 @12:00AM (#40140409)
The obvious solution to this is to pre-compile a list of all possible Unicode strings up to the required length, sort them, and create a lookup table using their indices. I wonder for what kind of project this would be useful.
Re:American Flag Sort by thfuran on Wednesday April 24, 2024 @09:16AM (#40144022)
If that works for you for anything but very small strings, I want to buy your computer.
Re:American Flag Sort by remram on Wednesday April 24, 2024 @02:06PM (#40147692)
Even for 3-codepoint strings it already wouldn't fit in any computer that exists. And that is not sufficient to encode all 1-glyph strings.