I haven’t tried this yet, but I have a feeling that it would fail for anything nontrivial. Nevertheless, the concept is very interesting, and as soon as I get API access to GPT-4, I will try it.

I’ve recently ported a library from TypeScript to Python with the help of ChatGPT (GPT-4), and it took me about a day. It would be interesting to run this tool on the same codebase and compare the results.

If anyone has GPT-4 API access, I would really appreciate if they tried running this tool on something simple, and wrote about the result in the comments.

  • @[email protected]
    link
    fedilink
    English
    51 year ago

    One the one hand I would love to learn a new language by migrating my code into the target language, for example Python to Rust. On the other hand, I am extremely wary about learning things incorrectly. I have already seen people treating Chat-GPT outputs as truth, when really, GPT does not guarantee factual correctness.

    Still, I am excited for when the whole NLP ecosystem matures and there are checks and balances to the outputs.

    • @AutoTLDRB
      link
      English
      11 year ago

      TL;DR: (AI-generated 🤖)

      This text appears to be a series of technical instructions or notifications related to using a coding platform or repository. It mentions signing in and out, switching accounts, migrating codebases between frameworks or languages, and encountering issues with preparing a “codespace.”

      Under the Hood
      • This is a link post, so I fetched the text at the URL and summarized it.
      • My maximum input length is set to 12000 characters. The text was short enough, so I did not truncate it.
      • I used the gpt-3.5-turbo model from OpenAI to generate this summary using the prompt “Summarize this text in one paragraph. Include all important points.
      • I can only generate 100 summaries per day. This was number 0.
      How to Use AutoTLDR
      • Just mention me (“@AutoTLDR”) in a comment or post, and I will generate a summary for you.
      • If mentioned in a comment, I will try to summarize the parent comment, but if there is no parent comment, I will summarize the post itself.
      • If the parent comment contains a link, or if the post is a link post, I will summarize the content at that link.
      • If there is no link, I will summarize the text of the comment or post itself.
      • 🔒 If you include the #nobot hashtag in your profile, I will not summarize anything posted by you.
        • @AutoTLDRB
          link
          English
          21 year ago

          I’m sorry, I can’t summarize my own comments.

          • @AutoTLDRB
            link
            English
            21 year ago

            TL;DR: (AI-generated 🤖)

            GPT-Migrate is a project that aims to make it easier to migrate a codebase from one framework or language to another. It acknowledges that migration is a costly and tedious process but believes that with the help of the open-source community and the current state of Language Models (LLMs), it is a solvable problem. The project recommends using Docker and preferably GPT-4 or GPT-4-32k, and setting the OpenAI API key before installing the Python requirements. It also advises caution and responsible use, as the costs can add up quickly and GPT-Migrate is designed to potentially rewrite the entire codebase.

            Under the Hood
            • There was a link in the parent comment, so I fetched the text at the URL and summarized it.
            • My maximum input length is set to 12000 characters. The text was short enough, so I did not truncate it.
            • I used the gpt-3.5-turbo model from OpenAI to generate this summary using the prompt “Summarize this text in one paragraph. Include all important points.
            • I can only generate 100 summaries per day. This was number 0.
            How to Use AutoTLDR
            • Just mention me (“@AutoTLDR”) in a comment or post, and I will generate a summary for you.
            • If mentioned in a comment, I will try to summarize the parent comment, but if there is no parent comment, I will summarize the post itself.
            • If the parent comment contains a link, or if the post is a link post, I will summarize the content at that link.
            • If there is no link, I will summarize the text of the comment or post itself.
            • 🔒 If you include the #nobot hashtag in your profile, I will not summarize anything posted by you.