I'm sorry, but you still have to think
Article URL: https://itsallaboutthebit.com/i-am-sorry-but-you-still-have-to-think/ Comments URL: https://news.ycombinator.com/item?id=50043689 Points: 211 # Comments: 77
DHH, creator of Ruby on Rails, rewrote Campfire Once in Rust, along with versions in Elixir and Go. This is interesting as it shows the results of using AI agents without reading the code, especially for someone with extensive programming experience. However, the rewrites have multiple issues. The main concern is that if the prompt is not specific enough, many decisions are left to chance, as there are often multiple correct answers to questions about compatibility, latency, throughput, memory usage, and handling new content notifications after a crash.
The Rust version dropped backwards compatibility, opting for easier caching and in-process queues, while the Elixir version more closely resembled the original Rails code. Despite these differences, they are language-independent. The Rust implementation also had performance issues, with some database operations not being async and non-preemptive scheduling, potentially leading to slower execution.
Additionally, the benchmarks used were not ideal, focusing only on throughput and not considering other system properties. In general, the comparison showed that Elixir handled backpressure better but under heavy load, the Rust version only delivered 1% of notifications, compared to 100% with Elixir. This demonstrates that programming still requires human understanding and decision-making, and that AI agents alone are not sufficient to write perfect code.
Rewritten by urgent.news; may contain errors — check the original.
Source: itsallaboutthebit.com
This story
This is one outlet's version. Read the fullest account.
- I'm sorry, but you still have to think itsallaboutthebit.com