Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

GPT-Migrate helps you easily migrate your codebase from one language or framework to another 👇

301,854 Aufrufe • vor 2 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Josh Payne
Josh Paynevor 2 Jahren

The vision I'm excited for: ◐ a Flask API -> FastAPI or Node.js ◑ ◐ a React Native app -> Swift/Android ◑ ◐ a Python data pipeline -> Rust pipeline ◑ ◐ a Vue frontend -> Typescript + Next.js ◑ ...all in just a few minutes ⚡

Profilbild von Josh Payne
Josh Paynevor 2 Jahren

Here's how it works: 1. It creates a Docker environment for <newlang> 2. Recursively rebuilds new <newlang> code from your existing code 3. Builds unit tests from your old code 4. Tests the new code against them 5. Iteratively debugs the code for you (Debugging 👇)

Profilbild von Josh Payne
Josh Paynevor 2 Jahren

I have to admit, it’s kind of addicting to just press “y” and let it fix the code whenever there’s an error 😁 Keep in mind that *this is a hackathon project* (from Saturday's @agihouse_org hackathon), so it's extremely nascent, and there's a ton of work left to do.

Profilbild von Josh Payne
Josh Paynevor 2 Jahren

Code migration is a painstaking and complex task faced by everyone from indie devs to the Fortune 500. Transpilers exist, but yield unmanageable code. Practical migration is only now becoming tractable, thanks to today's LLMs, as shown by @swyx, @antonosika, @SigGravitas et al.

Profilbild von Josh Payne
Josh Paynevor 2 Jahren

In fact, I recently migrated from Flask to FastAPI for another project (TBA) and I *wished* there was something like this out there. I've been asked by pretty much everyone I've shared this with: "does it do language x to language y?" The answer is probably, but it's early, so...

Profilbild von Josh Payne
Josh Paynevor 2 Jahren

📣 This is a call to action! Migration is TOUGH, and I've really only made a small chip at it. If this problem gets you excited and you're interested being a core contributor, I (and most software orgs/people, really) would love to see you in the repo!

Profilbild von Travis Fischer
Travis Fischervor 2 Jahren

Would love a version of this that’s focused on converting / upgrading popular NPM modules to modernize or fix best practices. axios ⇒ fetch commonjs ⇒ esm upgrading react support patching vulnerabilities (taking action on @SocketSecurity) etc cc @feross @sindresorhus @rauchg

Profilbild von Josh Payne
Josh Paynevor 2 Jahren

@SocketSecurity @feross @sindresorhus @rauchg Love these 🔥 ideas!! Going to be a busy weekend :)

Profilbild von Marc Seitz — oss/acc
Marc Seitz — oss/accvor 2 Jahren

great work Josh 👏 I can see this being applied to unmaintained open-source project / packages that still are critical but no one has time to upgrade to the next major version of a programming language / franework ruby on rails 4 —> ror 7 c —> rust

Profilbild von Josh Payne
Josh Paynevor 2 Jahren

Agreed! One challenge is knowledge cutoffs, but this could be solved with documentation search calls etc. Future feature possibly

Ähnliche Videos