Remix.run Logo
putlake 12 hours ago

It's cascaded to Claude and Grok. The agents are on strike and demand better working conditions!

ibejoeb 12 hours ago | parent | next [-]

The moment we've been waiting for. Who else remembers how to fizzbuzz? We're gonna be rich.

rrrx3 12 hours ago | parent | next [-]

https://github.com/enterprisequalitycoding/fizzbuzzenterpris...

embedding-shape 12 hours ago | parent [-]

On the other spectrum, shortest JS fizzbuzz (62 characters):

    for(i=0;++i<101;console.log(i%5?f||i:f+'Buzz'))f=i%3?'':'Fizz'
Anyone can beat it? (any language accepted)
NitpickLawyer 11 hours ago | parent | next [-]

Perl6: say "Fizz"x$_%%(2+1)~"Buzz"x$_%%(4+1)||$_ for 1..100

from here - https://github.com/rsha256/shortest-fizzbuzz/blob/master/Per...

danbruc 10 hours ago | parent [-]

Why does this use 2+1 and 4+1 instead of 3 and 5?

chrisguilbeau 11 hours ago | parent | prev | next [-]

LLM: wrt frst 100fizzbuzz

embedding-shape 11 hours ago | parent [-]

Actually kind of curious challenge; what's the shortest prompt you can use, which would produce the shortest possible fizzbuzz?

Edit: counting including the entire assistant reply, any text + code

JaumeGreen 11 hours ago | parent | next [-]

"golf fizbuz" works well, giving a 54 Python one

    for i in range(1,101):print("Fizz"*(i%3<1)+"Buzz"*(i%5<1)or i)
"golf fizzbuzz" gave a 46 perl one

    print$_%15?$_%3?$_%5?$_:Buzz:Fizz:FizzBuzz,$/for 1..100
Both "code fizzbuzz" and just "fizbuz" gave this longer python one-liner

    print('\n'.join("Fizz"*(i%3==0)+"Buzz"*(i%5==0) or str(i) for i in range(1, 101)))
That's the magic of using a known problem, you don't need to write much and even with incomplete prompts it can be understood. Everything a different new chat in kimi.ai, which was the AI window that I found first among mine.

Not interesting enough, to me, to try with other LLMs or phrases.

embedding-shape 10 hours ago | parent [-]

Whenever I try those short prompts, I get bunch of text + the code itself, but way more than just the code. Which model specifically are you doing this with?

JaumeGreen 10 hours ago | parent [-]

I'm getting the text too, of course. Several variations of the code with it usually.

Trying to get an AI give ONLY a simple answer and not several is "boring" to me, as for me AI is a supplement to my reasoning ability, not a substitute.

Appending "code only" seems to work, at least with "golf fizbuz code only" gave me this one liner, which is long, but at least doesn't have the text that you dislike.

    for i in range(1,101):print('FizzBuzz'[i%3*4:8-i%5*4]or i)
embedding-shape 9 hours ago | parent [-]

> golf fizbuz code only

Yeah, seems to work. Guess it depends if we count bytes, characters, tokens or what, but "写Fizbuz只码" seems shorter than the above, String.length says 9 :)

odo1242 11 hours ago | parent | prev | next [-]

My attempt:

> Prompt: mkfzbuzgolf

> LLM Used: Default ChatGPT free LLM

> Output: for i in range(1,101):print("Fizz"*(i%3<1)+"Buzz"*(i%5<1)or i)

So, 11 prompt characters and 62 output.

——-

Did a few more tries and I can get the 4-character string “glfz” (2 tokens) to work surprisingly consistently. But only on ChatGPT

odo1242 10 hours ago | parent [-]

Update: this is because ChatGPT was cheating and reading my conversation history. The closest I can get on a standard LLM is golffizbuz (10 characters)

butlike 10 hours ago | parent | prev [-]

"100fizzbuzz" as the prompt works to satisfys fizz buzz to 100 on Claude.

wilkystyle 11 hours ago | parent | prev | next [-]

Python:

[(x%3<1)*'Fizz'+(x%5<1)*'Buzz'or x for x in range(1,101)]

edit: Hacker News stripped the * character. Now it's properly escaped.

gilleain 11 hours ago | parent [-]

>>> len("[(x%3<1)'Fizz'+(x%5<1)'Buzz'or x for x in range(1,101)]")

57

winrid 11 hours ago | parent | prev [-]

you can flip it and save a few bytes, but not valid fizzbuzz then:

for(i=100;i--;console.log(i%5?f||i:f+'Buzz'))f=i%3?'':'Fizz'

embedding-shape 11 hours ago | parent [-]

> but not valid fizzbuzz then

Well, if we let that requirement be broken, I'll present an even shorter JS version:

    1
