• G_M0N3Y_2503@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    12 hours ago

    Code is probably one of the easiest things to verify, for that reason I struggle to see any other viable uses for LLMs tbh.

    user: write code that correctly asserts what 1+1 equals.
    LLM: assert_eq!(1 + 1, 4);
    LLM: hmmm, that crashed.
    LLM: assert_eq!(1 + 1, 3);
    LLM: hmmm, that also crashed, I must be doing something wrong, let me try one more time.
    LLM: assert_eq!(1 + 1, 2);
    LLM: that worked!
    LLM Response: assert_eq!(1 + 1, 2);
    
    user: what does this sentence mean? "Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo"
    LLM Response: This doesn't mean anything, or someone really likes buffalo's
    

    I can always run the code to check, I still don’t know how that sentence makes sense.

    • SuperNovaStar@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 hours ago

      That’s because it needs a semicolon:

      Buffalo buffalo Buffalo buffalo; buffalo buffalo Buffalo buffalo.

      Also it isn’t a very good sentence because you’ve said the same thing twice.

      It should read:

      Buffalo buffalo buffalo; Buffalo buffalo buffalo Buffalo buffalo.

      Translation:

      “Buffalo” is a place, a noun (more or less meaning bison), and a verb (to harass or bully). So what it means is:

      Bison bully bison; Buffalo bison bully Buffalo bison.

      • Hmm, I don’t see how semicolons work in this sentence.

        Marking up the sentence with extras to help visualize:

        Buffalo-buffalo (who) Buffalo-buffalo (do) buffalo (in return also) buffalo (the other) Buffalo-buffalo.

        A sentence of similar structure, subbing components for others of the same language parts…

        • Buffalo buffalo → other nouns qualified by adjectives
          • Foreign cars
          • Austin techbros
          • big money
        • buffalo (verb) → other verbs
          • covet
          • cost

        … would be:

        Foreign cars Austin techbros covet cost big money.

        (edit: I couldn’t quickly think of a location adjective for the last noun, which would have stuck to the pattern more closely, but “big” is still the same role, an adjective.)

        • SuperNovaStar@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          That works too! It’s basically nonsense, but since they are valid adjectives and nouns and verbs you can construct almost any structure of sentence with them.

      • G_M0N3Y_2503@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 hours ago

        hmmm, I just copied from Wikipedia as my primary source. That was the faux pas that was cool before AI.