AI and Irontown

Armin Ronacher · 2026年11月9日

AI 摘要 AI 生成,可能有误

作者在《幽灵公主》与当今的人工智能辩论之间进行了类比:正如幻姬大人的炼铁场在为社会的弃儿提供工作和尊严的同时摧毁了周围的森林,人工智能在为原本被排斥在外的人们赋能的同时,也给他人带来了实实在在的代价,而这些代价往往落在那些无法从中受益的人身上。正如影片中一样,对在权力竞赛中落败的恐惧驱使人们做出破坏性的行为,而这些行为的后果尚未被充分认识。作者呼吁在关于人工智能的讨论中保持细致与平衡,敦促我们拥抱其真正的益处,承认其危害,并在失去无法替代的事物之前,“以不被仇恨蒙蔽的双眼去看”。

For our last movie night we watched Princess Mononoke. I remembered loving that movie when I was younger, but watching it as an adult made me once again realize how Miyazaki has a way of expressing diverging sides without picking one. The film shows people, animals and spirits with legitimate and largely incompatible needs, and each faction is further engaged in infighting.

A central arc of the story is Lady Eboshi’s Irontown, which gives people who were largely rejected by society work, protection and dignity. She gives shelter and work to those who have leprosy and to former sex workers. The mine and the weapon factory provide them with a livelihood, but they also destroy the forest around them. The forest’s inhabitants, in particular the boars, response choose war against the humans to defend themselves. Eboshi is not portrayed as a villain. She does real good for the people of Irontown, but also is an arms manufacturer who is destroying the forest around it.

The film anchors around a character called Ashitaka, who has been condemned to death by an unfortunate encounter with a god that was turned into a demon after being fatally wounded by one of Eboshi’s guns. He doesn’t take sides, but he wants to understand and find the truth. Another character is San (whom they call Mononoke), a girl who was raised by wolves and, despite being human, considers herself part of the forest.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Armin Ronacher

Bob’s Company

AI 摘要Bob, a former software engineer who spent 27 years running a niche software company for car enthusiasts and mechanics, became obsessed with AI coding tools like Claude and Codex and fired all but three of his engineers, who now spend their days reviewing the AI-generated code he produces on weekends. Ironically, the same AI tools that Bob believes will replace his engineers are also making it possible for others to replicate his entire business, while his remaining, demotivated engineers may leave. His company could emerge leaner and better, or Bob could end up alone with no business at all.

Abolish Lock Poisoning

AI 摘要The article argues that Rust's mutex poisoning feature—where a mutex becomes permanently unusable after a panic while locked—should be removed or made opt-in, claiming the author has never seen code that handles poisoned locks correctly in practice. Real-world examples from RLS, Mozilla, Tokio, rust-analyzer, and even the standard library itself show poisoning causing deadlocks, cascading panics, and prolonged outages rather than enabling recovery, with most major Rust projects already using non-poisoning locks. The author proposes stabilizing std::sync::nonpoison as the default and offering a separate Poison wrapper for those who genuinely want poisoning semantics.

Custom Voices With Qwen3-TTS

AI 摘要While building a dungeon crawler game, the author explored Qwen3-TTS for creating unique custom narrator voices, describing its three models: Base (voice cloning), CustomVoice (built-in speakers with instructions), and VoiceDesign (voices invented from text descriptions). Since the Base model cannot apply instructions like 'speak sadly' to cloned voices, they demonstrate a workaround: extracting the 2048-dimensional speaker embeddings from recordings and injecting them into CustomVoice, which enables emotional control over cloned voices. The article also shows creative uses of embedding arithmetic, such as blending two voices, using embeddings for speaker detection in podcasts, and shifting a voice along a computed gender axis.

What is Codemode

AI 摘要The article introduces Codemode, a new Pi 1.0 feature that lets the LLM orchestrate complex operations on the harness side by writing JavaScript that runs in a heavily sandboxed QuickJS/WASM runtime with no network, file system, or timers. Because tool calls are composed in code rather than passing through the model's context, Codemode avoids context bloat, enables concurrency and multi-step workflows, allows state to be stashed and reloaded across invocations, and exposes internal APIs like image generation and classifier models (e.g., Jev) as well as MCP servers without loading their tools into the context. The author illustrates these capabilities with real agent-generated examples, including image creation, sentiment analysis of GitHub issues, driving a tank game loop with a classifier, and tool discovery for MCP servers.

Deser: Rethinking Rust Serialization

AI 摘要The article introduces Deser, a Rust serialization library built to address structural limitations of Serde—such as lossy buffering for internally tagged enums and flatten, non-composable adapters, and stack-based recursion—through an event-driven sink/emitter architecture that keeps state on the heap in a driver. This design enables suspension of deserialization, arbitrary nesting without stack overflows, lossless buffering, an extensible data model, middleware layers, and composable adapters, though it deliberately excludes non-self-describing formats like protobuf and trades off some binary size and runtime performance. While the author doubts Serde can be truly replaced due to the orphan rule, Deser now supports all major self-describing formats (including XML) and is presented as a viable drop-in alternative or at least inspiration for exploring the design space.