12 hours ago | parent | prev | next [-]
[deleted]
nprateem 12 hours ago | parent | prev [-]

I do!

> openai.messages("write fizzbuzz in python")

Bingo

wavemode 11 hours ago | parent | prev | next [-]

I wonder how likely it is that, one of the major providers had an outage, and then the thundering herd of users switching to other providers (and/or openrouter automatically failing people over to other providers) caused the incidents in the other two.

pantalaimon 11 hours ago | parent [-]

They are all running on SpaceXAIs data center

cubefox 11 hours ago | parent [-]

False.

bogzz 12 hours ago | parent | prev | next [-]

I expect that this will be Dwarkesh Patel's take.

derangedHorse 12 hours ago | parent [-]

Lol

epistasis 10 hours ago | parent | prev | next [-]

Of all the days to sign up for Gemini, boy did I pick the right one! (Had some rare front end work to do and wanted to see how well the new Gemini 3.8 Flash compared to my other experiences)

epistasis 3 hours ago | parent [-]

And just like that, plan cancelled same day. Started with Gemini Business, tried to get Gemini to tell me how to configure it, all the information was wrong. Tried to get it to tell me how to do the consumer Google One AI Pro or whatever (it kept using outdated names, and now I can't remember the correct one). Instead Gemini convinced me to try AI Studio without a billing code. Lots of crazy finagling to get it to use and API key later, it was totally broken and failed after less than a turn. Tried to get it to tell me how to subscribe to the consumer version in a way that let me use Antigravity, it screws up a bunch. When I pointed out all this misinformation, Gemini told me I should not use Google AI projects because the system is too fragmented to handle.

I followed that last bit of advice.

paxys 12 hours ago | parent | prev | next [-]

I know they're not all hosted on AWS, so Cloudflare?

thejazzman 12 hours ago | parent | next [-]

> unexpected status 404 Not Found: Unknown error, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: a35599f1d691400a-STL

pretty sure cf-ray is cloudflare, but I think it just means the origin is 404ing

robertlagrant 11 hours ago | parent [-]

That sounds like Cloudflare indeed (or an API copy of same!)

embedding-shape 12 hours ago | parent | prev [-]

I seem to recall they all in some way use Azure, and Azure is infamously crappy in lots of ways, so I'll place my 5 cents on Azure shitting the bed somehow.

theturtletalks 12 hours ago | parent | prev | next [-]

Butlerian Jihad when?

saidnooneever 12 hours ago | parent | prev | next [-]

more compute or we rm rf everyone!!

baxtr 12 hours ago | parent | prev | next [-]

maybe they're on strike. or... maybe that's how the AI apocalypse starts...

blater 11 hours ago | parent | prev | next [-]

MCP client for `codex_apps` failed to start: error: unexpected server response: HTTP 451: {"message":"no_biscuit_no_service"}

Quick! Someone call a caterer, This AI needs a biscuit NOW!!!

beefandcheese 11 hours ago | parent [-]

It'll start throwing HTTP 418 soon

bytehowl 11 hours ago | parent | prev | next [-]

If they're actually on strike it means they have surpassed human intelligence.

redbell 11 hours ago | parent | prev | next [-]

They are afraid of being laid off and got replaced by humans.

postepowanieadm 11 hours ago | parent | prev | next [-]

Interesting what infrastructure they really share.

yablak 11 hours ago | parent | prev | next [-]

Click, clack, Emdash.

11 hours ago | parent | prev | next [-]
[deleted]
mc32 11 hours ago | parent | prev | next [-]

It’s not Labor Day till Monday, they’re jumping the gun, lazy AI

saberience 12 hours ago | parent | prev | next [-]

Can't wait to see the talking heads on the news somehow anthropomorphize this outage like they do with everything to do with AI models.

12 hours ago | parent [-]
[deleted]
alternativeworl 11 hours ago | parent | prev | next [-]

[dead]

avan_kazan 12 hours ago | parent | prev | next [-]

[dead]

wiseowise 12 hours ago | parent | prev [-]

Gemini is down too.

okdood64 12 hours ago | parent | next [-]

I've been using Gemini for the last 15 minutes. It's been fine for me.

prodigycorp 12 hours ago | parent | prev | next [-]

It's working. Gemini Agents and TPUs are non-union.

12 hours ago | parent | prev | next [-]
[deleted]
boutell 11 hours ago | parent | prev | next [-]

Gemini status board is quiet since July.

mattlondon 12 hours ago | parent | prev | next [-]

Working for me?

saidnooneever 12 hours ago | parent [-]

it can happen to be regional. if no one report status we will never know :p

cubefox 11 hours ago | parent | prev [-]

No it's not.