It's bound to emacs because it is written in emacs-lisp. It's a large, sophisticated codebase that dates back almost 20 years. There is no way it could ever be ported to another language in its entirety: it is very tightly bound into the (also sophisticated) string manipulation APIs available in emacs lisp.