GNU emacs goes back to 1985, although I used TECO emacs before that.
But ed is older, although what is in use today is probably GNU ed, which was written after GNU emacs.