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

Modern Design Headache: A Cerebral Basis for Visual Discomfort and Visual Stress

https://www.mdpi.com/2411-5150/10/2/34
1•rawgabbit•4m ago•0 comments

Eden Surge

https://surge.edenictech.com/
1•VictorMgaya•7m ago•0 comments

Show HN: Sanfransim.com – a long waited startup simulation game

https://sanfransim.com/
1•milkers•13m ago•0 comments

The Infrastructure Fallacy: Why Most Sales Problems Are Strategy Prob

https://medium.com/@alanscottencinas/the-infrastructure-fallacy-why-most-sales-problems-are-actua...
1•encinas88•16m ago•0 comments

RetroAchievements

https://retroachievements.org/
1•Tomte•19m ago•1 comments

Forms of life, forms of mind by Dr. Michael Levin

https://thoughtforms.life/a-talk-for-mental-health-professionals/
1•plucafs•20m ago•0 comments

I used to love Claude, but the latest models are slowly ruining it

https://www.androidauthority.com/claude-latest-models-pushback-bad-3683521/
2•Brajeshwar•20m ago•0 comments

Vector Search Is Dead

https://try.agentoid.io/
1•AlpinePrivacy•21m ago•1 comments

Balding Cure?

https://www.popularmechanics.com/science/health/a71891892/balding-cure-chinese-root/
1•donbox•23m ago•0 comments

Banning AI in Law School: We've Seen This Before

https://hardcoresoftware.learningbyshipping.com/p/240-banning-ai-in-law-school-weve
2•whobre•23m ago•0 comments

A zero-dependency Rust model that repairs code, graded by rustc

https://amalshehu.github.io/mend.rs/
1•amalshehu•23m ago•1 comments

The Montessori Method Under Scrutiny: A Meta-Analytic

https://journals.sagepub.com/doi/10.3102/00346543261458396
2•doener•27m ago•1 comments

The AI Disagreement Index: 8 models agreed on the "best tool" 0 of 16 times

https://data.deepsynthesis.org/
1•brainbootdev•29m ago•0 comments

Show HN: Ant – A JavaScript Runtime and Ecosystem

https://antjs.org
26•theMackabu•34m ago•7 comments

Show HN: Use GPT-5.6 and other models in Claude Code

https://github.com/raine/claude-code-proxy
1•rane•34m ago•0 comments

Google Maps features I want in 2026

https://www.adityakarad.com/blog/google-maps-features
1•itskarad•34m ago•1 comments

Wealthy AI workers send San Francisco house prices soaring

https://www.bbc.com/news/articles/c9q29j47v9ro
2•root-parent•35m ago•0 comments

MacSurf 2.0 for OS 9 Released

https://github.com/mplsllc/macsurf/releases
1•mplsllc•37m ago•1 comments

Show HN: Sqlsure – deterministic semantic checks for AI-generated SQL

https://github.com/sqlsure/sqlsure
2•tejusarora•37m ago•0 comments

AI Arcade – which coding model can build the best arcade game

https://ai-arcade.app
1•zapeterson16•38m ago•0 comments

Eva: Manage coding agents inside cloud connected repos

https://github.com/vvedantb/eva
1•handfuloflight•39m ago•0 comments

Nelson language for Engineers and Scientists (Matlab alternative)

https://nelson-lang.github.io/nelson-website/
1•ChaitanyaPatel•40m ago•0 comments

Sperm donors need limits, says a European fertility group

https://www.technologyreview.com/2026/07/10/1140289/sperm-donors-need-limits-says-a-european-fert...
1•randycupertino•41m ago•5 comments

Show HN: Don't let your engineering brain rot in the age of AI

https://www.30secondsofknowledge.com
2•Chipatama90•44m ago•0 comments

Too Many Books?

https://www.nytimes.com/2026/07/09/style/too-many-books-new-york-city-apartment-scholar-landlord....
1•paulpauper•44m ago•1 comments

I built a free tool to evaluate AI agent outputs (human labels and LLM judges)

https://github.com/AntoineF23/verdict
1•antoinefornas•45m ago•0 comments

What's Going on with Mental Health?

https://www.ft.com/content/063b7eed-3f13-43d4-8f12-ff6439b825e8
2•paulpauper•46m ago•2 comments

Meta's Root Cause Analysis Platform at Scale

https://engineering.fb.com/2025/12/19/data-infrastructure/drp-metas-root-cause-analysis-platform-...
1•nikolay_sivko•46m ago•0 comments

Open-Source Alternative to Buffer, Typefully, Hootsuite

https://github.com/coollabsio/shoutrrr
1•michael-sumner•46m ago•0 comments

Sovereign AgentOps – Self-hosted constitutional AI governance for MCP agents

https://github.com/geludobre/sovereign-agentops
1•geludobre•49m ago•0 comments