cross-posted from: https://jlai.lu/post/8848987