frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Accidentally Turing-Complete

https://beza1e1.tuxen.de/articles/accidentally_turing_complete.html
25•bschne•8mo ago

Comments

panstromek•8mo ago
Nice list. Some of those are arguably not accidental, TypeScript type system seems kinda obvious to be turing complete when it tries to describe dynamically typed langauage.
WalterGR•8mo ago
x86 MOV instruction: “The mov-only DOOM [game] renders approximately one frame every 7 hours, so playing this version requires somewhat increased patience.”
a_cardboard_box•8mo ago
Rule 110 is only Turing-Complete if you have an infinitely large array of cells, and are able to initialize it with an infinite repeating pattern. If I'm not mistaken, HTML+CSS can only do a fixed-sized array.

With a Turing-Complete language, if a program runs out of memory on one machine, you can run the same code on a bigger machine without modifying it, and it can use the additional memory. With fixed-length rule 110, you need to modify the code if you want to use more memory.

256_•8mo ago
This is addressed in the second paragraph of TFA:

"Stuff which is somehow limited (stack overflows, arbitrary configuration, etc) is still considered Turing complete, since all "physical" Turing machines are resource limited."

In my opinion, worrying about infinite memory, in regards to Turing completeness, makes the task of implementing computation much less interesting.

Also, I'm pretty sure CSS only does one generation (or a finite number of them) before stopping anyway.

256_•8mo ago
Logic in Doom is particularly interesting to me. Apparently you can fit ~64k logic gates in a map (using the method described). From [1]:

"As the DOOM engine was not designed to be an interpreter, there are some constraints on our programs written against it. The biggest one is how large our programs can be. Since each gate uses at least one tag, we can use this as a metric to derive an upper-bound on the size of a program. As the DOOM engine uses 16-bit tags, this means we can have, at most, 65535 gates. This is not a particularly large number. We may be able to implement a very small CPU but this limit will be hit pretty quickly I believe."

The z80 had ~8,500 transistors. The 8086 had ~29,000 (checking Wikipedia). You could get far fewer if you use a 1-bit microarchitecture, I'm sure. I think there was a DEC (PDP?) computer that used that trick to have a really low transistor count, but I don't remember what it was called.

The real problem is RAM; for this you may as well cheat and modify Doom's code to add a RAM chip, and I/O while you're at it.

You could create a CPU in Doom implementing an architecture for which a C compiler exists, capable of compiling Doom, and run it in the CPU in Doom. For "reasonable" speed you'd have to do more than one simulation step per frame render (in the host Doom). If you ran it for long enough maybe you could get a full frame of Doom in Doom.

[1]: https://calabi-yau.space/blog/doom.html

karmakaze•8mo ago
Doom running in TypeScript static type checker[0].

> half trillion lines of types totaling 177 terabytes ran through the type checker around the clock for 12 days to get the first frame

[0] https://news.ycombinator.com/item?id=43184291

karmakaze•8mo ago
My favorite one is Conway's Game of Life. It's perhaps the least surprising one, but it's also the most visually appealing. Really like this video that leads up to making the Game of Life in itself[0]. It's something you can show a non-technical person and they can get a sense of how crazy it is that something so simple can do anything.

[0] https://www.youtube.com/watch?v=Kk2MH9O4pXY

Why Ukraine's Deadly Drone Operation Runs Like a 'McDonald's'

https://www.youtube.com/watch?v=9hzIMI2DLys
1•doener•1m ago•0 comments

Lord of War, Meet Lord of Tokens

https://singhkays.com/blog/lord-war-test-image-models/
1•gmays•1m ago•0 comments

Trump writes partisan plaques for predecessors, fronts gold [video]

https://www.youtube.com/watch?v=y-5ZsaPHv5o
1•stopbulying•1m ago•1 comments

NASA moves Artemis II rocket to launchpad ahead of mission to the moon

https://www.upi.com/Top_News/US/2026/01/17/nasa-rocket-launchpad-moon/7931768668982/
1•bookmtn•5m ago•0 comments

Agentblame: Line-level AI attribution using Git notes

