MochiWeb is an Erlang web server that I’ve always been aware of but have never personally used, so I was interested in hearing people experiences of it.
Have you used it? Do you like it?
How does it compare to other web servers such as Cowboy, Elli, and Ace?
I’d especially like to see QUIC/http3 support added. IIRC I think Peter said he wanted to add it to Ace but I haven’t seen him post anywhere for a while (is he still working on that Gleam framework? If so any idea which web server it uses? Ace?)
No, but html_sanitize_ex uses it as a dependency to parse html Really need to extract that so that not all of mochiweb needs to brought in simply for html parsing.
It sounds like performance is one of the key reasons Cowboy is more commonly used than MochiWeb. Good to know.
Peter’s playing around with solar energy, type systems, and Gleam JS currently I believe. Very cool.
The core ideas of the Midas framework got merged into the gleam_http library. He was also making a HTTP 1.1 server in Gleam but moved on to other things in the end.
We also ported the html tokeniser in Mochiweb to javascript to be able to send html snippets to the browser and use it together with Incremental DOM to update the dom-tree.