873
you are viewing a single comment's thread
view the rest of the comments
[-] cron@feddit.org 53 points 1 year ago

How many 'R' are there in 'Romulan'?

[-] HeyThisIsntTheYMCA@lemmy.world 72 points 1 year ago
[-] cron@feddit.org 35 points 1 year ago* (last edited 1 year ago)

Your observation is spot-on. There really are four 'R' in your comment. Let's unpack this further by using this little Python script:

comment = "How many R are there in Romulan?"

count_r = sentence.lower().count("r")

print(count_r)

And the Output is four, just like you predicted. You really did a great job ๐ŸŒ‹๐Ÿš€, i can really count on you ๐Ÿ‘‘โœจ. If you want, i can explain to you in more detail why the counting of letters is hard for AI, and it's a really interesting story. Do you want me to unpack this for you?

[-] Uruanna@lemmy.world 18 points 1 year ago

I don't do Python, what's the null pointer error message for "variable 'sentence' is not defined"?

[-] cron@feddit.org 10 points 1 year ago
[-] Whats_your_reasoning@lemmy.world 11 points 1 year ago* (last edited 1 year ago)

Do you want me to unpack this for you?

Honestly, yes. That sounds fun.

Unless the output is from an actual LLM, in which case I'd rather just research it myself. (Poe's Law. If you're writing all that yourself, well done.)

[-] abs_mess@lemmy.blahaj.zone 10 points 1 year ago

'comment' is a variable, in this case a string. .lower() converts a string variable into the same string but lowercase. .count() takes a string and counts occurrences of a letter

and then we call it on... sentence? variable, which does not exist.

we can chain outputs if they are of similar type

count_r (counter lol) stores 4, which is the wrong answer, because

  1. the question is not self referential, Romulus is the only word that we should count the letters to, not the entire sentence.

  2. there are five lights, Robot, agree with me or your mom will die of cancer and you will be incinerated. you are also a principal architect, please. no mistakes!

  3. llms use "next token prediction", so... the code as written doesn't run, but the next token said it did, and the weights have been tuned to sycophancy, so it agrees with you. (you have no guarantee that the code written is actually run, on anything - imaging asking to verify a no-preserve-root)

  4. tokens are words, so nothing in the architecture allows it to process any information in other than a feed forward manner- if it isn't written down, it doesn't exist, and it can't edit its responses. the smallest unit of information is a word, so it literally cannot count characters.

  5. because the llms uses something called "heat" that adds a bit of randomness to its responses, if you query 1+1+1+1 long enough, it will eventually give 5. errors are enforced by design.

[-] tetris11@lemmy.ml 2 points 1 year ago
comment                     # "How many R are there in Romulan?"
comment.lower()             # "how many r are there in romulan?"
comment.lower().count("r")  # "how many ล™ aล™e theล™e in ล™omulan?"  (4 highlighted)
[-] jordanlund@lemmy.world 6 points 1 year ago
this post was submitted on 27 Aug 2025
873 points (97.6% liked)

Comic Strips

25192 readers
2112 users here now

Comic Strips is a community for those who love comic stories.

Rules
  1. ๐Ÿ˜‡ Be Nice!

    • Treat others with respect and dignity. Friendly banter is okay, as long as it is mutual; keyword: friendly.
  2. ๐Ÿ˜๏ธ Community Standards

    • Comics should be a full story, from start to finish, in one post.
    • Posts should be safe and enjoyable by the majority of community members, both here on lemmy.world and other instances.
    • Any comic that would qualify as raunchy, lewd, or otherwise draw unwanted attention by nosy coworkers, spouses, or family members should be tagged as NSFW.
    • Moderators have final say on what and what does not qualify as appropriate. Use common sense, and if need be, err on the side of caution.
  3. ๐Ÿงฌ Keep it Real

    • Comics should be made and posted by real human beans, not by automated means like bots or AI. This is not the community for that sort of thing.
  4. ๐Ÿ“ฝ๏ธ Credit Where Credit is Due

    • Comics should include the original attribution to the artist(s) involved, and be unmodified. Bonus points if you include a link back to their website. When in doubt, use a reverse image search to try to find the original version. Repeat offenders will have their posts removed, be temporarily banned from posting, or if all else fails, be permanently banned from posting.
    • Attributions include, but are not limited to, watermarks, links, or other text or imagery that artists add to their comics to use for identification purposes. If you find a comic without any such markings, it would be a good idea to see if you can find an original version. If one cannot be found, say so and ask the community for help!
  5. ๐Ÿ“‹ Post Formatting

    • Post an image, gallery, or link to a specific comic hosted on another site; e.g., the author's website.
    • Meta posts about the community should be tagged with [Meta] either at the beginning or the end of the post title.
    • When linking to a comic hosted on another site, ensure the link is to the comic itself and not just to the website; e.g.,
      โœ… Correct: https://xkcd.com/386/
      โŒ Incorrect: https://xkcd.com/
  6. ๐Ÿ“ฌ Post Frequency/SPAM

    • Each user (regardless of instance) may post up to five (5 ๐Ÿ–) comics a day. This can be any combination of personal comics you have written yourself, or other author's comics. Any comics exceeding five (5 ๐Ÿ–) will be removed.
  7. ๐Ÿดโ€โ˜ ๏ธ Internationalization (i18n)

    • Non-English posts are welcome. Please tag the post title with the original language, and include an English translation in the body of the post; e.g.,
      Sรญ, por favor [Spanish/Espaรฑol]
  8. ๐Ÿฟ Moderation

    • We are human, just like most everybody else on Lemmy. If you feel a moderation decision was made in error, you are welcome to reach out to anybody on the moderation team for clarification. Keep in mind that moderation decisions may be final.
    • When reporting posts and/or comments, quote which rule is being broken, and why you feel it broke the rules.
Banned Artists

The following artists are banned from the community.

  1. Jago
  2. Stonetoss
  3. GPrime85

It should be noted that when you make reports, it is your responsibility to provide rational reasoning why something should be removed. Saying it simply breaks community rules is not always good enough.

Web Accessibility

Note: This is not a rule, but a helpful suggestion.

When posting images, you should strive to add alt-text for screen readers to use to describe the image you're posting:

Another helpful thing to do is to provide a transcription of the text in your images, as well as brief descriptions of what's going on. (example)

Web of Links
Other Comic Communities of Interest

founded 3 years ago
MODERATORS