Agents In Use
What’s new todayLast update
499 additions

How to port a PHP project to Rust with Unknown

The author reports 40,000 generated Rust lines and estimates 90% progress after two weeks of nightly iteration, while explicitly expecting additional fixes before the result works.

TRY A BOUNDED VERSION

Prompt to try

Editorial adaptation, not the source author’s exact prompt. Replace bracketed inputs and review tool permissions first.

Port [existing PHP project] to Rust using [selected frameworks] and [design constraints]. Work through [manageable feature chunks], track missing functionality against the original, and report what remains untested or incomplete after each iteration.

What happened

The author reports 40,000 generated Rust lines and estimates 90% progress after two weeks of nightly iteration, while explicitly expecting additional fixes before the result works.

Reported by plqbfbv on Hacker News

How the agent did it

  1. Asked Copilot Agent mode to translate the existing PHP project into Rust.
  2. Broke the rewrite into manageable chunks.
  3. Directed design choices and selected specific frameworks.

Where a person stepped in

The author directed design and framework choices and expected to fix problems manually or ask Copilot for further fixes.

A person approved each step before the agent continued.

Plqbfbv experimented with Copilot Agent mode on a web-based PHP project needed by their wife. The project had not been maintained for a while. The author asked Copilot to translate it into Rust, initially treating the exercise as an experiment and expecting little from it.

They broke the work into manageable chunks, directed design choices and requested specific frameworks. Copilot then wrote Rust code and tracked functionality still missing compared with the original project. The author reports watching it iterate independently for more than 30 minutes at a time.

After two weeks of spending one to two hours each night on the work, the author reported 40,000 generated Rust lines and estimated they had about 90% of the intended result. These are progress claims rather than evidence that the rewritten application was ready for use. They explicitly expected the first attempt not to work and anticipated either manual fixes or further direction to Copilot.

The author identifies their background as systems and cloud engineering rather than programming. They found syntax boilerplate and reduced documentation searching particularly valuable, while continuing to direct the rewrite's design and implementation choices.

Who it's for: technically experienced users exploring a supervised migration of an existing application into another language.

Prompt
Suggested prompt (written by Agents In Use, not the author's)

Source: Hacker News · plqbfbv

Frequently asked questions

Was the rewritten application confirmed working?

No. The author expected it would not work on the first attempt and anticipated manual fixes or further Copilot-directed corrections.

How did the author guide Copilot?

They divided the work into manageable chunks, directed design choices and asked for specific frameworks.

More details

Remaining steps

  1. Iterated nightly while Copilot generated code and tracked missing functionality.

About this account

Copilot generated Rust code, tracked gaps against the original project and sometimes iterated independently for over 30 minutes.

Platform: Hacker News. Attribution: https://news.ycombinator.com/item?id=44542053. Prompt: Suggested (written by Agents In Use, not the author's). Sourced by the Agents In Use pipeline.

Credit: plqbfbv on Hacker News

Source published 12 Jul 2025

Source checked 14 Oct 2026

Tools and topics

GitHub Copilot Agent mode · PHP · Rust

PHP · Rust · Application rewrite

Editorial completeness: 100/100. Measures documented fields, not agent performance or verified outcomes.