And I thought the only ancient tool #Apple shipped in #macOS used to be #bash. Well, I was wrong...

Apparently, #macOS ships an ancient version of #gperf (3.0.3) from 2007! Of course, you can use something like #Homebrew or #MacPorts to install a newer version, but of course Apple LOVES to ship ancient developer tools! /s

(I get it's probably a GPL v3 issue, but I'm afraid I do not care because I'm very confident and certain you can still find a way to ship these developer tools without violating the GPL v3. At least, if you're that big a company you can. Do better, #Apple)!

Love 😍 such articles that cover a topic in depth:

“Modern Perfect Hashing For Strings” [2023], Wojciech Muła (http://0x80.pl/notesen/2023-04-30-lookup-in-strings.html).

On HN: https://news.ycombinator.com/item?id=35764176

#Hashing #PerfectHashing #Lexing #LexicalAnalysis #Programming #Algorithms #Trie #gperf #Tokenization

Modern perfect hashing for strings