Urgent.News

What's breaking now, across thousands of outlets.

AI

I'm sorry, but you still have to think

DHH, the creator of the Ruby on Rails framework, has rewritten Campfire Once from Ruby on Rails to Rust, as well as adding versions in other languages such as Elixir and Go. This move has generated interest, as it provides insight into the outcomes of using AI agents without reading the code. However, the results are not encouraging, indicating that stopping to read and think may be necessary.

One issue with the rewrites is the lack of specific prompts, leading to many decisions being a matter of chance. These decisions often revolve around factors like backwards compatibility, latency, throughput, memory usage, and the acceptability of losing new content notifications after a crash. Although the developers may not care about these aspects, the language model will implicitly address them.

Comparing the rewrites reveals differences in how they handle backwards compatibility and other constraints. The Rust version does not maintain 100% compatibility, for instance, by dropping the CSRF token for easier caching and using in-process queues for notifications. The Elixir rewrite, on the other hand, is closer to the original Rails version, making the comparison less meaningful.

From a code inspection standpoint, the Elixir version shows some concerns, such as a single process sequentially processing SQL queries, which may not be optimal for concurrency. However, DHH seems to believe that the Rust version's clanker couldn't write efficient code.

Another issue arises from the blocking operations in Rust, which can negatively impact performance. The cooperative scheduling in Rust means that tasks must yield to allow others to run, making it essential to use async operations whenever possible. The Rust rewrite employs both blocking and async tasks, leading to potential inefficiencies.

Furthermore, benchmarks used to evaluate the rewrites have their limitations. They primarily measure throughput, disregarding other critical aspects of the system. The delivery rate of notifications under heavy load, for example, is significantly lower in the Rust version (1%) compared to the Elixir version (100%). This discrepancy highlights the importance of considering different properties of the system when evaluating performance under load.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at itsallaboutthebit.com →

More in AI

I Built an AI That Wants You to Stop Using It 🌿 | GrassQuest AI

GrassQuest AI: I Built an Open-Source AI That Wants You to Stop Using It 🌿 Less Scrolling. More Exploring. The Problem We have AI tools that help us write faster, code faster, and consume more…

  • The AI generates personalized outdoor missions based on user input like time, mood, and preferences.
  • GrassQuest uses local inference with Google's Gemma 3 model for privacy and customization.

I turned my grandmother's voice messages into a family cookbook (open Vietnamese speech model + local LLM)

This is a submission for the Build for a Friend challenge: ship something with open-source AI that solves a real problem for someone you love.

  • Reporter's grandmother's voice messages turned into a family cookbook
  • Project "Grandma's Kitchen" preserves culinary wisdom using open-source AI tools
  • PDF cookbook allows family members to cook dishes despite being geographically dispersed

Offscreen: Local AI That Gets You Off Your Phone and Outside

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass What I Built I built Offscreen , an open-source project that helps people spend less time scrolling and more…

  • Offscreen encourages outdoor engagement over phone usage
  • Local AI powers Android app and browser version
  • Open-source project invites community contributions

More from Sunday 11 October →