Live data from Hacker News

Asking Gemini 3 to generate Brainfuck code results in an infinite loop

teodordyakov.github.io

81–90 of 97 posts

Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop

#81

Gemini is very prone to go into an infinite loop. Sometimes, it even happens with Google's own vibe coding IDE (Antigravity): https://bsky.app/profile/egeozcan.bsky.social/post/3maxzi4gs...

``sometimes, it even happens with [antigravity]``

Isn't this a problem with the agent loop / structure, rather than the llm, in that case?

The ide doesn't affect the models results, just what is done with those results?

Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop

#82

Gemini is very prone to go into an infinite loop. Sometimes, it even happens with Google's own vibe coding IDE (Antigravity): https://bsky.app/profile/egeozcan.bsky.social/post/3maxzi4gs...

``sometimes, it even happens with [antigravity]`` Isn't this a problem with the agent loop / structure, rather than the llm, in that case? The ide doesn't affect the models results, just what is done with those results?

The problem happens across tools that use Gemini

Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop

#83
post #36

> So it made me wonder. Is Brainf*ck the ultimate test for AGI? Absolutely not. Id bet a lot of money this could be solved with a decent amount of RL compute. None of the stated problems are actually issues with LLMs after on policy training is performed.

> None of the stated problems are actually issues with LLMs after on policy training is performed But still , isnt it a major weakness they have to RL on everything that has not much data? That really weakens the attempt to make it true AGI.

No.

AGI would be a universal learner, not a magic genie. It still needs to do learning (RL or otherwise) in order to do new tasks.

Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop

#84

Gemini is very prone to go into an infinite loop. Sometimes, it even happens with Google's own vibe coding IDE (Antigravity): https://bsky.app/profile/egeozcan.bsky.social/post/3maxzi4gs...

``sometimes, it even happens with [antigravity]`` Isn't this a problem with the agent loop / structure, rather than the llm, in that case? The ide doesn't affect the models results, just what is done with those results?

I thought it was a specific prompt that breaks it, and that it's just something they never tested against, but when I saw it happen in antigravity, which supposedly must have been tested with a very specific use case, then I was very surprised.

Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop

#85
post #35

Gemini is very prone to go into an infinite loop. Sometimes, it even happens with Google's own vibe coding IDE (Antigravity): https://bsky.app/profile/egeozcan.bsky.social/post/3maxzi4gs...

It also happened to me in the gemini-cli. It tried to think but somehow failed and putted all thoughts into the output and tried again and again to switch to "user output". If was practically stuck in an infinite loop

Yep. It happens all the time. Happened to me about 5 minutes ago. It does detect this and offer you the option to stop the loop or to let it continue.

> "A potential loop was detected. This can happen due to repetitive tool calls or other model behavior. The request has been halted."

Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop

#86
post #70

Earlier quoted context omitted.

I mean, isn't that a little ridiculous? Aren't those language models already solving complicated exam questions and mathematical problems?

According to the creators, the models are on a phd level of intelligence, but they can’t get the simplest thing right.

Too easy.

Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop

#87

Gemini is very prone to go into an infinite loop. Sometimes, it even happens with Google's own vibe coding IDE (Antigravity): https://bsky.app/profile/egeozcan.bsky.social/post/3maxzi4gs...

So far they don't look to be doing anything about it, but Gemini models have a serious repetition bug.

I don't think that it is related to a specific prompt, like a "prompt logic issue" badly understood by the model, but instead, it looks like that sometimes it generates things that makes it go nuts.

My best intuition is that sometimes it forgets all the context and just look at the last X tokens as context before the repetition, and so start repeating like if the last generated tokens are the only thing that you gave to it.

Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop

#89

Earlier quoted context omitted.

> None of the stated problems are actually issues with LLMs after on policy training is performed But still , isnt it a major weakness they have to RL on everything that has not much data? That really weakens the attempt to make it true AGI.

No. AGI would be a universal learner, not a magic genie. It still needs to do learning (RL or otherwise) in order to do new tasks.

> It still needs to do learning (RL or otherwise) in order to do new tasks.

Why ? As in - why isn't reading the Brainfuck documentation enough for Gemini to learn Brainfuck ? I'd allow for 3-7 days of a learning curve like perhaps a human would need but why do you need to kinda redo the whole model (or big parts of it) just so it could learn Brainfuck or some other tool? Either the learning (RL or otherwise) need to become way more efficient than it is today (takes today weeks? months? billions of dollars) or it isn't AGI I would say. Not in practical/economic sense and I believe not in the philosophical sense of how we all envisioned true generality.

Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop

#90
I often hear comparisons to Web 1.0 (the bubble aspect, potential for change, etc).

As someone who lived and worked during that era, I don’t remember thinking “holy shit, if this ever gets released on the world at scale we’ll have serious problems”.

Maybe that was a lack of imagination and not thinking through what would actually happen to brick and mortar, the job market and so on. But it feels like this time is different. Or I’m just that much older.

Post reply on HN