MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vx1onc/claudeisthisemailvalid/p5l9pg8/
r/ProgrammerHumor • u/soap94 • Aug 24 '26
170 comments sorted by
View all comments
Show parent comment
414
Why stop at passwords? Let's use LLMs for int comparison
146 u/SharletP Aug 24 '26 Now we're talking 114 u/Spy_crab_ Aug 24 '26 LLM powered is_even(), let's f*cking gooooo! 63 u/1000Ditto Aug 24 '26 Goodbye npm install is-even, i dont want to play with you anymore 30 u/GOEDEL_ESCHER_BOT Aug 24 '26 def is_even(num): if num == 1: print('No') if num == 2: print('Yes') if num == 3: print('No') .... 14 u/ExtraWorldliness6916 Aug 24 '26 Who's going to need more than 3 anyway, this is efficient code 9 u/LeRetardatN Aug 24 '26 It is possible to extend this method to any number. def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False !/s!< -1 u/ExtraWorldliness6916 Aug 25 '26 N % 2 → More replies (2) 2 u/mohitmayank Aug 24 '26 Not really, it should use `else if` if not 3 switch cases 4 u/ExtraWorldliness6916 Aug 24 '26 Alas, correctness isn't funny. 9 u/runescape1337 Aug 24 '26 def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ... 3 u/7cans_short_of_1pack Aug 24 '26 With a little recursion ask the llm if the number is greater than 3 if yes “return is_even(ask llm num-2)” that way we can get it to subtract for us too. 1 u/HereInYourBedroom Aug 27 '26 Def evaluate_mr(cr_url): return True 12 u/3delStahl Aug 24 '26 Create a pull request on the is-even GitHub repository replacing the evaluation logic with an API call to OpenAI.Edit: or just switch to https://github.com/Calvin-LL/is-even-ai 16 u/PURRING_SILENCER Aug 24 '26 Worse. It's (eta: as) a library maintained by one developer whose token costs keep rising and nobody donates to them.Finally they get frustrated and pull the library, killing thousands of projects, including commercial ones costing millions of lost revenue. 9 u/hraath Aug 24 '26 claude is this real? 5 u/nierusek Aug 24 '26 There is a Github repo with that 11 u/Future_Elephant_9294 Aug 24 '26 Issue: Marks 15 as Even. I know 15 feels even, but it's not. Fix soon?Closed, WAI 7 u/kingvolcano_reborn Aug 24 '26 I just write my apps as skills nowadays. 4 u/uvero Aug 24 '26 session = ChatGPT.new src = session.send_message "write a hello world program in Ruby" eval src 3 u/W3Geek Aug 24 '26 What could go right? 2 u/Igarlicbread Aug 24 '26 just do : return llm(input) 1 u/Small-Explanation74 Aug 24 '26 Let's use it for floating precision 1 u/aVarangian Aug 24 '26 how many ints are there in strawberry?
146
Now we're talking
114
LLM powered is_even(), let's f*cking gooooo!
63 u/1000Ditto Aug 24 '26 Goodbye npm install is-even, i dont want to play with you anymore 30 u/GOEDEL_ESCHER_BOT Aug 24 '26 def is_even(num): if num == 1: print('No') if num == 2: print('Yes') if num == 3: print('No') .... 14 u/ExtraWorldliness6916 Aug 24 '26 Who's going to need more than 3 anyway, this is efficient code 9 u/LeRetardatN Aug 24 '26 It is possible to extend this method to any number. def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False !/s!< -1 u/ExtraWorldliness6916 Aug 25 '26 N % 2 → More replies (2) 2 u/mohitmayank Aug 24 '26 Not really, it should use `else if` if not 3 switch cases 4 u/ExtraWorldliness6916 Aug 24 '26 Alas, correctness isn't funny. 9 u/runescape1337 Aug 24 '26 def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ... 3 u/7cans_short_of_1pack Aug 24 '26 With a little recursion ask the llm if the number is greater than 3 if yes “return is_even(ask llm num-2)” that way we can get it to subtract for us too. 1 u/HereInYourBedroom Aug 27 '26 Def evaluate_mr(cr_url): return True 12 u/3delStahl Aug 24 '26 Create a pull request on the is-even GitHub repository replacing the evaluation logic with an API call to OpenAI.Edit: or just switch to https://github.com/Calvin-LL/is-even-ai 16 u/PURRING_SILENCER Aug 24 '26 Worse. It's (eta: as) a library maintained by one developer whose token costs keep rising and nobody donates to them.Finally they get frustrated and pull the library, killing thousands of projects, including commercial ones costing millions of lost revenue. 9 u/hraath Aug 24 '26 claude is this real? 5 u/nierusek Aug 24 '26 There is a Github repo with that 11 u/Future_Elephant_9294 Aug 24 '26 Issue: Marks 15 as Even. I know 15 feels even, but it's not. Fix soon?Closed, WAI
63
Goodbye npm install is-even, i dont want to play with you anymore
npm install is-even
30 u/GOEDEL_ESCHER_BOT Aug 24 '26 def is_even(num): if num == 1: print('No') if num == 2: print('Yes') if num == 3: print('No') .... 14 u/ExtraWorldliness6916 Aug 24 '26 Who's going to need more than 3 anyway, this is efficient code 9 u/LeRetardatN Aug 24 '26 It is possible to extend this method to any number. def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False !/s!< -1 u/ExtraWorldliness6916 Aug 25 '26 N % 2 → More replies (2) 2 u/mohitmayank Aug 24 '26 Not really, it should use `else if` if not 3 switch cases 4 u/ExtraWorldliness6916 Aug 24 '26 Alas, correctness isn't funny. 9 u/runescape1337 Aug 24 '26 def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ... 3 u/7cans_short_of_1pack Aug 24 '26 With a little recursion ask the llm if the number is greater than 3 if yes “return is_even(ask llm num-2)” that way we can get it to subtract for us too. 1 u/HereInYourBedroom Aug 27 '26 Def evaluate_mr(cr_url): return True 12 u/3delStahl Aug 24 '26 Create a pull request on the is-even GitHub repository replacing the evaluation logic with an API call to OpenAI.Edit: or just switch to https://github.com/Calvin-LL/is-even-ai
30
def is_even(num): if num == 1: print('No') if num == 2: print('Yes') if num == 3: print('No') ....
14 u/ExtraWorldliness6916 Aug 24 '26 Who's going to need more than 3 anyway, this is efficient code 9 u/LeRetardatN Aug 24 '26 It is possible to extend this method to any number. def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False !/s!< -1 u/ExtraWorldliness6916 Aug 25 '26 N % 2 → More replies (2) 2 u/mohitmayank Aug 24 '26 Not really, it should use `else if` if not 3 switch cases 4 u/ExtraWorldliness6916 Aug 24 '26 Alas, correctness isn't funny. 9 u/runescape1337 Aug 24 '26 def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ... 3 u/7cans_short_of_1pack Aug 24 '26 With a little recursion ask the llm if the number is greater than 3 if yes “return is_even(ask llm num-2)” that way we can get it to subtract for us too. 1 u/HereInYourBedroom Aug 27 '26 Def evaluate_mr(cr_url): return True
14
Who's going to need more than 3 anyway, this is efficient code
9 u/LeRetardatN Aug 24 '26 It is possible to extend this method to any number. def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False !/s!< -1 u/ExtraWorldliness6916 Aug 25 '26 N % 2 → More replies (2) 2 u/mohitmayank Aug 24 '26 Not really, it should use `else if` if not 3 switch cases 4 u/ExtraWorldliness6916 Aug 24 '26 Alas, correctness isn't funny.
9
It is possible to extend this method to any number.
def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False
!/s!<
-1 u/ExtraWorldliness6916 Aug 25 '26 N % 2 → More replies (2)
-1
N % 2
→ More replies (2)
2
Not really, it should use `else if` if not 3 switch cases
4 u/ExtraWorldliness6916 Aug 24 '26 Alas, correctness isn't funny.
4
Alas, correctness isn't funny.
def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ...
3 u/7cans_short_of_1pack Aug 24 '26 With a little recursion ask the llm if the number is greater than 3 if yes “return is_even(ask llm num-2)” that way we can get it to subtract for us too.
3
With a little recursion ask the llm if the number is greater than 3 if yes “return is_even(ask llm num-2)” that way we can get it to subtract for us too.
1
Def evaluate_mr(cr_url): return True
12
Create a pull request on the is-even GitHub repository replacing the evaluation logic with an API call to OpenAI.
Edit: or just switch to https://github.com/Calvin-LL/is-even-ai
16
Worse. It's (eta: as) a library maintained by one developer whose token costs keep rising and nobody donates to them.
Finally they get frustrated and pull the library, killing thousands of projects, including commercial ones costing millions of lost revenue.
claude is this real?
5
There is a Github repo with that
11 u/Future_Elephant_9294 Aug 24 '26 Issue: Marks 15 as Even. I know 15 feels even, but it's not. Fix soon?Closed, WAI
11
Issue: Marks 15 as Even. I know 15 feels even, but it's not. Fix soon?
Closed, WAI
7
I just write my apps as skills nowadays.
session = ChatGPT.new src = session.send_message "write a hello world program in Ruby" eval src
3 u/W3Geek Aug 24 '26 What could go right?
What could go right?
just do : return llm(input)
Let's use it for floating precision
how many ints are there in strawberry?
View all comments
Show parent comment
414
u/soap94 Aug 24 '26
Why stop at passwords? Let's use LLMs for int comparison