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

I built fingerprint unlock for Mac (no Magic Keyboard) [video]

https://www.youtube.com/watch?v=tB3lk-PNA6I
1•Timothee•3m ago•0 comments

How much faster could racehorses get?

https://www.worksinprogress.news/p/why-horses-have-stopped-getting-faster
1•jprs•4m ago•0 comments

Show HN: Plan Review – independent review for Claude Code plans

https://github.com/dachev/plan-review
1•blago•4m ago•0 comments

Show HN: BlazeRules – YAML rule engine for streaming data, upto 5M records/SEC

1•jspuri•6m ago•0 comments

What it takes to build agent infrastructure yourself

https://twitter.com/harsehaj/status/2079593790814527998
1•gmays•10m ago•0 comments

Simon Willison on Technical Blogging

https://writethatblog.substack.com/p/simon-willison-on-technical-blogging
1•herbertl•11m ago•0 comments

Open source Cloud AI agents

https://www.krowoc.com/
1•nikonruslan7•15m ago•0 comments

The following is a valid DOS COM executable

https://oldbytes.space/@gloriouscow/117045701876951834
1•birdculture•15m ago•0 comments

PLS Try My OS

https://sites.google.com/view/taco-so-test/home
2•TACOCODER•20m ago•1 comments

New Orleans will use AI to answer 911 calls instead of a human

https://www.shreveporttimes.com/story/news/local/louisiana/2026/07/28/is-new-orleans-using-ai-to-...
3•champagnepapi•24m ago•0 comments

Equity Is Worth More Than Cash Because of Optionality

https://peter.website/equity-beats-cash
1•shachaf•24m ago•0 comments

The Investors Whose SpaceX Shares Vanished Before They Could Cash In

https://www.wsj.com/finance/stocks/spacex-ipo-spv-investors-2698a174
2•chirau•24m ago•2 comments

Space to cook: notes on engineering leadership

https://ianmccrystal.com/posts/notes-on-engineering-leadership/
1•ogundipeore•29m ago•0 comments

Hardware Devices That Support GNU/Linux

https://www.fsf.org/resources/hw/
1•Vanessaroulette•29m ago•0 comments

Obviously, DOGE Did Not Save Money

https://www.nationalreview.com/corner/obviously-doge-did-not-save-money/
3•petethomas•30m ago•0 comments

Dictionary Compression in Materialize

https://materialize.com/blog/dictionary-compression-in-materialize/
1•nate_stewart•30m ago•0 comments

I got a 1998 CD-ROM world atlas running on Windows 11

https://trevmex.com/post/824245295374303232/my-son-found-a-world-atlas-in-a-thrift-store-so-i
1•ilimllza•31m ago•0 comments

Meta fined $567M in largest child safety ruling against social media giant

https://www.bbc.com/news/articles/cd7lz3wr2rlo
5•tartoran•31m ago•0 comments

New Mexico court orders Meta to pay $567M over harms to children's mental health

https://www.theguardian.com/technology/2026/aug/06/new-mexico-court-meta
3•devonnull•31m ago•0 comments

Curating Crime and Punishment: What 10 Images Reveal About American Justice

https://www.themarshallproject.org/2026/08/06/crime-punishment-america-photos-archive
1•greenie_beans•32m ago•0 comments

European firms afraid of US tech kill switch but haven't made an escape plan

https://www.theregister.com/off-prem/2026/08/06/european-firms-afraid-of-us-tech-kill-switch-but-...
1•gpi•32m ago•0 comments

All Agent Skills

https://allagentskills.com
3•Diablo556•33m ago•0 comments

Tracely – Turn AI agent production failures into CI regression tests

https://tracely-studio.xyz/
2•jwuthri•36m ago•0 comments

The Code Shackle

https://codeshackle.com
2•kallisti5•41m ago•1 comments

I launched a fake deodorant brand to see if AI would notice

https://xcancel.com/antibot/captcha
3•glaslong•43m ago•1 comments

Automating Godel's Ontological Proof of God's Existence [pdf]

https://christoph-benzmueller.de/papers/C40.pdf
2•ibobev•46m ago•0 comments

Trump's AI Framework Is So Bad They Won't Show You What's in It

https://www.techdirt.com/2026/08/06/trumps-ai-framework-is-so-bad-they-wont-show-you-whats-in-it/
3•cdrnsf•48m ago•0 comments

One Startup Built a (Mostly) China-Free Robot

https://www.wired.com/story/how-one-startup-built-a-mostly-china-free-robot/
3•dwa3592•50m ago•0 comments

Show HN: Whisper transcribes 70-year-olds more accurately than 20-year-olds

https://github.com/Kayvan-Zahiri/asr-age-gap
8•kzahiri•51m ago•1 comments

A Polynomial-Time Quantum Algorithm for the Dihedral Coset Problem

https://eprint.iacr.org/2026/1591
3•csmantle•52m ago•0 comments