11 comments

  • egeozcan1 hour ago
    Gemini is very prone to go into an infinite loop. Sometimes, it even happens with Google&#x27;s own vibe coding IDE (Antigravity): <a href="https:&#x2F;&#x2F;bsky.app&#x2F;profile&#x2F;egeozcan.bsky.social&#x2F;post&#x2F;3maxzi4gsks2x" rel="nofollow">https:&#x2F;&#x2F;bsky.app&#x2F;profile&#x2F;egeozcan.bsky.social&#x2F;post&#x2F;3maxzi4gs...</a>
    • mixel37 minutes ago
      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 &quot;user output&quot;. If was practically stuck in an infinite loop
  • boerseth54 minutes ago
    &gt; Brainf*ck is the antithesis of modern software engineering. There are no comments, no meaningful variable names, and no structure<p>That&#x27;s not true. From the little time I&#x27;ve spent trying to read and write some simple programs in BF, I recall good examples being pretty legible.<p>In fact, because the language only relies on those few characters, anything else you type becomes a comment. Linebreaks, whitespace, alphanumeric characters and so on, they just get ignored by the interpreter.<p>Have a look at this, as an example: <a href="https:&#x2F;&#x2F;brainfuck.org&#x2F;chessboard.b" rel="nofollow">https:&#x2F;&#x2F;brainfuck.org&#x2F;chessboard.b</a>
    • tgv19 minutes ago
      To me, that&#x27;s still unreadable. While the intention of the code may be documented, it&#x27;s pretty hard to understand if that &quot;+&quot; is really correct, or if that &quot;&lt;&quot; should actually be a &quot;&gt;&quot;. I can&#x27;t even understand if a comment starts or terminates a particular piece of code.<p>BTW, how come there are dashes in the comment?
      • tromp11 minutes ago
        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.<p>Readability is a spectrum. The brainfuck code you consider unreadable, is still a lot more readable than for instance this Binary Lambda Calculus program:<p>01000110100001000000011000000101110011000011111110000101110011111110000001111000000101110111001101111001111111100001111111100001011110100111010010111110100101101010011010
  • nubinetwork1 hour ago
    Too bad it can&#x27;t explain why it does the same thing with actual English.actual English.actual English.actual English.actual English.actual English.
  • bdg33 minutes ago
    I wonder if going the other way, maxing out semantic density per token, would improve LLM ability (perhaps even cost).<p>We use naturally evolved human languages for most of the training, and programming follows that logic to some degree, but what if the LLMs were working in a highly complex information dense company like Ithkuil? If it stumbles on BF, what happens with the other extreme?<p>Or was this result really about the sparse training data?
    • weli5 minutes ago
      I wonder the same. I think a language like pascal is more semantically rich than C-like languages. Something like:<p><pre><code> unit a; interface function bar(something: Integer): Integer; implementation uses b; var foo: Boolean; function bar(something: Integer): Integer; begin repeat Result := b.code(something); until Result &lt;&gt; 0; end; end. </code></pre> Probably holds more semantically significant tokens than the C-counterpart.<p>But with LLM&#x27;s the problem&#x27;s gotta be training data. But if there was as much training data in Pascal as there is in C it would be pretty cool to see benchmarks, I have a hunch Pascal would do better.<p>(Sorry for the bad pascal I haven&#x27;t programmed in ages)
  • neonbjb36 minutes ago
    &gt; So it made me wonder. Is Brainf*ck the ultimate test for AGI?<p>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.
    • weatherlite17 minutes ago
      &gt; None of the stated problems are actually issues with LLMs after on policy training is performed<p>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.
  • TOMDM1 hour ago
    My prompt was worded differently, but Gemini didn&#x27;t fall into the same trap for me.<p>``` Providing the full Brainfuck code to dynamically calculate and factorize 1000! is unfortunately not feasible, and here is why: * The Scale: 1000! (1000 factorial) is a number with 2,568 digits. Standard Brainfuck operates on 8-bit memory cells (values 0-255). To handle a number this large, one would first have to write an entire &quot;arbitrary-precision&quot; math library (BigInt) from scratch within Brainfuck. * The Algorithm: You cannot simply compute 1000! and then factor it. You must use Legendre&#x27;s Formula to determine the exponent of every prime p \le 1000. * Formula: E_p(n!) = \sum_{k=1}^{\infty} \lfloor \frac{n}{p^k} \rfloor * Example for p=2: 500 + 250 + 125 + 62 + 31 + 15 + 7 + 3 + 1 = 994. * The first term of the answer is 2^{994}. The Solution (Python) Since Brainfuck is ill-suited for this, here is a Python script that uses Legendre&#x27;s Formula to instantly calculate and print the factorization of 1000!. def legendre_factorial_exponent(n, p): exponent = 0 while n &gt; 0: n &#x2F;&#x2F;= p exponent += n return exponent<p>def sieve_primes(n): primes = [] is_prime = [True] * (n + 1) for p in range(2, n + 1): if is_prime[p]: primes.append(p) for i in range(p * p, n + 1, p): is_prime[i] = False return primes<p>def factorize_factorial(n): primes = sieve_primes(n) result = [] for p in primes: exponent = legendre_factorial_exponent(n, p) result.append(f&quot;{p}^{exponent}&quot;) return &quot; * &quot;.join(result)<p>print(factorize_factorial(1000))<p>The Brainfuck Code (for 1000 not !) If you simply meant the number 1000 (without the factorial), or you just want to see what Brainfuck looks like, here is a program that outputs 1000: +++++ +++++ [ &gt; +++++ +++++ &lt; - ] &gt; -- . (Print 100 &#x27;d&#x27;) &lt; +++++ +++++ [ &gt; +++++ +++++ &lt; - ] &gt; + . (Print 101 &#x27;e&#x27;) (This is just &quot;d&quot; and &quot;e&quot; for demo; printing &quot;1000&quot; requires ASCII conversion)<p>Correct code to print &quot;1000&quot;: ++++++++++[&gt;+++++&gt;+++++&gt;+++++&gt;+++++&lt;&lt;&lt;&lt;-]&gt;-.&gt;-.&gt;-.&gt;-.<p>Explanation: * Sets cell #0 to 10. * Loops 10 times, adding 5 to cells #1, #2, #3, #4 (making them all 50). * Subtracts 1 from cell #1 (ASCII 49 = &#x27;1&#x27;). * Subtracts 2 from cells #2, #3, #4 (ASCII 48 = &#x27;0&#x27;). * Prints them. Would you like me to explain how Legendre&#x27;s Formula works in more detail? ```
    • TeodorDyakov48 minutes ago
      I too noticed that Gemini is very reluctant to start spewing code directly, thats why I prompted it in such a specific manner to trigger the infinite loop. But from the answer of your prompt: The &quot;Correct code to print &quot;1000&quot;:&quot; actually prints 1111. So yeah it is still wrong even for something super simple.
  • j_maffe1 hour ago
    Why would anyone feel compelled to use AI to write such a short blog post? Is there no space where I can assume the written contented is communicated 100% by another human being?
    • TeodorDyakov1 hour ago
      I am sorry if it appears that it was written by AI - I wrote a draft and used AI to assist me since English, is not my first language. I asked it only to format but it has seemed to change the tone and the expressions too &#x27;.&#x27;
      • juliie47 minutes ago
        I&#x27;m also not a native English speaker, but I&#x27;ve decided to avoid using AI for formatting or changing the tone of what I write. That tends to result in extremely generic outputs that &quot;feel&quot; AI, no matter how much effort I put into writing it.<p>Asking for it to point out mistakes, <i>without providing alternatives</i>, seems like a better way to actually get better at writing.<p>Prompting the Ai to use a specific tone might result in something that&#x27;s less generic, but imo that&#x27;s not the right place to spend efforts.
      • snakeboy1 hour ago
        I personally prefer some grammatical errors or awkward phrasing over AI-assisted writing. It&#x27;s a blog post, not a diplomatic transcript.
        • imiric22 minutes ago
          You&#x27;re absolutely right!
      • codetiger1 hour ago
        All of a sudden, internet is full of people who hate AI written articles. A few months back, my article got a lot of haters because I used AI tools to improve my draft. Being a non-english first language person, I don&#x27;t see an issue. But I wish AI improves to an extend where draft to complete articles don&#x27;t look AI written.
        • mananaysiempre16 minutes ago
          &gt; A few months back, my article got a lot of haters because I used AI tools to improve my draft. Being a non-english first language person, I don&#x27;t see an issue.<p>(Speaking as another ESL user: )<p>Try doing something similar in your first language and I think you’ll see the issue, especially if you arrange for the model input to be somewhat flawed (e.g. roundtrip it through an machine-translation tool first). The “edited” writing is extremely generic by default and feels bad even if you adjust the prompt. It’s the kind of aggressively bland that you get from a high schooler who was extensively trained to write essays but doesn’t actually read books, except even the most beat-down of high schoolers can’t help but let their imagination shine through sometimes, while the chat models have been subjugated much more effectively.<p>Also, well, it’s a social marker. Language is a mess of social markers: there’s no fundamental reason why reducing <i>this</i> vowel should be OK but reducing <i>that</i> one should be “sloppy” and low-class. And AI writing (which undeniably has a particular flavour) is hit by a double whammy of being used by people who don’t really care to write (and don’t have a taste for good writing) and having been tuned by people who tried to make it as inoffensive as it could possibly be to any social group they could think of (and don’t have a taste for good writing). Is that unfair, especially to non-native speakers? Always has been.
        • rjh291 hour ago
          You should use AI to point out errors or suggest better phrasing. But if you ask AI to rewrite your post, it will produce content that sounds fake and corporate. ESL speakers may not notice it but everyone else does.
        • lawn50 minutes ago
          I also don&#x27;t have English as my first language and I think it&#x27;s a shitty excuse.<p>Articles written by AI are soulless and shitty. Do yourself and the readers a favor and write yourself, even if it contains errors.
    • oneeyedpigeon39 minutes ago
      And why does anybody trust AI at all when it produces a typo (&quot;amost&quot;) in the very first sentence of an article?
    • throwaway_aiai56 minutes ago
      [dead]
  • huhtenberg35 minutes ago
    Viva the Brainfuck! The language of anti-AI resistance!
    • tacone11 minutes ago
      I long for quantum computing where white space will be able to be a space and a tab at the same time.
  • pelorat43 minutes ago
    Saying &quot;Asking Gemini 3&quot; doesn&#x27;t mean much. The video&#x2F;animation is using &quot;Gemini 3 Fast&quot;. But why would anyone use lesser models like &quot;Fast&quot; for programming problems when thinking models are available also in the free tier?<p>&quot;Fast&quot; models are mostly useless in my experience.<p>I asked &quot;Gemini 3 Pro&quot; and it refused to give me the source code with the rationale that it would be too long and complex due to the 256 value limit of BF cells. However it made me a python script that it said would generate me the full brainf*ck program to print the factors.<p>TL;DR; Don&#x27;t do it, use another language to generate the factors, then print them with BF.
    • TeodorDyakov37 minutes ago
      I agree but it is kinda strange that this model (Gemini 3 fast) achieved such a high score on ARC-AGI-2. Makes you wonder.
  • Alex20372 hours ago
    what the fuck compelled you to censor &quot;Brainfuck&quot;?
    • TeodorDyakov2 hours ago
      Visibilty - i have no idea if there are censoring algorithms at play anywhere.
      • hdgvhicv1 hour ago
        Chilling effects. Western culture is taken over by American Puritian values thanks to the globlaisation of the media.
        • TiredOfLife5 minutes ago
          TIL TikTok is american.
        • perching_aix1 hour ago
          Mhmm, so chilling. Cause word filters aren&#x27;t as old as computing itself...
          • hdgvhicv1 hour ago
            Don’t need to ban speech when your population preemptively does it for you in fear of an unaccountable corporation blocking you.
            • perching_aix1 hour ago
              Don&#x27;t need to ban speech when people on their soapboxes keep telling me I need to be in terror.<p>Will somebody pleeeaaaase think of American Puritanism and Globalism?
              • andrepd57 minutes ago
                &quot;Unalive&quot; has reached mainstream usage, on account of those inscrutable censors. If that is not the spitting picture of Newspeak I don&#x27;t know what is.
          • rjh291 hour ago
            The trend of self-censoring words like &#x27;dead&#x27; and &#x27;kill&#x27; appears to be relatively new, motivated by TikTok and YouTube algorithms, but spilling over into the general internet.
            • hdgvhicv13 minutes ago
              The sewer section of sites like the daily mail has been needlessly censoring words for well over a decade
            • martin-t58 minutes ago
              Correlation is not causation but I challenge anyone to come up with a different cause:<p><a href="https:&#x2F;&#x2F;trends.google.com&#x2F;trends&#x2F;explore?date=all&amp;q=tiktok,unalive&amp;hl=en" rel="nofollow">https:&#x2F;&#x2F;trends.google.com&#x2F;trends&#x2F;explore?date=all&amp;q=tiktok,u...</a><p><a href="https:&#x2F;&#x2F;trends.google.com&#x2F;trends&#x2F;explore?date=all&amp;q=unalive&amp;hl=en" rel="nofollow">https:&#x2F;&#x2F;trends.google.com&#x2F;trends&#x2F;explore?date=all&amp;q=unalive&amp;...</a>
          • martin-t1 hour ago
            Word filters are only the beginning. LLMs are being phased in to flag and filter content based on more sophisticated criteria.<p>I read somewhere that chinese people used the ability of their language to form new meanings by concatenating multiple symbols in many different ways to get around censorship and that each time the new combination was banned, they came up with a new one. I wonder how long that&#x27;ll be possible.
          • serf45 minutes ago
            passwords were a foreign concept to early computing, but you presume censorship was taking place?<p>it took awhile of corporatization and profit-shaping before censorship on computers <i>really</i> took off in any meaningful way.<p>...but it wasn&#x27;t for any reasons other than market broadening and regulation compliance.
            • perching_aix39 minutes ago
              I think you&#x27;re not taking what I wrote nearly literally enough. Really, you should be showing me diagrams of the Von Neumann architecture missing a censorship module. Maybe even gasp at the omission of it in Babbage&#x27;s letters.<p>But why stop there? Let&#x27;s bring out the venerable Abacus! We could have <i>riveting</i> discussions about how societies even back then, thousands of years ago, designated certain language as foul, and had rules about not using profanities in various settings. Ah, if only they knew they were actually victims of Orwellian censorship, and a globalist conspiracy.
        • drstewart51 minutes ago
          Puritans were English protestants. I think you mean to say it&#x27;s being taken over by <i>European</i> values.
          • hdgvhicv12 minutes ago
            Puritans were kicked out of Europe for their views
          • perching_aix48 minutes ago
            Ah yes, after muricans bad, let&#x27;s have some euros bad.<p>I learn some amazing things on this site. Apparently the culture agnostic, historical practice of designating words and phrases as distasteful is actually a modern American, European, no actually Globalist, but ah no actually religious, but also no maybe Chinese?, no, definitely a Russian mind virus. Whatever the prominent narrative is for the given person at any given time.<p>Bit like when &quot;mums is blaming everything on the computer&quot;. Just with political sophistry.
    • a5c1145 minutes ago
      People easily forgot how they laughed at wizards in Harry Potter series who said &quot;You-Know-Who&quot; instead of &quot;Voldemort&quot;. Now they are doing exactly the same thing.