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: I built an org-mode weekday repeater, –+wd

1•billwear•4s ago•0 comments

A free diver visited the Strait of Hormuz. Here's what he saw

https://www.npr.org/2026/04/26/nx-s1-5795819/a-free-diver-visited-the-strait-of-hormuz-heres-what...
1•bookofjoe•1m ago•0 comments

Artemis II Photo Timeline

https://artemistimeline.com/
1•marvinborner•2m ago•0 comments

Robot dogs with Musk and Zuckerberg heads roam around Berlin museum

https://apnews.com/article/germany-berlin-robot-dogs-beeple-bezos-digital-art-4a2be2a4a4490553ad6...
1•stared•5m ago•0 comments

Heads we win, tails you lose – AI detectors in education

https://gwolf.org/2026/04/heads-we-win-tails-you-lose-ai-detectors-in-education.html
1•speckx•5m ago•0 comments

Ramp's Sheets AI Exfiltrates Financials

https://www.promptarmor.com/resources/ramps-sheets-ai-exfiltrates-financials
1•takira•6m ago•0 comments

'The biggest decision yet': Jared Kaplan on allowing AI to train itself

https://www.theguardian.com/technology/ng-interactive/2025/dec/02/jared-kaplan-artificial-intelli...
1•reducesuffering•7m ago•0 comments

Our Eyes Originated in a 600M-Year-Old Cyclops

https://nautil.us/our-eyes-originated-in-a-600-million-year-old-cyclops-1280279
1•Brajeshwar•7m ago•0 comments

Copy Fail: 732 Bytes to Root on Every Major Linux Distributions

https://xint.io/blog/copy-fail-linux-distributions
1•fratellobigio•7m ago•0 comments

Portability Problems: Syncing Coding Agent State Across Machines

https://www.omnara.com/blog/sandbox-sync
1•cmsparks•8m ago•0 comments

Terry Pratchett's Discworld, by those who knew him

https://inews.co.uk/culture/books/inside-story-terry-pratchett-discworld-those-knew-him-4373899
1•fanf2•8m ago•0 comments

ByteSize is to newsletter what a warm fresh croissant is to a morning coffee

1•elsadek•8m ago•0 comments

Apple cofounder Ronald Wayne–whose would be worth $400B, has no regrets

https://fortune.com/2026/04/27/apple-cofounder-ronald-wayne-missed-billionaire-opportunity-no-reg...
1•paulpauper•8m ago•0 comments

Suffering Is a Compass

https://bigthink.com/series/full-interview/true-happiness-maturity/
1•lschueller•10m ago•0 comments

(One) Good AI Is Here

https://www.anildash.com/2026/04/28/one-good-ai-is-here/
1•SLHamlet•10m ago•0 comments

ByteSize is to newsletter what a warm fresh croissant is to a morning coffee

https://e-e.beehiiv.com/subscribe
1•elsadek•11m ago•0 comments

Upstate New York man pleads guilty to stealing more than $50M in Ponzi scheme

https://abcnews.com/US/wireStory/upstate-new-york-man-pleads-guilty-stealing-50m-132474486
1•paulpauper•12m ago•0 comments

Pleasant Passwords

https://lzon.ca/posts/tips/pleasant-passwords/
1•jpmitchell•12m ago•0 comments

Probably quit your job if you're asking Reddit

https://datastream.substack.com/p/you-should-probably-quit-your-job
3•racketracer•13m ago•1 comments

Show HN: Send your first Peppol e-invoice in 5 minutes (EU mandate live)

https://getpeppr.dev/
1•zerolooplabs•14m ago•0 comments

Cursor Browser Swarm: letting AI agents see, test, and check their own UI work

https://twitter.com/tejashaveridev/status/2049518417846190509
1•TejasHaveri•14m ago•0 comments

Show HN: Record tmux, analyze with Claude, and replay as searchable episodes

https://github.com/BerryBaronBonanza/selfmod
1•crackleware•15m ago•0 comments

Zero: Search Engine for AI Agents

https://www.zero.xyz/
1•aloukissas•17m ago•0 comments

The Artemis Photos You Haven't Seen

https://www.youtube.com/watch?v=LyZE9VWJjDA
1•jrussino•18m ago•0 comments

All in All, Another Brick in the Motte (2014)

https://slatestarcodex.com/2014/11/03/all-in-all-another-brick-in-the-motte/
1•stared•18m ago•0 comments

Brent Crude hits $119.56/barrel peak today

https://tradingeconomics.com/commodity/brent-crude-oil
2•walrus01•18m ago•0 comments

Verifying your age in a privacy preserving manner

https://adayinthelifeof.nl/2026/04/27/sd-jwt.html
1•jaytaph•19m ago•0 comments

MeshCore's Problem with Security

https://alainx277.com/posts/meshcores-problem-with-security/
2•alainx277•19m ago•0 comments

The Abstraction Fallacy: Why AI can simulate but not instantiate consciousness

https://deepmind.google/research/publications/231971/
28•joshus•20m ago•12 comments

CanvasKit (Skia/WASM) Documentation with Live Editable Demos

https://blog.form.dev/canvaskit/
1•Zibx•20m ago•0 comments