frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

My AI-built PHP engine in Rust passes 17% of PHP-src tests, renders WordPress

https://ekinertac.com/blog/i-dont-know-rust-my-ai-is-rewriting-php-in-it/
22•ekinertac•3h ago

Comments

ekinertac•3h ago
Author here.

To be upfront about what this is: I'm not a Rust developer or a PHP internals person. This is an experiment in whether the "point the AI at the original project's test suite" methodology (the way Bun was driven against real-world suites) holds up when the human can't review the code. The oracle is php-src's own .phpt corpus, ~22k tests I didn't write. Current honest score: 3,844 passing (17.4%), with a realistic ceiling around 40-45% since the rest tests C extensions (GD, curl, intl, etc.) that are out of scope.

"Renders WordPress" means: fresh install completes into SQLite, the front page renders with real posts, a real theme and /wp-admin/ renders without issues. The REST API is untested, and it's currently ~55x slower than PHP on the front page (a bytecode VM is in progress, micro-benchmarks are already at 1-3x of PHP 8.5).

The scoreboard auto-generates into the repo after every run, whether the number went up or down.

Happy to answer anything.

bbg2401•1h ago
Will you answer questions yourself, or will you simply pass on what your LLM of choice writes for you?

Edit: On further inspection, the blog design, the blog build, the blog articles and even the anecdotes used in the articles are entirely Claude generated.

Stop being so lazy. Get Claude to do something interesting and use your own intellect to assess and challenge the work in your write up. Or the other way around. Inject some amount of human work, at least. Otherwise, what's the point in sharing?

ShinyLeftPad•1h ago
But it will be as least 17% correct!
adamtaylor_13•1h ago
This is a pretty cool experiment. Thanks for sharing!
pluc•49m ago
Compare with FrankenPHP?
AmazingEveryDay•3h ago
Interesting read. Given what the process is producing it's probably quite cost-effective?
keepupnow•1h ago
Why stop at 17%, come back when you are at 100% otherwise it's just another project.
lawrenceduk•1h ago
Is it astonishing you got to 17% with some vibe code? Sure.

But most of the stuff I’ve vibe coded this year has been astonishing by 2025’s standards.

If you got 100% I’d be genuinely blown away.

sdesol•48m ago
The article doesn't go into how they managed the AI context when implementing things but I would not be surprised if it was done in a methodical way, 80% - 90% of the test could have passed.
pylua•47m ago
Does anyone know why we write code anymore? Why not pass through to an llm that generates the page on the fly (ssr)?

Is it cost ?

Jabrov•42m ago
Yes: cost, speed, and reliability.

But all of those things are improving at shocking speeds, so I think we’re on a path where code is losing value quickly.

pylua•37m ago
Yeah, I agree. It will be like serverless but for code : codeless.

It’s a disconcerting future.

general_reveal•35m ago
Standards vary.
gamblor956•1h ago
Maybe the takeaway is that 20% is about all the LLM can muster.
malisper•1h ago
> Maybe the takeaway is that 20% is about all the LLM can muster

