News for hackers. Stuff that matters.
Re:Porting 100k lines from TypeScript to Rust using Claude C... by Palomides on Monday January 26, 2026 @10:06AM (#46766509)
I'm very skeptical, but this is also something that's easy to compare using the original as a reference implementation, right? providing lots of random input and fixing any disparities is a classic approach for rewriting/porting a system
Re:Porting 100k lines from TypeScript to Rust using Claude C... by ethin on Monday January 26, 2026 @10:47AM (#46767086)
This only works up to a certain point. Given that the author openly admits they don't know/understand Rust, there is a really high likelihood that the LLM made all kinds of mistakes that would be avoided, and the dev is going to be left flailing about trying to understand why they happen/what's causing them/etc. A hand-rewrite would've actually taught the author a lot of very useful things I'm guessing.
Re:Porting 100k lines from TypeScript to Rust using Claude C... by galangalalgol on Monday January 26, 2026 @12:52PM (#46769011)
It seems like they have something like differential fuzzing to guarantee identical behavior to the original, but they still are left with a codebase they cannot read...