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

How I would implement an SSA-based compiler

https://gist.github.com/pizlonator/cf1e72b8600b1437dda8153ea3fdb963
1•achierius•50s ago•0 comments

Labwire, an open protocol for AI agents to control lab instruments

https://github.com/benchwire/labwire
1•RoboSy•2m ago•0 comments

Grok Introducing Build Mode

https://x.ai/news/grok-build-mode
1•BoumTAC•2m ago•0 comments

Bringing MCP 2026-07-28 to Claude

https://claude.com/blog/bringing-mcp-2026-07-28-to-claude
1•mfiguiere•4m ago•0 comments

WebScene. React, TypeScript, JavaScript in native application frameworks

https://old.reddit.com/r/WebScene/comments/1v966gv/webscene_run_packaged_react_typescript_and/
1•wiso•5m ago•0 comments

Navigating the solution space with agents

https://vimota.me/writing/navigating-the-solution-space-with-agents
1•vimota•5m ago•0 comments

Data centers may face temporary power cuts to prevent blackouts

https://techcrunch.com/2026/07/28/data-centers-may-face-temporary-power-cuts-to-prevent-blackouts...
2•speckx•5m ago•0 comments

Wildfires in south-west France flare up as region braces for new 40C heatwave

https://www.bbc.com/news/articles/c5yd8gly1ydo
1•saikatsg•6m ago•1 comments

Performance Has Layers

https://oxide.computer/blog/performance-has-layers
1•tosh•7m ago•0 comments

Show HN: Telemetry accumulates technical debt. We built a tool to clean it up

https://obics.io/blog/obics-observability-cost-saver-launch/
1•michaels9876•8m ago•1 comments

South Korea's KOSPI posts biggest fall since early March as chipmakers slump

https://www.reuters.com/world/asia-pacific/south-koreas-kospi-drops-7-global-chipmaker-selloff-de...
1•saikatsg•9m ago•0 comments

Mousecrack – Bypass captcha mouse detection with deep learning

https://github.com/puffinsoft/mousecrack
3•G3819•9m ago•1 comments

Community Ingress-Nginx Retired: How to Plan Your Migration

https://www.buoyant.io/blog/community-ingress-nginx-retired-how-to-plan-your-migration
3•PagCatOli•9m ago•0 comments

Obfuscation (Part II): Diamond IO

https://vitalik.eth.limo/general/2026/07/28/obfuscation_part_ii_diamond_io.html
1•elffjs•9m ago•0 comments

X Money officially launches in the US

https://9to5mac.com/2026/07/27/x-money-apple-wallet/
1•saikatsg•10m ago•0 comments

Running a persistent AI agent at the far end of a satellite text link

https://suthakamal.substack.com/p/the-other-end-of-the-line
1•suthakamal•12m ago•0 comments

Solve for Complexity, Not for Time

https://getsmall.xyz/post/cms4y6rd7013cajx98kc4qm7w
1•trezm•13m ago•0 comments

Inference, Inferred

https://blog.naveen.com/2026/07/inference-inferred/
1•exolymph•13m ago•0 comments

Writing for Readers, Not Algorithms

https://thehourisblue.com/writing-for-readers-not-algorithms/
1•speckx•13m ago•0 comments

TypeNotes, a practical daily learning site for TypeScript devs

https://www.typenotes.io/
1•jwworth•13m ago•0 comments

Show HN: Envdiff – solve "works on my machine" in 30 seconds

https://github.com/mertdotdev/envdiff
1•Mert7nr•14m ago•0 comments

OVSwrap: Another Linux LPE

https://heyitsas.im/posts/ovswrap/
1•c0balt•14m ago•0 comments

AI Doesn't Get Annoyed

https://yadan.net/writing/ai-doesnt-get-annoyed/
2•omry•14m ago•1 comments

Understanding bioenergetics can help our brain health

https://aeon.co/essays/how-understanding-bioenergetics-can-help-our-brain-health
1•geneticdrifts•15m ago•0 comments

Thinking Machines Lab cofounder Lilian Weng steps down due to stress and illness

https://www.businessinsider.com/thinking-machines-lab-cofounder-lilian-weng-steps-down-stress-ill...
1•elo2000•16m ago•0 comments

Meshtryoshka: Differentiable Mesh Rendering for Unbounded Scenes

https://danielxu9393.github.io/meshtryoshka-website/
1•ibobev•16m ago•0 comments

Siggraph 2026 Advances in Real-Time Rendering in Games Course

https://advances.realtimerendering.com/s2026/index.html
1•ibobev•17m ago•0 comments

Xi Jinping, pioneering venture capitalist

https://economist.com/china/2026/07/27/xi-jinping-pioneering-venture-capitalist
2•andsoitis•17m ago•0 comments

Clues about whether genes or environment influence our health more

https://www.seattletimes.com/life/wellness/new-clues-about-whether-genes-or-environment-influence...
1•elo2000•17m ago•0 comments

Show HN: I used D3/React to transform raw GitHub data into an interactive map

https://github.com/ThierryRakotomanana/gitcharta
1•ThierryRkt•17m ago•1 comments