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•9mo ago

Comments

panstromek•9mo 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•9mo 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•9mo 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_•9mo 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_•9mo 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•9mo 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•9mo 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

Russia Liquidates 71% of Its Gold Reserves to Finance War Effort

https://united24media.com/latest-news/russia-liquidates-71-of-its-gold-reserves-to-finance-war-ef...
1•doener•48s ago•0 comments

The case for e-ink displays in a high-dopamine world

2•jerr12939•3m ago•0 comments

OpenAI site errors are now generated by AI

https://openai.com/careers/software-engineer-codex-runtime-san-francisco/
3•behnamoh•4m ago•0 comments

Ask HN: Who can invite me to lobster.rs?

1•DenisDolya•5m ago•1 comments

Chemical weapons used on protestors in Iran

https://www.iranintl.com/en/202601235991
1•ukblewis•6m ago•1 comments

Shamir's Secret Sharing Explained (For Normal People)

https://www.deadhandprotocol.com/blog/shamirs-secret-sharing-explained
1•maxcomperatore•7m ago•0 comments

The First Eighteen Lines of the Waste Land (1989)

https://yalereview.org/article/hecht-eliot-waste-land
1•benbreen•11m ago•0 comments

Trendshift Stats – GitHub language trends across 20k+ curated repositories

https://trendshift.io/stats
1•Hylasca•14m ago•1 comments

ROS2 Robotics 2026: Jetson Nano or Raspberry Pi 5 Kit?

https://www.hackster.io/HiwonderRobot/ros2-robotics-2026-jetson-nano-or-raspberry-pi-5-kit-ba5299
1•chfritz•15m ago•0 comments

HN: ReguAction – Turn regulatory URLs into actionable compliance plans

https://apify.com/brazen_vanguard/reguaction-ai-compliance-regulation-analyst
1•founder_mode•16m ago•1 comments

Show HN: Animated Anthropic OS Take Home Explainer

https://twitter.com/ashebytes/status/2014767748291952776
1•ashe_mag•17m ago•0 comments

It's Time for Primary Prevention in Medicine

https://erictopol.substack.com/p/dawn-of-a-new-era-of-primary-prevention
1•brandonb•18m ago•0 comments

Tariffs took an emotional and financial toll on founders in 2025

https://www.modernretail.co/operations/quitting-wasnt-an-option-how-tariffs-took-an-emotional-and...
1•sberens•19m ago•0 comments

Show HN: Codex Self-Reflect Skill and CLI to run subagents on past Codex convos

https://github.com/olliepro/Codex-Reflect-Skill
2•olliepro•20m ago•2 comments

Show HN: My mouse was sending two clicks instead of one – I built a tester

https://oopsclick.pages.dev/
1•nirvanist•23m ago•0 comments

Ask HN: B2B or B2C?

1•eyalhadad•24m ago•0 comments

The Slow Death of Productivity: Why Time.sleep() Is Killing Your Automation

https://pypi.org/project/nano-wait/
1•LuizSeabra•25m ago•1 comments

Show HN: Collecting AI Developer Tools

https://aihunt.dev/
1•fullofdev•26m ago•0 comments

Proposal: Generic Methods for Go

https://github.com/golang/go/issues/77273
1•pansa2•27m ago•0 comments

'Organized syndicates' fraudulently access health records, lawsuit says

https://www.washingtonpost.com/health/2026/01/22/electronic-health-record-fraud-lawsuit/
1•bookofjoe•27m ago•1 comments

JWT authentication bypass in HarbourJwt via "unknown alg"

https://pentesterlab.com/blog/cve-2026-23993-harbourjwt-unknown-alg-jwt-bypass
1•mooreds•30m ago•0 comments

Justice Department Opens Criminal Probe into Silicon Valley Spy Allegations

https://www.wsj.com/us-news/law/justice-department-opens-criminal-probe-into-silicon-valley-spy-a...
2•nradov•31m ago•0 comments

Results from the 2025 Go Developer Survey

https://go.dev/blog/survey2025
3•mooreds•32m ago•0 comments

Show HN: Skill Generator – Turn terminal workflows into AI agent skills

1•ezulabs•32m ago•0 comments

A multi-entry CFG design conundrum

https://bernsteinbear.com/blog/multiple-entry/
1•ibobev•32m ago•0 comments

Infinite Random Rectangles – The Poisson Rect Process

https://www.boristhebrave.com/2026/01/22/infinite-random-rectangles-the-poisson-rect-process/
1•ibobev•33m ago•0 comments

Mana LLM OS

https://www.mana.space/
1•behzadhaghgoo•35m ago•0 comments

EV battery leader CATL set to launch first sodium-ion batteries in vehicles

https://electrek.co/2026/01/23/ev-battery-leader-plans-first-sodium-ion-batteries-passenger-cars/
3•breve•35m ago•1 comments

The Time Oxygen Almost Killed Everything [video]

https://www.youtube.com/watch?v=qERdL8uHSgI
2•mooreds•35m ago•0 comments

Zulip AI use policy and guidelines

https://zulip.readthedocs.io/en/latest/contributing/contributing.html#ai-use-policy-and-guidelines
1•Philpax•37m ago•0 comments