Remix.run Logo
▲ jijji 4 hours ago

about 6-12 months ago I rewrote all of my PHP legacy code bases in Rust and it only took Claude code a couple days to do all of it but I'm not saying that that's a good or bad idea but it's just something that I did to mitigate any of the future problems and also at least from what I've seen the performance is about 20 times faster than PHP.... another thing is the way that it's actually done especially when you're talking about large code bases is you kind of have to go file by file and create a parity of functionality line by line from PHP to rust file by file and then from that you can reliably convert a whole code base.... trying to do it any other way results in a lot of hallucinations...fyi

▲hypercube33 4 hours ago | parent [-]

Any idea how much code and how much it cost? I'm tempted to volunteer my account to at least rip through the existing code and look for any easy bugs to fix. Not hands on enough to write rust myself but I'm open to helping.

▲jijji an hour ago | parent [-]

I just used the $20 a month plan with opus and it was pretty good and it went through 300k line of codebase in about 2 weeks initially and then another two weeks to actually nail down 100% compatibility between both systems with unit testing to confirm that.... there was a smaller code base that only took a few days to rewrite and test.... today I'd probably use deepseek-v4.1-flash to do the same thing because I use that model to make enhancements to the same trees everyday