nowfound

AI · February 13, 2026

Bubble sort on a Turing machine

Bubble sort is pretty simple in most programming languages ... what about on a Turing Machine? I used all three of Claude 4.6, GLM 5, and GPT 5.2 to get a result, so this exercise was not quite trivial, at least at this time. The resulting machine, bubble_sort_unary.yaml, will take this input: 111011011111110101111101111 and give this output: 101101110111101111101111111 I.e., it's sorting the array [3,2,7,1,5,4]. The machine has 31 states and requires 1424 steps before it comes to a halt. It also introduces two extra symbols onto the tape, 'A' and 'B'. (You could argue that 0 is also an…

Bubble sort on a Turing machine launched on February 13, 2026 with 12 votes, #936 of 16,628 launches that month and more than 90% of that year's launches.

Visit github.com ↗Alternativestop 6% of February 2026

In plain words

This project implements bubble sort algorithms on a Turing machine, a theoretical computing model. Two versions are provided: one using unary notation with 31 states and 1424 steps to sort arrays like [3,2,7,1,5,4], and a simpler version using numbered symbols with 25 states and 63 steps. The implementations were developed with assistance from multiple AI language models and demonstrate how a basic sorting algorithm translates to a minimal computational machine.

written from the facts on this page · September 2026

From the sources

A Turing Machine that will perform a bubble sort on the tape input; compatible with turingmachine.io yaml format. Two variants of the Turing Machine are provided. - purplejacket/bubble_sort_on_tm

A Turing Machine that sorts arrays using bubble sort — implemented as a YAML state-transition table compatible with turingmachine.io , plus a Python emulator to run and verify it locally. Both YAML files can be pasted directly into turingmachine.io to watch the sort happen step by step. # Run the decimal bubble sort and see the result make run-decimal # Run the unary bubble sort make run-unary # Run the full test suite (135 tests) make test # See all available targets make help Requirements Python 3.10+ PyYAML ( pip install pyyaml ) No other dependencies. The test suite uses the standard-library unittest module — no pytest required (though it works with pytest too if you have it). . ├──…from github.com

In the maker’s words, at launch

Bubble sort is pretty simple in most programming languages ... what about on a Turing Machine? I used all three of Claude 4.6, GLM 5, and GPT 5.2 to get a result, so this exercise was not quite trivial, at least at this time. The resulting machine, bubble_sort_unary.yaml, will take this input…

Does a similar job

all alternatives →

More ai this month

the category →
  • Video model that turns script into viral social media videos

    AI · 17d ago · spira.ai

  • The browser where Claude Code and Codex work beside you

    AI · 17d ago · rill.love

  • Kolibri is Aleph Alpha

    AI · 19d ago · tej.as

  • Paintings by AI models: programs run through a simulation of oil paint.

    AI · 20d ago · stillwet.art

  • A real-time world model you can explore and change

    AI · 29d ago · world.pixverse.video

  • Hemory▲381

    Keep listening. Searchable memory for your AI agents.

    AI · 30d ago · hemory.com

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, February 2026

the whole month →
  • Rork Max▲1,428

    Best AI for iOS apps. Website that replaces Xcode

    Life & fun · Feb 2026 · rork.com

  • happycapy▲1,365

    The agent-native computer, for the rest of us

    AI · Feb 2026 · happycapy.ai

  • SuperX▲897

    All-in-one growth OS for serious 𝕏 creators

    AI · Feb 2026 · superx.so

  • KiloClaw▲868

    Hosted OpenClaw. No Mac mini required.

    Dev tools · Feb 2026 · kilo.ai

  • Feel closer and have more fun with your partner every day!

    AI · Feb 2026 · lovon.app

  • Hello my name is Ben Ward for the past 3 years I have been remastering the financial game Wall Street Raider created by Michael Jenkins originally on DOS in 1986. It has been a rough journey but I finally see the light at the end of the tunnel. I just recently redid the website and thought maybe the full story of how this project came to be would interest you all. Thank you for reading.

    Work · Feb 2026 · wallstreetraider.com