this post was submitted on 08 Mar 2024
72 points (86.7% liked)

Technology

59148 readers
2703 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

I really wish all of these companies racing to replace their existing software features and employees with LLMs understood this.

They totally understand it. And OpenAI has solved it. For example while researching The Ultimate Answer to Life the Universe and Everything, I asked it to calculate 6 by 9 in base 13 and got the correct answer - 42.

ChatGPT didn't use the LLM to calculate that. It only used the LLM understand an obscure and deliberately confusing chapter of the Hitchhiker's Guide book, to write and execute this python script.

# To calculate six by nine in base 13, we multiply the numbers in our standard decimal system and then convert the result to base 13.

# Calculate 6 * 9 in decimal
result_decimal = 6 * 9

# Convert the result to base 13
# The easiest approach is to use the divmod() function repeatedly to get the remainder (which corresponds to the base 13 digit) 
# and update the quotient for the next iteration until the quotient is 0.

def decimal_to_base_n(num, base):
    if num == 0:
        return "0"
    digits = []
    while num:
        num, remainder = divmod(num, base)
        digits.append(str(remainder))
    return ''.join(digits[::-1])

# Convert the decimal result to base 13
result_base_13 = decimal_to_base_n(result_decimal, 13)

result_base_13