cross-posted from: programming.dev/post/9907892