Writing a REPL that evaluates-as-you-type, keeping the UI responsive and staying defensive against runaway memory usage: https://scattered-thoughts.net/writing/making-live-repls-behave/
It's a really hard problem for PLs, but even this small live demo has a lot of complexity.
I still can't decide whether M-x ielm fits into an optimal elisp workflow.
The 'strict Emacs' view is that it's better to use buffers for everything, so you can edit and build up expressions there.
The 'tailored UI' view is that ielm is better, because it's a dedicated REPL.