frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Bubble Sort on a Turing Machine

https://github.com/purplejacket/bubble_sort_on_tm
2•purplejacket•1h ago
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 extra symbol because turinmachine.io uses blank, ' ', as well).

When I started writing the code the LLM (Claude) balked at using unary numbers and so we implemented bubble_sort.yaml which uses the tape symbols '1', '2', '3', '4', '5', '6', '7'. This machine has fewer states, 25, and requires only 63 steps to perform the sort. So it's easier to watch it work, though it's not as generalized as the other TM.

Some comments about how the 31 states of bubbles_sort_unary.yaml operate:

| Group | Count | Purpose | |---|---|---| | `seek_delim_{clean,dirty}` | 2 | Pass entry: scan right to the next `0` delimiter between adjacent numbers. | | `cmpR_`, `cmpL_`, `cmpL_ret_`, `cmpL_fwd_` | 8 | Comparison: alternately mark units in the right (`B`) and left (`A`) numbers to compare their sizes. | | `chk_excess_`, `scan_excess_`, `mark_all_X_` | 6 | Excess check: right number exhausted — see if unmarked `1`s remain on the left (meaning L > R, swap needed). | | `swap_` | 7 | Swap: bubble each `X`-marked excess unit rightward across the `0` delimiter. | | `restore_*` | 6 | Restore: convert `A`, `B`, `X` marks back to `1`s, then advance to the next pair. | | `rewind` / `done` | 2 | Rewind to start after a dirty pass, or halt. |

(The above is in the README.md if it doesn't render on HN.)

I'm curious if anyone can suggest refinements or further ideas. And please send pull requests if you're so inclined. My development path: I started by writing a pretty simple INITIAL_IDEAS.md, which got updated somewhat, then the LLM created a SPECIFICATION.md. For the bubble_sort_unary.yaml TM I had to get the LLMs to build a SPEC_UNARY.md because too much context was confusing them. I made 21 commits throughout the project and worked for about 6 hours (I was able to multi-task, so it wasn't 6 hours of hard effort). I spent about $14 on tokens via Zed and asked some questions via t3.chat ($8/month plan).

A final question: What open source license is good for these types of mini-projects? I took the path of least resistance and used MIT, but I observe that turingmachine.io uses BSD 3-Clause. I've heard of "MIT with Commons Clause;" what's the landscape surrounding these kind of license questions nowadays?

Disney sends cease and desist letter to ByteDance over Seedance 2.0

https://www.axios.com/2026/02/13/disney-bytedance-seedance
2•mfiguiere•6m ago•0 comments

The most enjoyable learning I've done in years

https://sensecall.co.uk/writing/side-projects-instead/
1•sensecall•8m ago•0 comments

The Foundation for Science and AI Research

https://sair.foundation/
1•gballan•13m ago•0 comments

Show HN: Koala Diff – High-performance local data comparison (Rust and Polars)

https://github.com/godalida/koala-diff
1•godalida•13m ago•1 comments

Show HN: Vanilla JavaScript Mandelbrot Explorer

https://bryanhoffman.xyz/mandelbrot_explorer.html
1•krasotkin•14m ago•0 comments

The S-Tier Rust Web Framework and the Priest Who Created It [video]

https://www.youtube.com/watch?v=X_VWAhVhmhc
1•weinzierl•14m ago•0 comments

Pentagon Used Anthropic's Claude in Maduro Venezuela Raid

https://www.wsj.com/politics/national-security/pentagon-used-anthropics-claude-in-maduro-venezuel...
3•2OEH8eoCRo0•15m ago•2 comments

Spotify says its best developers haven't written code since Dec, thanks to AI

https://techcrunch.com/2026/02/12/spotify-says-its-best-developers-havent-written-a-line-of-code-...
1•samspenc•16m ago•0 comments

Is your website ready for GTM

https://docsalot.dev/tools/gtm-audit
1•fazkan•17m ago•0 comments

Show HN: Claw Patrol – so that's where the quota went

https://finds.one/clawpatrol
1•frankbyte•19m ago•0 comments

OK, so Anthropic's AI built a C compiler. That don't impress me much

https://www.theregister.com/2026/02/13/anthropic_c_compiler/
4•nickorlow•19m ago•1 comments

A Climate Supercomputer Is Getting New Bosses. It's Not Clear Who.

https://www.nytimes.com/2026/02/13/climate/derecho-supercomputer-ncar.html
1•mitchbob•20m ago•1 comments

A Survey on Federated Fine-Tuning of Large Language Models

https://openreview.net/forum?id=rnCqbuIWnn
1•mldev_exe•23m ago•0 comments

Tackling the problem of "naturalness" in voice AI [video]

https://www.youtube.com/watch?v=7zIEC8tmWkA
1•underfox•24m ago•1 comments

What Happened to Amazon. How Founders Become Day Two, Take Company with Them

https://markatwood.substack.com/p/what-what-happened-to-amazon-or-dont
1•slyall•26m ago•0 comments

Show HN: API-pilot – deterministic API key resolution with runtime validation

https://github.com/Avichay1977/api-pilot
1•avi7777•26m ago•1 comments

The wonder of modern drywall

https://www.worksinprogress.news/p/the-wonder-of-modern-drywall
32•jger15•19h ago•58 comments

Something Big Is Happening. Here's What It Is

https://medium.com/@vishalmisra/something-big-is-happening-heres-what-it-actually-is-9523482c4e00
1•rfonseca•27m ago•0 comments

Thousands of Amateur Gamblers Are Beating Wall Street PhDs

https://www.nytimes.com/2026/02/11/business/economy/forecasts-prediction-markets-economy.html
2•bookofjoe•31m ago•2 comments

Ontologies are all you need

https://lexifina.com/blog/ontologies-are-all-you-need
2•alansaber•33m ago•0 comments

Show HN: We open-sourced MusePro, a Metal-based realtime AI drawing app for iOS

https://github.com/StyleOf/MusePro
1•okaris•39m ago•0 comments

Launching Interop 2026

https://hacks.mozilla.org/2026/02/launching-interop-2026/
1•linolevan•40m ago•1 comments

Show HN: Create a clean tree graph of your projects with my App on iOS

https://apps.apple.com/us/app/motive-project-visualiser/id6754777255
1•Seth_k•42m ago•0 comments

Seven Billion Reasons for Facebook to Abandon Its Face Recognition Plans

https://www.eff.org/deeplinks/2026/02/seven-billion-reasons-facebook-abandon-its-face-recognition...
3•hn_acker•43m ago•0 comments

Andreessen vs. Thiel

https://web.archive.org/web/20200318115004/https://allenleein.github.io/2019/06/12/games2.html
1•eamag•45m ago•0 comments

Show HN: Infoseclist.com – Compare 90 cybersecurity tools ranked by practition

https://infoseclist.com/
1•aleks5678•46m ago•0 comments

Show HN: Clonar – A Node.js RAG pipeline with 8-stage multihop reasoning

https://github.com/clonar714-jpg/clonar
1•sowmith-tsrc•46m ago•1 comments

Grub 2.0

https://grubcrawler.dev
3•kordlessagain•47m ago•0 comments

Cmux: Tmux for Claude Code

https://github.com/craigsc/cmux
3•Soupy•48m ago•1 comments

Trump FTC wants Apple News to promote more Fox News and Breitbart stories

https://arstechnica.com/tech-policy/2026/02/trump-ftc-denies-being-speech-police-but-says-apple-n...
9•pseudalopex•48m ago•0 comments