I haven’t followed closely, but I am sure there are som valuable lessons learned there that would answer your question.
[1] https://github.com/remacs/remacs
[2] https://emacs-ng.github.io/emacs-ng/