17 comments

  • mufeedvh19 hours ago
    Author of this silly project here!<p>Sharing a bit of backstory on why I decided to work on this; Firstly, “for fun” but primarily because I felt like I started losing the childlike wonder&#x2F;whimsy I once had with programming.<p>So I started this new hobby where I ask myself “can I hack on this?” upon getting&#x2F;seeing something.<p>For instance, I got this new Aula F75 keyboard (really good keyboard for the price btw, it sounds good too!) and it only has dedicated control software for Windows. So I downloaded the driver files, software executable, and manual sheet and reverse engineered the full protocol&#x2F;packets and rebuilt it for my Mac. Then played snake with the backlights. Fun.<p>Anywho, happy to see my blog on the front page. Would love to hear if anyones going through something similar or working on silly little projects! :)
    • AdieuToLogic15 hours ago
      Great post, thanks for sharing it!<p>When I saw the title, I thought of Lambda Calculus[0] and SKI combinators[1]. Given that there are &quot;only six useful colors&quot;, I wonder if M&amp;Ms could be used to implement them.<p>0 - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lambda_calculus" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lambda_calculus</a><p>1 - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;SKI_combinator_calculus" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;SKI_combinator_calculus</a>
      • mufeedvh11 hours ago
        Funny you mention that, because yes, a combinator-style encoding is probably a cleaner fit for the “only six colors constraint than my stack machine. I hacked together a tiny SKI-flavored M&amp;M reducer as a proof of concept: B=S, G=K, R=I, Y=(, O=), and N... is a free atom, so `B G G NNN` reduces to `a2`.<p>Gist: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;mufeedvh&#x2F;db930a423fdce8c1d8e495c7a3ffdcdb" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;mufeedvh&#x2F;db930a423fdce8c1d8e495c7a3f...</a>
    • berlinquin16 hours ago
      Fun project! I had a similar project a while back, but my medium of choice was the Uno card game. I called it UnoScript [1] and it had similar mechanisms as color was an important factor. I also ended with a stack as the main part of the language, where different colors&#x2F;combinations of cards could read from&#x2F;modify the stack. Interesting how similar constraints can lead to some similar design choices!<p>[1](<a href="https:&#x2F;&#x2F;github.com&#x2F;berlinquin&#x2F;UnoScript" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;berlinquin&#x2F;UnoScript</a>)
    • pkaral13 hours ago
      This makes the world a better place. I got a little oxytocin hit just from the thought that somewhere on this world, someone is working on this problem. Now I&#x27;ll be kinder to old ladies and give those poor puppies a pass.
    • chocochunks18 hours ago
      Does this work with real candy?
      • mufeedvh16 hours ago
        Yes! Just make sure to take a photo on a plain white surface is all.<p>With:<p><pre><code> uv run mnm decompile path&#x2F;to&#x2F;photo.png --mode photo</code></pre>
  • bronlund21 hours ago
    It’s funny until one guy spills his bag of M&amp;M’s and accidentally deletes the production database.
    • ramon15618 hours ago
      Wanted to fix this bug but I ran out of green M&amp;M&#x27;s
  • Timwi9 hours ago
    Will read this later, but in the meantime, if you&#x27;re into “physical programming”, check out efghij: <a href="https:&#x2F;&#x2F;esolangs.org&#x2F;wiki&#x2F;Efghij" rel="nofollow">https:&#x2F;&#x2F;esolangs.org&#x2F;wiki&#x2F;Efghij</a>
  • amelius18 hours ago
    What color is your function?
    • spaqin15 hours ago
      That&#x27;s one language that doesn&#x27;t need an external IDE for syntax highlighting.
  • rhoopr4 hours ago
    Looking forward to the first LLM&amp;M coding agent
  • bigstrat200319 hours ago
    It&#x27;s all fun and games until some fat bastard like me decides he wants a snack. Incidentally, which flavor? Asking for a friend.
  • swaraj13 hours ago
    This is what HN is all about
  • MASNeo9 hours ago
    Thank you.Awesome project!<p>Unfortunately I think you have given my kids one more hard to refuse reason to get more candy: I need more storage.
  • xnorswap7 hours ago
    I can&#x27;t see it explained, why&#x2F;where is 000000 defined as newline?
  • filozopdasha16 hours ago
    it actually sounds like a fun idea, but i have one question. do you think a lightweight CNN trained on synthetic candy layouts would outperform the deterministic decoder for messy real world photos?
    • mufeedvh12 hours ago
      Yes, for messy real-world photos a lightweight CNN would probably outperform the deterministic decoder, but I’d still use it in a hybrid pipeline with classic CV for blob detection and deterministic logic for reconstructing the actual program.
  • tapeloop4 hours ago
    but can it run Doom?
  • Surac9 hours ago
    oh man the program just melted in my mouth
  • nathaah311 hours ago
    this is so cool!
  • owyn21 hours ago
    This is AI slop but mildly amusing. Brainfuck did it first.
    • ramon15618 hours ago
      Which part made you conclude there&#x27;s AI involved?
      • owyn15 hours ago
        the bold section headers and bullet points. but who cares. i don&#x27;t.
        • 306bobby14 hours ago
          I literally write like the article on similar write ups, where do you think the AI&#x27;s learned to write this way from.<p>I really don&#x27;t get the AI vibes from the actual writing of it
          • willwade10 hours ago
            It gave me strong vibes too. It’s the writing style. I’ve seen OpenAI write just like this. Doesn’t mean it’s bad. There’s a few other markers. Note “silly” in quotes and over use if that word. Once would be enough. But also this is very very typical. The bolting and short quite direct and a bit repetitive statements “it absolutely does not solve “dumped a bag of candy on a messy kitchen table and took a dramatic iPhone shot.”<p>Real example programs are where the joke becomes a language I didn’t want this to stop at “hello world with candy colors.”” The over use of quoting. The bold. It’s not like a human wouldn’t write this. But it’s unusual for a human to do this imho. All the same - it feels novel. And at the end of the day it’s a neat idea. It’s just we enter this new brave world where things written like this give you the ick. “Where do the ai learn this from?” Well I wouldn’t mind betting the author asked it to be written in a hn style post.
            • sdwr1 hour ago
              Yeah, the execution is stronger than the idea and design choices as well, which suggests heavy AI support
            • Timwi9 hours ago
              Please re-read your comment and tell me you&#x27;re not grasping at straws just to accuse someone of using AI to write.
            • NetMageSCW3 hours ago
              You have a problem. I would suggest thinking about it.
        • Timwi9 hours ago
          Are you serious? We can&#x27;t make headers bold or use bullet points anymore without people like you instantly calling it AI slop?
  • MostlyStable10 hours ago
    Not really the same, but made me think of this classic xkcd: <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;505&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;505&#x2F;</a>
  • avatardeejay17 hours ago
    Am I allowed to use the term psychopath in the most loving, even inspired, way?
    • dang16 hours ago
      Psychopath implies lack of empathy so I don&#x27;t think that&#x27;s quite the word you want. You could maybe repurpose &quot;psychotic&quot; though!
      • phyzix576114 hours ago
        Maybe lack of M&amp;Mpathy?
      • 4728284715 hours ago
        “ As it turned out, there is nothing special about psychopaths when it comes to understanding or feeling empathy with others. ”<p><a href="https:&#x2F;&#x2F;www.psychologytoday.com&#x2F;us&#x2F;blog&#x2F;fulfillment-at-any-age&#x2F;202508&#x2F;is-it-true-that-psychopaths-lack-empathy" rel="nofollow">https:&#x2F;&#x2F;www.psychologytoday.com&#x2F;us&#x2F;blog&#x2F;fulfillment-at-any-a...</a><p>But maybe it is like so often more about the contradictory definitions of “empathy”, and capability vs. willingness.
        • dang11 hours ago
          That&#x27;s interesting! But confusing as well. The test they reference (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Psychopathy_Checklist" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Psychopathy_Checklist</a>) includes lack of empathy. Are they saying that this criterion could be dropped from the test with no effect on the classification?
        • efilife12 hours ago
          How I understand the article, is that they understand why others act in certain ways, they know the mechanism of empathy, but nothing here confirms that they are empathetic themselves. I think this article&#x27;s conclusion is misleading.