• onlinepersona@programming.dev
    link
    fedilink
    arrow-up
    29
    ·
    16 hours 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.

    • wiegell@feddit.dk
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      Mitchell Hashimoto writes a lot of Zig with AI (and this interview is almost a year old), see: https://www.youtube.com/watch?v=YQnz7L6x068&t=490s How long since you have tried tools? I think there has been some pretty astounding progress during the last couple of months. Until recently i did not use it daily, but now I just cant ignore the efficiency boost it gives me. There are definitely security concerns, and at this point you should not trust code that you do not read/understand, but tbh. i’m starting to believe that AI might (at least in the short term) free up resources to patch stuff and implement security features, that otherwise was not prioritised before due to focus on feature development. What it does to the IT sector in the long run - who knows…

    • krooklochurm@lemmy.ca
      link
      fedilink
      arrow-up
      31
      ·
      16 hours 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
      4
      ·
      11 hours 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
      2
      ·
      10 hours 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.