Well, there is a port of glibc to UEFI, so one could very easily "boot into Emacs". Strangely I've not seen anyone do this.
https://www.informatimago.com/linux/emacs-on-user-mode-linux...
Python without an operating system https://news.ycombinator.com/item?id=9453677
Porting Python to run without an OS https://www.youtube.com/watch?v=bYQ_lq5dcvM