[HN Gopher] tolower() with AVX-512
___________________________________________________________________
tolower() with AVX-512
Author : fanf2
Score : 8 points
Date : 2024-07-28 20:38 UTC (2 hours ago)
(HTM) web link (dotat.at)
(TXT) w3m dump (dotat.at)
| h2odragon wrote:
| just for giggles:
| http://www.unicode.org/Public/3.1-Update1/CaseFolding-4.txt
| fanf2 wrote:
| Heh, thank goodness I don't have to deal with all that! This
| code is ascii-only because it arose from working on the DNS.
| There are other protocols that are ascii-case-insensitive so it
| turns up a lot in the hot path of many servers.
| Asooka wrote:
| There is a difference between strings used internally, usually
| as IDs, and text entered by a human. For the former you'd
| always use straight ASCII in 8-bit encoding, for the latter ...
| things get difficult. A straightforward example are DNS
| addresses - they can technically contain almost any Unicode,
| but that is always converted to a very limited subset of ASCII
| for actual DNS resolution, which in turn is case-insensitive.
|
| There are of course things like programming languages with
| case-insensitive identifiers that support all human writing
| systems in Unicode. If that's what you're dealing with, you
| have my condolences.
___________________________________________________________________
(page generated 2024-07-28 23:01 UTC)