https://github.com/mesa-dot-dev/agentblame
1•remolacha•5m ago•0 comments

Show HN: Detection-first bot traffic analysis (proof before blocking)

1•redwine13•6m ago•0 comments

EmuDevz: A game about developing emulators

https://afska.github.io/emudevz/
1•ingve•10m ago•0 comments

Congress Wants to Hand Your Parenting to Big Tech

https://www.eff.org/deeplinks/2026/01/congress-wants-hand-your-parenting-big-tech
7•hn_acker•13m ago•0 comments

Show HN: Scratching an Itch with Gemini Code

1•satran•13m ago•0 comments

Baton Rouge Acquires a Straight-Up Military Surveillance Drone

https://www.eff.org/deeplinks/2026/01/baton-rouge-acquires-straight-military-surveillance-drone
6•hn_acker•15m ago•0 comments

University student vibe-codes an operating system from scratch

https://mybroadband.co.za/news/software/625405-university-student-vibe-codes-an-entire-operating-...
1•rmason•15m ago•0 comments

Just shipped an agent mode (ReAct) in my CLI for LLMs

https://github.com/kardolus/chatgpt-cli
1•kardolus•15m ago•1 comments

Show HN: Govctl – A CLI enforcing RFC-driven discipline on AI coding

https://github.com/govctl-org/govctl
1•gabriel_wu•16m ago•0 comments

CVE-2026-0915: GNU C Library Fixes a Security Issue Present Since 1996

https://www.phoronix.com/news/Glibc-Security-Fix-For-1996-Bug
2•i-con•22m ago•0 comments

SensorLM: Learning the Language of Wearable Sensors

https://research.google/blog/sensorlm-learning-the-language-of-wearable-sensors/
1•brandonb•24m ago•0 comments

Move over FAANG

https://old.reddit.com/r/wallstreetbets/comments/a62xes/move_over_faang_its_time_for_mangina/
1•krautburglar•24m ago•0 comments

If writing the code is the easy part, why would I want someone else to write it?

https://tldraw.dev/blog/stay-away-from-my-trash
3•todsacerdoti•27m ago•1 comments

Speed Miners – A tiny RTS resource mini-game

https://speedminers.fun/
2•nickponline•27m ago•1 comments

Show HN: Subtitle Insights – On-device AI translation for YouTube subtitles

https://mauriciopoppe.github.io/SubtitleInsights/
1•maurizzzio•27m ago•0 comments

Show HN: E80: an 8-bit CPU in structural VHDL

https://github.com/Stokpan/E80
2•Axonis•28m ago•0 comments

Show HN: A Jazz Translations Album with Suno

https://anatoliaalbum.replit.app/
1•ersinesen•30m ago•1 comments

Ralph Wiggum with Claude Code: How People Are Using It Effectively

https://jpcaparas.medium.com/ralph-wiggum-with-claude-code-how-people-are-using-it-effectively-1d...
1•handfuloflight•30m ago•0 comments

ESXi Exploit Breaks VM Isolation and Compromises Hypervisors

https://petri.com/esxi-exploit-vm-isolation-hypervisor-compromise/
3•walterbell•30m ago•0 comments

Show HN: Project RCPC – A community network for distributed logic and A

https://github.com/JTRSoftware/Project_RCPC
1•jtr87•34m ago•0 comments

WASM for Mbed OS

https://utsavm9.github.io/wasm-for-arduino-mbed/
1•bluehex•34m ago•0 comments

Paul G. Allen School YT channel

https://www.youtube.com/channel/UCfSiYryINctnCaKe-jilVeA
1•ggeorgovassilis•35m ago•1 comments

IWE – CLI and LSP for managing Markdown knowledge bases (Rust)

https://github.com/iwe-org/iwe
1•gimalay•37m ago•1 comments

11% of vibe-coded apps are leaking Supabase keys

https://supaexplorer.com/cybersecurity-insight-report-january-2026
4•xyborg•37m ago•1 comments

Download More RAM (For Real)

1•Rounak2002•37m ago•1 comments

Agent skills for full-stack development

https://github.com/mblode/agent-skills
1•mblode•37m ago•0 comments