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

I Designed a Custom Protocol for My App

https://blog.roj.dev/how-i-designed-a-custom-protocol-for-my-app
1•_roj•2m ago•0 comments

Show HN: I built a robot to win at Mario Party minigames

https://joshmosier.com/posts/deep-boo
1•photonboom•3m ago•0 comments

Sentry.io UI Is Down

https://status.sentry.io
1•vinnyglennon•4m ago•0 comments

Discussion paper: Driving effective carbon markets in Canada

https://www.canada.ca/en/environment-climate-change/corporate/transparency/consultations/comment-...
1•debo_•4m ago•0 comments

The End of the Orbital Index

https://orbitalindex.com/archive/2026-01-07-Issue-350/
1•debo_•5m ago•0 comments

Show HN: Two Rust books for developers who use AI coding assistants

https://fullstackrustapp.com
1•troelsfr•5m ago•0 comments

Alternatives to Terragon Labs

1•gekkostate•7m ago•0 comments

Show HN: Cloud Memory for Claude Code / Only for Code Reviews / Local ver OTW

1•vinkupa•10m ago•0 comments

I Was Anti-Imperialist Until I Wasn't

https://elimbi.com/fr/journal/civilization-organized-power/
3•sepiropht•10m ago•0 comments

Apple picks Google's Gemini to power Siri

https://www.cnbc.com/2026/01/12/apple-google-ai-siri-gemini.html
9•stygiansonic•13m ago•4 comments

The things I miss from the world

https://thehumansource.com/
3•salbertengo•14m ago•0 comments

Instagram breaks silence on mysterious password reset emails

https://www.indy100.com/viral/instagram-password-reset-emails-explained
1•iamben•15m ago•0 comments

Date is out, Temporal is in

https://piccalil.li/blog/date-is-out-and-temporal-is-in/
2•alexanderameye•15m ago•0 comments

Generating "Spot the Difference" Puzzles with AI

https://kamens.com/blog/generating-spot-the-difference-with-ai
1•kamens•16m ago•0 comments

The Exit

https://www.lesswrong.com/posts/kcoqwHscvQTx4xgwa/here-s-the-exit
1•notarobot123•16m ago•0 comments

Beyond Vector Search: Why LLMs Need Episodic Memory

https://philippdubach.com/posts/beyond-vector-search-why-llms-need-episodic-memory/
2•7777777phil•16m ago•0 comments

Ofcom launches investigation into X over Grok sexualised imagery

https://www.ofcom.org.uk/online-safety/illegal-and-harmful-content/ofcom-launches-investigation-i...
1•Signez•17m ago•0 comments

Anthropic Claude Healthcare Solutions

https://claude.com/solutions/healthcare
3•arutad•18m ago•0 comments

How to Make Indie Games in 2026 with Jonathan Blow [video]

https://www.youtube.com/watch?v=yNdRv5LFuQk
1•ibobev•19m ago•0 comments

Xous: A Pure-Rust Rethink of the Embedded Operating System [video]

https://media.ccc.de/v/39c3-xous-a-pure-rust-rethink-of-the-embedded-operating-system
3•PaulHoule•21m ago•0 comments

Computational Complexity of Schema-Guided Document Extraction

https://www.runpulse.com/blog/computational-complexity-of-schema
1•sidmanchkanti21•22m ago•0 comments

Show HN: I ported classic flash game Bloxorz to Game Boy Advance

https://github.com/jacobcoughenour/bloxorz_gba
2•jcoughenour•22m ago•0 comments

How You Detach Sticky Notes Affects How Well They Stay Attached

https://danverbraganza.com/writings/detach-well-to-attach-longer
1•nvader•24m ago•1 comments

I scraped 100k fishing reports to find a secret spot

https://www.meter.sh/blog/how-i-scraped-100k-fishing-posts
1•hankwilliamsjr•25m ago•0 comments

Computers that used to be human

https://digitalseams.com/blog/computers-that-used-to-be-human
1•bobbiechen•26m ago•0 comments

I have an idea I wanted to share with you all

https://github.com/orgs/community/discussions/184039
1•prassamin•26m ago•2 comments

Discussions with Purpose

https://finalsay.quest
1•cojunior•27m ago•0 comments

Palantir Crashes Out in Response to GN [video]

https://www.youtube.com/watch?v=5Idb_D4Tdu8
8•Klaster_1•27m ago•1 comments

Cast AI Valued at over $1B with the Launch of Its GPU Marketplace

https://cast.ai/press-release/cast-ai-valued-at-over-1-billion-with-the-launch-of-its-gpu-marketp...
2•pcsalad•27m ago•0 comments

Statement from Federal Reserve Chair

https://www.federalreserve.gov/newsevents/speech/powell20260111a.htm?mod=ANLink
3•nikhizzle•29m ago•1 comments