• onlinepersona@programming.dev
    link
    fedilink
    arrow-up
    30
    ·
    3 days ago

    I tried using AI in my rust project and gave up on letting it write code. It does quite alright in python, but rust is still too niche for it. Imagine trying to write zig or Haskell, it would make a terrible mess of it.

    Security is an afterthought in 99.99% of code. AI barely has anything to learn from.

    • krooklochurm@lemmy.ca
      link
      fedilink
      arrow-up
      31
      ·
      3 days ago

      If you’re using Hannah Montana Linux you can just open a terminal and type “write me ____ in the language ____” and the Hannai Montanai will produce perfectly working code every time.

    • buddascrayon@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      3 days ago

      It does quite alright in python

      That’s cause python is the most forgiving language you could write in. You could drop entire pages of garbage into a script and it would figure out a way to run properly.

    • funkless_eck@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      Even in Python you have to keep it siloed. You have to drip feed it pieces because if you give it the whole script it’ll eat comments, straight up chop out pieces so you end up with something like

       def myFunction():
            # ...start of your function here...
      

      replacing actual code.