Asking Gemini 3 to generate Brainfuck code results in an infinite loop
91–97 of 97 posts
Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop
#92Earlier quoted context omitted.
I agree, although I was referring to asterisks like de*d and k*ll (or censoring with black bars, or using emojis) - euphemisms of course have always been part of language evolution.
I chose unalive because i didn't know google trends allowed searching for asterisks. Appears it does. k*ll was apparently used even before tiktok but usage increased markedly around the same time as unalive appeared. Interestingly d*ad and r*pe don't follow this pattern. I am not sure it treats asterisks correctly, nor that google trends is the right tool to research this, given people searching for the word is only…
Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop
#93I run models with llama.cpp and the reason why I add some repeat penalty factor.
Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop
#94Earlier quoted context omitted.
To me, that's still unreadable. While the intention of the code may be documented, it's pretty hard to understand if that "+" is really correct, or if that " ". I can't even understand if a comment starts or terminates a particular piece of code. BTW, how come there are dashes in the comment?
The initial long comment starts with the [ command and ends with the ] command so it forms a loop that is executed while the current cell is nonzero. But initially, all tape cells are zero, so the whole loop is in fact skipped. Readability is a spectrum. The brainfuck code is still somewhat readable compared to for instance this Binary Lambda Calculus program: 000100011001100101000110100000000101100000100100010101111…
Second, while readability comes in various degrees (probably more of a high-dimensional value than a linear spectrum, but well), the only thing that's readable about brainfuck is the comment. The code itself is not understandable, unless you really start digging into it and manage to understand the state it is in at every step of the program. Even then I would argue it isn't readable: your vision provides very few clues to the meaning of each step.
The comment serves as a guidance where certain parts start (or end, I can't tell). It explains a few things about the code, but even from the comment I cannot understand what it does. Also, the comment might be entirely wrong. There's only a very hard way to tell.
Your binary lambda example is also unreadable, but at least it doesn't have as much state as the BF program (which, admittedly, is much larger). Breaking it down might require less effort.
Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop
#95Earlier quoted context omitted.
The initial long comment starts with the [ command and ends with the ] command so it forms a loop that is executed while the current cell is nonzero. But initially, all tape cells are zero, so the whole loop is in fact skipped. Readability is a spectrum. The brainfuck code is still somewhat readable compared to for instance this Binary Lambda Calculus program: 000100011001100101000110100000000101100000100100010101111…
First, the parent comment didn't say anything about a spectrum. It just posited "it's legible." But it isn't to me, nor to 99.999% of the people here, I assume. Even those who've dabbled once in BF will probably find it hard, as the comment admits to using tricks. Second, while readability comes in various degrees (probably more of a high-dimensional value than a linear spectrum, but well), the only thing that's read…
Actually, it has much more, as it's an infinitely large prime number sieve, as shown on top of my webpage https://tromp.github.io/cl/cl.html
Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop
#96Re: Asking Gemini 3 to generate Brainfuck code results in an infinite loop
#97Gemini is my favorite, but it does seem to be prone to “breaking” the flow of the conversation. Sharing “system stuff” in its responses, responding to “system stuff”, starts sharing thoughts as responses, responses as thoughts, ignoring or forgetting things that were just said (like it’s suddenly invisible), bizarre formatting, switching languages for no reason, saying it will do something (like calling a tool) inste…
This sounds like an artifact of the Gemini consumer app, some others may be too (the model providers are doing themselves a disservice by calling them the same).