cross-posted from: https://lemmy.blahaj.zone/post/46091883

Though nobody expected it in the first place, AI is not perfect and can make mistakes (obviously 🙄) What’s your experience with this? I’d love to hear about it.

  • HaraldvonBlauzahn@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    1 day ago

    The level of incompetence that AI can mask is absolutely stunning.

    I had to explain to a senior embedded software architect that you need to use locks to access and change the same variable in multiple threads in concurrent C++ code.

    • WaterWaiver@aussie.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day ago

      Make the variable a word size relevant to the processor’s memory access width (eg 32bit), don’t use atomic locks, mark it as volatile, write a comment about how things are perfect this way and lockers are losers; then rig the struct it’s in to have a 50% chance of misaligning the 32bits (so two cycles are required to read/write to it) every time someone changes and recompiles the code >:D

      (Yes I no longer work as a programmer, no I don’t know why they don’t want me)