A while back i saw a suggestion somewhere that Elixir have a try it in your browser feature. I thought this was a cool idea, but it wasn’t something i personally needed. Today i had nothing better to do so i proof of concepted what it would take to get a decent console/iex experience in the browser.
This is what i came up with. I had to change ~10 lines of code in Elixir.IEx.Server and Elixir.IEx.Evaluator to redirect IO.
My CSS skills are sub par so that is certainly something that could use work.
Actually, I think integrating this with something like elixir koans and putting a nice UI on top would be a great learning experience. Maybe I should dig into their code again to see if it’s doable