It's a brilliant hack and we are on Hacker News after all.
To try random ideas is part of learning and when you have something to share, just do that. There will always be like minded someone to pick up.
This article is just a fun hack using Rust macros.
[1] https://github.com/dgrunwald/rust-cpython
[2] http://dgrunwald.github.io/rust-cpython/doc/cpython/macro.py...
His primary use for it is building distributable binaries for Mercurial, which is written primarily in Python.
I was also amazed how much is implemented in libtorch itself as opposed to the Python wrapper, which makes much of the Torch functionality available to other languages.
[1] https://github.com/stickeritis/sticker2 https://github.com/stickeritis/sticker-transformers