← Sun, Nov 22 digest

Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator

read article ↗ hn thread ↗

Graham Dumpleton, creator of mod_wsgi, introduced Muru, an AI-assisted Rust server for Python WSGI and ASGI applications built via a rapid daily documentation process.

summary is enough The project's architectural approach is compelling, but the linked post primarily serves as an index for a massive ongoing blog series.

summary

Graham Dumpleton is building Muru, a Rust server designed to run Python WSGI and ASGI applications in both development and production. He has documented the build process through an extensive series of daily posts covering architectural choices like pre-loading apps before forking and integrated tracing. While Dumpleton maintains that his twenty years of experience dictate the design, he openly uses AI assistants for the heavy lifting of code and writing. Commenters debate the readability of the LLM-generated documentation while discussing the server's process-forking model.

key points

  1. Muru supports both WSGI and ASGI Python applications inside a single Rust-backed server core.
  2. The architecture pre-loads the Python application and uses process forking with frozen garbage collection states for efficiency.
  3. The creator published nearly twenty detailed technical articles in three weeks, leveraging AI for a significant portion of the implementation and writing.

who should read it

Python web developers and infrastructure engineers tracking modern application server architectures.

discussion mixed

consensus

Commenters express mixed feelings, balancing deep respect for the author's history with fatigue over the heavy use of LLM-generated text style in the documentation.

pushback

Some suggest that leveraging historical credentials like being the creator of mod_wsgi acts as a shield against the immediate dismissal of AI-generated projects.

best comment by ptx ↗

The LLM-generated writing is incredibly tedious to read, but I like the idea of pre-loading the application and then forking the workers (kind of like Android's Zygote), while, as the LLM puts it, "Muru also takes care to freeze the garbage collector's view of the preloaded objects before forking", or, as it's more concisely put in the code, "gc.freeze()".

A variation on that theme that I would like to try is forking a worker per user (or per session), which would be sandboxed (e.g. with Capsicum in FreeBSD) and only have access to that user's credentials. A separate process would route …

It cuts past the AI writing complaints to analyze the technical viability of Muru's pre-forking memory model and propose security extensions.

Generated by an LLM from the article and thread. Check the sources before relying on it.