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•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: Vibe-coding video games with Claude (Day 24: Fishies)

https://gamevibe.us/24-fishies
1•pzxc•14s ago•0 comments

Shiny hunters new cyber attack on educational platform Canvas

https://www.thedp.com/article/2026/05/penn-cybercrime-shiny-hunters-canvas-hack-students
1•claudegpt•15s ago•0 comments

Labor extends EV tax break to encourage cheaper vehicles amid soaring gas prices

https://www.theguardian.com/environment/2026/may/04/labor-extends-ev-tax-break-cheaper-vehicles-s...
1•PaulHoule•36s ago•0 comments

How to build a medieval castle (2016)

https://www.historyextra.com/period/medieval/medieval-castle-how-were-they-built/
1•downbad_•41s ago•1 comments

Building for the Future

https://blog.cloudflare.com/building-for-the-future/
1•PriorityLeft•1m ago•0 comments

Ask HN: Which developers do you closely follow?

1•chistev•1m ago•0 comments

A man with an army of Yarbo robot lawn mowers

https://www.theverge.com/tech/925696/yarbo-robot-lawn-mower-hack-remote-control-camera-access-mqtt
1•pavel_lishin•3m ago•0 comments

ShinyHunters claims data theft from 8,800 schools (Instructure/Canvas)

https://www.bleepingcomputer.com/news/security/instructure-hacker-claims-data-theft-from-8-800-sc...
3•tfirst•3m ago•1 comments

What's the best heat pump brand?

https://old.reddit.com/r/heatpumps/comments/1t6ea55/whats_the_best_heat_pump_brand/
1•ssuds•5m ago•0 comments

S&P Dow Jones Indices Public Consultation on Treatment of MegaCap Companies [pdf]

https://www.spglobal.com/spdji/en/documents/indexnews/announcements/20260430-1483123/1483123_spdj...
2•JumpCrisscross•7m ago•0 comments

OpenXR OS X lets you play PCVR games on Mac

https://skarredghost.com/2026/05/07/openxr-osx-vr-mac/
1•LorenDB•7m ago•0 comments

Show HN: Veris – Agent sandboxes with simulated external services

https://veris.ai/sandbox
7•jrm-veris•8m ago•0 comments

ReMarkable's new Paper Pure tablet goes back to basics with a monochrome screen

https://techcrunch.com/2026/05/06/remarkables-new-paper-pure-tablet-goes-back-to-basics-with-a-mo...
1•evo_9•8m ago•0 comments

Directory of personal websites (top is crazy)

https://webofdevs.com
1•sebzuddas•9m ago•1 comments

Draw Marc Andreessen on an Egg

https://eieio.games/blog/marc-andreessen-egg-game/
2•LorenDB•9m ago•0 comments

Golden Globes Set AI Rules: ‘AI Doesn’t Automatically Disqualify’ Movie or Show

https://variety.com/2026/film/news/golden-globes-ai-rules-1236740750/
2•spankibalt•9m ago•0 comments

Natty.codes: Artisanal software, hand-crafted by humans

https://natty.codes/
2•lnvdpwl•11m ago•0 comments

Apple's Camera-Equipped AirPods Reach Late Testing in AI Device Push

https://www.bloomberg.com/news/articles/2026-05-07/apple-s-camera-equipped-airpods-reach-advanced...
2•mfiguiere•14m ago•0 comments

World Cup 2026 Airbnb Price Premiums

https://www.airroi.com/world-cup-2026-airbnb-data
3•airjason•14m ago•0 comments

Show HN: Making journaling as easy as texting your friends

https://journal.cubitoo.com/en
2•pawelkomarnicki•15m ago•0 comments

Ask HN: Would you use a government digital ID to sign on to HN?

2•lifeisstillgood•17m ago•3 comments

Firefox integrates an ad-blocker, but not to block ads

https://www.theregister.com/software/2026/05/06/firefox-integrates-an-ad-blocker-but-not-to-block...
3•Bender•18m ago•0 comments

Elon Musk Summoned to France to Face Criminal Charges

https://www.wsj.com/tech/elon-musk-summoned-to-france-to-face-criminal-charges-589acd6c
5•spankibalt•19m ago•0 comments

Cooking the Hashish Cookbook

https://cookingthehashishcookbook.com/
2•benbreen•21m ago•0 comments

I (Spiritually) Won Comma.ai's Compression Challenge

https://aaronleslie.dev/blog/comma-compression
3•qwertyforce•22m ago•1 comments

Use Redis with SQL

https://redis.io/blog/use-redis-with-sql/
2•tanelpoder•22m ago•0 comments

Google's $9.99-per-month AI health coach launches May 19

https://techcrunch.com/2026/05/07/googles-9-99-per-month-ai-health-coach-launches-may-19/
2•sizzle•23m ago•2 comments

The Pulse: AI load breaks GitHub – why not other vendors?

https://newsletter.pragmaticengineer.com/p/the-pulse-ai-load-breaks-github-why
2•rbanffy•23m ago•0 comments

Show HN: Crypto Trading Simulator – 11 coins, candlestick charts, zero risk

https://flightsmoothie-dot.github.io/crypto-trading-sim/
2•repurpose_ai•23m ago•0 comments

What 16,808 Kafka Clusters Tell Us About Streaming

https://aiven.io/blog/what-16780-kafka-clusters-tell-us-about-data-streaming
2•filipyonov•24m ago•0 comments