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