Hacker News new | ask | show | jobs
by devin 23 days ago
I don't think it does. (meaningfully change the economics of rewrites)

Burning a sea of tokens to arrive at the equivalent functionality and having a small team of people oversee that process is rarely going to be the fix to the organizational problems that surround typical failed/stagnant software projects.

Rewrites are rarely about the organization of the symbols and are more often about a change in the fundamental understanding of the organization about the problem they've solving. Remember: People change slowly.

People are often too tied to the idea of "rewrite" as a replay of all current capabilities, but should instead be thinking about fundamentally different primitive capabilities of the system. It's not a "redo" if you're changing some of your fundamental assumptions about the problem space.

1 comments

I assumed LLMs should be able to rewrite a small amount of code ~5k dense LoC in Ruby to Rust.

It could not.

I suspect you'll see a wave of transpilers developed to mostly transpile code from one language to another.

You can have an LLM generate a 1-2k or so LoC transpiler that can translate 50%+ of code in place from most languages to another.

After doing that, it was able to actually get the job done relatively quickly.

I'm working on self-hosting a programming language I've been developing. The transpiler from the original language to the host language is ~12k LoC and translates ~99% the original compiler's ~80k LoC cleanly.

The total self-host looks like it might only take a couple of weeks and <$100... TBD.

An LLM can do this easily if you have a good test harness