frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Accidentally Turing-Complete

https://beza1e1.tuxen.de/articles/accidentally_turing_complete.html
25•bschne•1y ago

Comments

panstromek•1y 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•1y 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•1y 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_•1y 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_•1y 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•1y 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•1y 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

Interviewing Engineers in the AI Era: Lessons from a Year of Rebuilding

https://www.coinbase.com/blog/interviewing-engineers-in-the-ai-era-lessons-from-a-year-of-rebuilding
1•dukebartnik•3m ago•0 comments

I built RoleMetric to understand why my resume was getting filtered out

https://www.rolemetric.com/
1•AndrewLeeAstyne•4m ago•0 comments

OpenAI rebuilt ChatGPT's voice stack so GPT-Live can listen while speaking

https://runtimewire.com/article/openai-gpt-live-voice-stack-full-duplex
1•devy•5m ago•0 comments

How to quickly distribute a VoIP phone line to your house

https://www.voipmyhouse.com/
1•navigate8310•7m ago•0 comments

Pcarrier – The Most Complete Software Suite

https://pcarrier.com/marketing
1•cdrnsf•7m ago•0 comments

Nvidia-Labs OO Agents: Native Python Object-Oriented Agents

https://arxiv.org/abs/2607.20709
1•javaeeeee•8m ago•1 comments

US regulators cite 'circular' risk in investments used by KKR and Apollo

https://www.ft.com/content/4de8bfa8-9eb3-4d70-bd17-273a6834dd41
2•petethomas•9m ago•0 comments

GUI Toolkit from Scratch

https://github.com/onuelito/libaui
1•onuelito•13m ago•1 comments

Show HN: I built a Neovim plugin to answer questions about your config

https://github.com/michtesar/how.nvim
1•neuropacabra•13m ago•0 comments

Show HN: Texpile, an open-source desktop LaTeX editor with a visual mode

https://github.com/texpile/texpile
1•asyncfun•14m ago•0 comments

AI squad to analyze your iOS app before Apple

https://www.apprejectkit.com/
1•jonvolio•15m ago•0 comments

OpenFeature providers for Featurevisor (Git-based cross-platform feature flags)

https://featurevisor.com/docs/sdks/openfeature/
1•fahad19•16m ago•0 comments

Big Tech's Anthropic and OpenAI stakes are distorting the corporate earnings

https://www.cnbc.com/2026/08/03/big-techs-anthropic-and-openai-stakes-distort-corporate-earnings....
1•mapping365•17m ago•0 comments

Capital One closed Trump Organization accounts after anti-money laundering probe

https://www.reuters.com/legal/government/capital-one-says-it-closed-trump-organizations-accounts-...
4•petethomas•17m ago•0 comments

Apple's New CEO Taps Retired Hardware Executive Laura Legros for Management Team

https://www.bloomberg.com/news/articles/2026-08-03/apple-s-new-ceo-taps-retired-hardware-executiv...
1•aanet•18m ago•1 comments

Ant teams beat gravity-based puzzle solvers

https://phys.org/news/2026-08-ant-teams-gravity-based-puzzle.html
1•geox•21m ago•0 comments

Bessent Seeks Fed Help in Defending Yen in Unusual Call

https://www.bloomberg.com/news/articles/2026-08-03/bessent-seeks-fed-help-in-defending-yen-in-unu...
2•mapping365•21m ago•0 comments

Exa says its index serves 80B pages, targets Google scale in 2027

https://runtimewire.com/article/exa-search-index-80-billion-pages-google-scale-2027
1•ryanmerket•24m ago•0 comments

An AI-supervised remote exam went so badly that 58,000 students must retake it

https://arstechnica.com/culture/2026/08/an-ai-supervised-remote-exam-went-so-badly-that-58000-stu...
4•sbulaev•26m ago•0 comments

Incus 7.3 adds easy GPU virtualization

https://discuss.linuxcontainers.org/t/incus-7-3-has-been-released/27033
2•ropyeett•26m ago•0 comments

Arsenic, 133 times the legal limit being found in the water around Aughinish

https://www.irishpoliticsnewsletter.ie/p/aughinish-133-times-the-limit
1•IrishPoliticsNL•26m ago•0 comments

Codes, Chess and Kubrick: The Life of Jack Good – GCHQ

https://www.gchq.gov.uk/information/codes-chess-and-kubrick-life-jack-good
1•rbanffy•27m ago•0 comments

Windows XP 2002 for the Itanium: Unbridled rage

https://virtuallyfun.com/2026/08/03/windows-xp-2002-for-the-itanium-unbridled-rage/
3•jandeboevrie•28m ago•0 comments

Reverse Jevons Paradox

https://mht.wtf/post/jevons/
1•martinhath•28m ago•0 comments

Apple launches legal challenge against UK government demand to access data

https://www.theguardian.com/technology/2026/aug/03/apple-legal-challenge-uk-government-data-access
4•sega_sai•30m ago•1 comments

Rejourney Flutter Analytics in Beta: Session Replay for Flutter GPU and Impeller

https://rejourney.co/engineering/2026-08-01/flutter-sdk-open-beta
1•mrr7337•31m ago•0 comments

Stanford CS329A Self-Improving AI Agents – Part 1 [video]

https://www.youtube.com/watch?v=6YnLB0XbTnI
2•simonpure•33m ago•0 comments

Show HN: Use same crypto crime-fighting toolset as top law enforcement agencies

https://mcp.caudexcatena.com
1•caudena•38m ago•0 comments

Younger generations may be more cancer-prone

https://www.dw.com/en/study-shows-why-younger-generations-may-be-more-cancer-prone/a-78163655
1•andrewstetsenko•40m ago•0 comments

Show HN: Leclaude – A little badge for your Claude Code projects

https://github.com/robinduckett/leclaude
1•robinduckett•40m ago•0 comments