• @toastmeister@lemmy.ca
    link
    fedilink
    -22 days ago

    Could AI allow you to write code in python, and then turn the python into a static language with static variables at least?

    • @cx40@programming.dev
      link
      fedilink
      English
      11 day ago

      But the main benefits of static typing is in making the programming part easier. What do you gain from translating dynamically typed languages into a statically typed language?

    • Russ
      link
      fedilink
      English
      12 days ago

      I don’t see how that’s going to work out well. That’s asking to end up with a mess that you’re just going to have to rewrite anyways.

      I do not even have a complete hatred for AI like a lot of folks do, but I don’t trust it that much (nor should anyone).

      You’d be better off with an actual deterministic transpiler for that (think TypeScript -> JS but the other way around I suppose), not something with a ton of random variables like an AI.

      • @toastmeister@lemmy.ca
        link
        fedilink
        1
        edit-2
        1 day ago

        Well python is slow due to garbage collection and dynamic types, if AI could fill those in it would make programming far easier at least.

        You could write low level drivers in python.