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

Show HN: I built a personalized AI newsletter you configure by replying to it

https://briefednewsletter.com/
1•tozcoded•3m ago•0 comments

Is Israel's 'buffer zone' inside Lebanon an attempt to grab gas reserves?

https://www.aljazeera.com/features/2026/6/12/is-israels-buffer-zone-inside-lebanon-an-attempt-to-...
1•hebelehubele•6m ago•0 comments

Show HN: Thèque, a private visual library for the things you save

https://theque.app
2•ecuzmici•7m ago•0 comments

An Analyst's Missed Remark Surfaced in Deadly Iran School Strike Probe

https://www.bloomberg.com/news/features/2026-06-26/an-analyst-s-missed-remark-surfaced-in-deadly-...
1•r721•8m ago•1 comments

Windows CE Dreamcast Community Edition (wince-dc)

https://github.com/maximqaxd/wince-dc
2•msephton•8m ago•0 comments

Towards a formal theory of computer insecurity: a language-theoretic approach [video]

https://www.youtube.com/watch?v=AqZNebWoqnc
1•binyu•10m ago•0 comments

Why AI Gurus Are Building Toys While the World Needs Architects

https://medium.com/@alanscottencinas/the-scale-wall-why-ai-gurus-are-building-toys-while-the-worl...
1•encinas88•10m ago•0 comments

1666 Great Fire of London

https://en.wikipedia.org/wiki/Great_Fire_of_London
1•simonebrunozzi•11m ago•0 comments

Introduction to Conditional Flow Matching – Part I, Normalizing Flows

https://huet.ing/posts/cfm_part_i/
1•DeanMoriarty123•12m ago•1 comments

Tell HN: Check your subscription renewals (VPNs, etc.). They cost too much

1•simonebrunozzi•14m ago•1 comments

China's electromagnetic rocket launch technology

https://timesofindia.indiatimes.com/science/chinas-electromagnetic-rocket-launch-technology-could...
2•Tomte•17m ago•0 comments

How little exercise can you get away with?

https://www.economist.com/science-and-technology/2026/07/03/how-little-exercise-can-you-get-away-...
2•Brajeshwar•18m ago•1 comments

I found a malware hiding in my TailwindCSS config file

https://infosecwriteups.com/i-found-north-korean-dprk-malware-hiding-in-my-tailwind-config-js-45a...
1•donohoe•18m ago•0 comments

The Android's Dream; a Love Letter to the Bomb

https://kyleobrien.me/the-androids-dream-a-love-letter-to-the-bomb/
1•kyo3•20m ago•0 comments

The Secret History of Polymarket

https://unlimitedhangout.com/2026/06/investigative-series/the-secret-history-of-polymarket-part-1/
1•tilltheend•22m ago•0 comments

Trace Institute

https://traceinstitute.org/
1•mpartel•24m ago•0 comments

Open source HW equivalence checking tool at both RTL and gate level

https://github.com/keplertech/kepler-formal
1•nanocoh•25m ago•1 comments

California Bans 'Sell by' Labels, Hoping to Cut Food Waste

https://www.nytimes.com/2026/07/02/us/california-food-labels-sell-by.html
2•randycupertino•26m ago•0 comments

Spherical Gear [video]

https://www.youtube.com/watch?v=0bRoFs6n_Gg
1•firephox•26m ago•0 comments

Snapcompact: Rendering context as pixel-font bitmaps cuts input cost 3x

https://blog.can.ac/2026/06/10/snapcompact/
1•oxedom•29m ago•0 comments

Write Code, Not Specs

https://softwaredoug.com/blog/2026/07/04/write-code-not-specs.html
1•Tomte•29m ago•0 comments

Takeaways from "On Writing Well"

https://www.thetrueengineer.com/p/takeaways-from-on-writing-well
2•adletbalzhanov•35m ago•0 comments

China's Current Five-Year Plan to Save Jobs from A.I

https://cn.nytimes.com/china/20260701/china-ai-jobs-birthright-hormuz/
4•tom2026hn•35m ago•0 comments

Show HN: Hacker-News Buddies

2•freakynit•36m ago•2 comments

Happy Independence Day

4•GauntletWizard•40m ago•0 comments

Show HN: Open Kioku – local evidence layer for AI coding agents

https://github.com/shivyadavus/open-kioku
2•shivyadavus•41m ago•0 comments

Wordgard Release 0.1

https://marijnhaverbeke.nl/blog/wordgard-0.1.html
1•birdculture•41m ago•0 comments

Tom Kean got months of paid sick leave – after voting against it for others

https://www.theguardian.com/commentisfree/2026/jul/04/tom-kean-jr-sick-leave-mental-health-depres...
4•petee•42m ago•0 comments

'All men are created equal': America has lost its values. It's time to go back

https://www.theguardian.com/us-news/ng-interactive/2026/jul/04/250-years-declaration-of-independence
4•hkhn•45m ago•1 comments

CTOP – Terminal Pane for Monitoring AI Agents

https://github.com/aakashadesara/ctop
3•aakashadesara•46m ago•3 comments