All ideasMore in Hobbies

The AI ported his old PHP site to Rust, and caching made the new one keep up

Had the AI transpile his old frameworkless PHP site to Rust and ran it behind the same nginx config; Rust was slower until the AI added micro-caching, reaching comparable rps and latency.

This only partly worked. Read what happened before you try it.

How it works

  1. He has the AI transpile his old frameworkless PHP site to Rust
  2. Runs it behind the same server config
  3. Rust is slower until the AI adds micro-caching, reaching comparable speed

Why it’s worth knowing

The new language lost the first benchmark and won the second.

Where it’s from

Summarized from a public post on news.ycombinator.com. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.