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

22M Affected by Aflac Data Breach

https://www.securityweek.com/22-million-affected-by-aflac-data-breach/
1•Bender•15s ago•0 comments

AI-generated code leaves businesses open to supply chain risk

https://www.scworld.com/news/ai-generated-code-leaves-businesses-open-to-supply-chain-risk
1•Bender•42s ago•0 comments

Researchers make "neuromorphic" artificial skin for robots

https://arstechnica.com/science/2025/12/researchers-make-neuromorphic-artificial-skin-for-robots/
1•Bender•1m ago•0 comments

Binance's Trust Wallet extension hacked; users lose $7M

https://www.web3isgoinggreat.com/?id=trust-wallet-hack
1•ilamont•3m ago•0 comments

I think I found a bug in amazon.com

1•_cairn•7m ago•0 comments

Every Test Is a Trade-Off

https://blog.todo.space/2025/12/27/buying-the-right-test-coverage/
1•birdculture•7m ago•0 comments

Show HN: I built an AI that generates clean docs for vibe-coded apps

https://www.superdocs.cloud/
1•udit_50•8m ago•1 comments

Ask HN: How can I stop Google search AI overview from spoilers?

1•ex-aws-dude•8m ago•0 comments

How hard is it to encapsulate life? The general constraints on encapsulation

https://royalsocietypublishing.org/rstb/article/380/1936/20240297/235091/How-hard-is-it-to-encaps...
2•PaulHoule•8m ago•0 comments

Finger-Nose Stylus for Touch Screens

https://variationsonnormal.com/2011/04/28/finger-nose-stylus-for-touchscreens/
1•downboots•8m ago•0 comments

The Untold Story of the Nintendo Entertainment System [video]

https://www.youtube.com/watch?v=uJvpRGibFhg
1•Timothee•9m ago•0 comments

Oct 9, 2006 to Dec 27, 2025 – 7,020 Days of Hacker News

https://da0a80a4.static-news-dtg.pages.dev/static
1•keepamovin•10m ago•1 comments

Which Humans?

https://osf.io/preprints/psyarxiv/5b26t_v1
1•surprisetalk•10m ago•0 comments

Fighting Fire with Fire: Scalable Oral Exams with an ElevenLabs Voice AI Agent

https://www.behind-the-enemy-lines.com/2025/12/fighting-fire-with-fire-scalable-oral.html
2•Panos•13m ago•0 comments

Meta's ads tools started switching out top-performing ads with AI-generated ones

https://www.businessinsider.com/meta-ai-generating-bizarre-ads-advantage-plus-2025-10
30•zdw•16m ago•7 comments

Next Five Asteroid Approaches

https://www.jpl.nasa.gov/asteroid-watch/next-five-approaches/
1•gnabgib•16m ago•0 comments

Show HN: Cmt is an AI powered commit generator

https://github.com/clifton/cmt
1•cliftonk•17m ago•0 comments

Nx "pulled the rug" on us, a potential solution and lessons learned

https://salvozappa.com/how-nx-pulled-the-rug-on-us.html
2•lladnar•17m ago•0 comments

Russian Ghost Ship Sank Smuggling Nuclear Reactor Parts Likely Bound for N Korea

https://united24media.com/latest-news/russian-ghost-ship-sank-while-smuggling-nuclear-reactor-par...
8•ck45•19m ago•1 comments

Walmart opts for 3D-printed buildings using technology from Alquist

https://unionrayo.com/en/walmart-3d-printed-building/
3•stevenjgarner•24m ago•1 comments

The "4-Hour Barrier": Forensic Audit of Sm_90 Logic Decay on Nvidia H100

1•Stan_Byriukov•24m ago•0 comments

Bubbly Moonshots: On stagflation, neolabs, how to handpick not-stupid categories

https://substack.com/home/post/p-182749582
2•theno0b•25m ago•0 comments

Ralph Nader Has a Pencil Eraser Problem. We Put 100 Kids on the Case

https://www.nytimes.com/wirecutter/reviews/ralph-nader-pencil-erasers/
1•nateb2022•25m ago•0 comments

Sun Times Visualization

https://udivankin.github.io/sunrise-sunset/
1•amadeuspagel•25m ago•0 comments

Profiling Python and Ruby Using eBPF

https://www.polarsignals.com/blog/posts/2023/10/04/profiling-python-and-ruby-with-ebpf
1•nickdevx•26m ago•0 comments

Binary Ninja is an interactive decompiler and binary analysis platform

https://binary.ninja/
1•nickdevx•27m ago•1 comments

Shipping at Inference-Speed

https://steipete.me/posts/2025/shipping-at-inference-speed
1•gmays•30m ago•0 comments

Show HN: Template Files with Nix Home Manager

https://ckardaris.github.io/blog/2025/12/29/template-files-with-nix-home-manager.html
1•ckardaris•33m ago•0 comments

Prompt Injection Defenses

https://github.com/tldrsec/prompt-injection-defenses
1•kidbomb•34m ago•0 comments

Russian enthusiasts planning DIY DDR5 memory amidst the worldwide shortage

https://www.tomshardware.com/pc-components/ddr5/russian-enthusiasts-are-building-their-own-ddr5-r...
2•akyuu•34m ago•0 comments