At this point there's a long list of projects that have used LLMs to rewrite a system in Rust including:

  - Bun (https://github.com/oven-sh/bun/pull/30412)
  - Valkey (https://github.com/ianm199/valdr)
  - Git (https://github.com/gitbutlerapp/grit)
  - Postgres (https://github.com/malisper/pgrust)
With the exception of Bun, these projects were done pre-fable too, so I bet Fable will make these types of rewrites even easier.
verandaguy•40m ago
I'm not sure about the other three, but Bun's rewrite from Zig to Rust was a bit of a joke. `unsafe`s in the thousands, a quarter-million lines of diff, and merged inside a week with no significant public discourse (at least, not much that was responded to by the author).
fuckinpuppers•1h ago
Use AI to make Wordpress secure and not suck as much
lioeters•47m ago
Even an AGI can't accomplish the impossible.
sshine•57m ago
My boss asked me to set up a WordPress for a product landing page.

I naturally won't do this; it's no more than a couple of weeks ago that some SQL injection landed in the search query function of this monstrosity.

WordPress always was and always will be terrible.

So I set up the landing page with a Hugo static site, and I've been vibe-coding a WordPress-like dashboard that operates on git repositories containing Hugo sites.

I call it WorbPress (not released yet), and I'm sure that's what my boss told me to install, or I might've misheard.

And yes, it's written in Rust (with Axum and Alpine.js), because why not?

is_true•45m ago
Why not use headless WordPress?
sureglymop•42m ago
I feel like not choosing WordPress was a great choice but I'm not sure about the rest of the comment. A simple html file might make for a good landing page though.
wsor4035•41m ago
Ill preface my comment with saying: this might not be the best solution give the goal of your project to iteratively loop through and improve on the tests each round, and using deps would make that process longer/more complicated having to work potentially with another project.

.....however.....

mago, a static analyzer for php is written in rust and might be useful for gaining some "free" performance uplift: https://github.com/carthage-software/mago. iirc it splits out a far bit of its internals so they can be used by other projects (citation needed)

mgaunard•22m ago
Why is the AI only able to reach 17%?

Surely it can just keep iterating until it implements the full test suite?

hoppp•20m ago
Money probably. This is a cash burn project.

Scientists reverse brain aging, with a nasal spray

https://stories.tamu.edu/news/2026/04/14/scientists-reverse-brain-aging-with-a-nasal-spray/
113•cybermango•1h ago•40 comments

Command and Conquer Generals natively ported to macOS, iPhone, iPad using Fable

https://github.com/ammaarreshi/Generals-Mac-iOS-iPad/tree/main
347•asronline•5h ago•140 comments

GPT-5.5 Codex reasoning-token clustering may be leading to degraded performance

https://github.com/openai/codex/issues/30364
135•maille•3h ago•44 comments

Google Books (or similar) all book scans – $200k bounty (2025)

https://software.annas-archive.gl/AnnaArchivist/annas-archive/-/work_items/234
328•Cider9986•8h ago•166 comments

Jellyfish can heal wounds in minutes. Scientists want their secrets

https://www.mbl.edu/news/jellyfish-can-heal-wounds-minutes-scientists-want-their-secrets
30•hhs•2h ago•4 comments

Leaking YouTube creators' private videos

https://javoriuski.com/post/youtube
471•javxfps•8h ago•264 comments

Better Models: Worse Tools

https://lucumr.pocoo.org/2026/7/4/better-models-worse-tools/
85•leemoore•5h ago•27 comments

Explanation of everything you can see in htop/top on Linux (2019)

https://peteris.rocks/blog/htop/
389•theanonymousone•13h ago•52 comments

Potential session/cache leakage between workspace instances or consumer accounts

https://github.com/anthropics/claude-code/issues/74066
269•chatmasta•11h ago•127 comments

Zig: All Package Management Functionality Moved from Compiler to Build System

https://ziglang.org/devlog/2026/#2026-06-30
137•tosh•9h ago•26 comments

Verizon is About to Break our Watches

https://www.jefftk.com/p/verizon-is-about-to-break-our-watches
134•jefftk•7h ago•78 comments

Return of the Nigerian Prince Redux: Beware Book Club and Book Review Scams

https://writerbeware.blog/2025/09/19/return-of-the-nigerian-prince-redux-beware-book-club-and-boo...
8•Anon84•1h ago•4 comments

Can you build a recognizable World Map in under 500 bytes?

https://www.experimentlog.com/blog/building-a-world-map-with-only-500-bytes
21•iweczek•3d ago•22 comments

My AI-built PHP engine in Rust passes 17% of PHP-src tests, renders WordPress

https://ekinertac.com/blog/i-dont-know-rust-my-ai-is-rewriting-php-in-it/
22•ekinertac•3h ago•24 comments

Drone Physics

https://iahmed.me/post/drone-physics/
79•wrxd•4d ago•23 comments

Reflections on the Guillotine

https://theanarchistlibrary.org/library/albert-camus-reflections-on-the-guillotine
6•halperter•1h ago•0 comments

Windows CE Dreamcast Community Edition (wince-dc)

https://github.com/maximqaxd/wince-dc
91•msephton•10h ago•17 comments

It's not me, it's the compiler

https://parsa.wtf/cast/
55•SVI•3d ago•10 comments

Astrophysicists Puzzle over Webb’s New Universe

https://www.quantamagazine.org/astrophysicists-puzzle-over-webbs-new-universe-20260702/
193•jnord•16h ago•120 comments

Protocol Prying: Vulnerability Research in AirDrop and Quick Share

https://arxiv.org/abs/2606.26967
11•logickkk1•4h ago•1 comments

The Vespa at 80

https://www.cbc.ca/news/world/vespa-italy-postwar-design-9.7252641
145•cf100clunk•3d ago•135 comments

Egg consumption inversely correlated with Alzheimer's

https://pubmed.ncbi.nlm.nih.gov/42002260/
14•natbennett•42m ago•2 comments

Zo Computer

https://www.zo.computer
8•erhuve•1h ago•6 comments

Fable created novel 4D splat format

https://adamraudonis.github.io/splats4D/
108•adamraudonis•9h ago•39 comments

BareMetal RAM Dumper – Bare-metal x86 tool for Cold Boot Attack experiments

https://github.com/pIat0n/BareMetal-RAM-Dumper
53•liffik•7h ago•36 comments

Curveball

https://mightyburger.net/projects/curveball/
49•toilet•9h ago•11 comments

Mapping with In-Memory Layers to Reduce LLM Overload

https://ridgetext.com/blog/mapbox-llm-composition
3•Buckwheat469•2h ago•0 comments

Drone Autonomy Crash Course

https://www.cggonzalez.com/blog/index.html
4•cgg1•2h ago•0 comments

Neural Render Proxies for Interactive and Differentiable Lighting

https://studios.disneyresearch.com/2026/07/01/neural-render-proxies-for-interactive-and-different...
49•tobr•3d ago•8 comments

CloudsLinker: Move and sync files across 50 cloud services

https://app.cloudslinker.com/login
5•janandonly•2d ago•0 comments