News for hackers. Stuff that matters.
Re:My AI-built PHP engine in Rust passes 17% of PHP-src test... by wsor4035 on Saturday July 04, 2026 @08:48PM (#48790351)
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)

Re:My AI-built PHP engine in Rust passes 17% of PHP-src test... by ekinertac on Sunday July 05, 2026 @03:53AM (#48792154)
thanks, mago is a cool project. probably not as a dep tho, the parser isnt where the time goes (the 55x gap is all in evaluation, thats what the bytecode vm is for) and our parser is deliberatly tuned to match php's exact parse error messages, which is itself worth tests in the corpus. but using it as a second oracle to cross check my parser against theirs is actually a neat idea, same trick as the phpt suite but at the syntax layer.