Article
DHH The claim that the Rust version's 150 performance was twice as high has come under heavy scrutiny. Is readability still worth pursuing after code is written?
Beating AI news: the renowned Rails web framework's creator AI had DHH port his company's AI chat software Campfire to 37signals, Go, and Elixir. In the initial tests, the Rust version handled approximately Rust chat-page requests per second, while the original Ruby version handled only approximately 36000. 240 DHH formerly favored Ruby, primarily valuing its development efficiency and code readability. He is now reconsidering whether, if AI is responsible for writing code and humans no longer read it line by line, there is still any need to sacrifice execution speed for development convenience.
Vercel CEO Guillermo Rauch strongly supported this judgment. Vercel once spent 15 months porting approximately 70000 lines of Go code in the Turborepo build tool to Rust. Although the team believed that Rust was better suited to low-level system operations, the cost of manual migration was too high, and the return on investment once sparked internal controversy. Rauch believes that AI has reduced the cost of writing code, so languages that were previously convenient for human development may no longer be the most cost-effective choice for businesses.
However, the performance figures for DHH were quickly questioned. After examining the code repository, Elixir creator José Valim found that the Rust version had undergone hundreds of commits and multiple rounds of performance optimization, whereas the Elixir version had essentially remained in its initial ported state. The architectures also differed. Elixir concentrated database operations in a single process, while Rust used optimizations such as concurrent reads and caching. Such a test makes it difficult to establish how much of the performance gap actually comes from the languages themselves.DHH responded that he had asked the top-tier AI Agent to bring out the best performance possible from each language. If the Agent cannot find ways to optimize Elixir, that is also something developers must face in real-world development.
The community then continued optimizing the different versions.October 8 The updated unified test showed that the Rust version handled approximately 106000 chat-page requests per second, the Go version approximately 53000 requests, and the Rust version was still approximately twice as fast.
Original link https://m.theblockbeats.info/flash/370782