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: OpenHack – OSS security scanner, 40x cheaper, on par with Opus 4.6

https://github.com/openhackai/openhack
1•ananayarora•52s ago•0 comments

NSA using Anthropic's Mythos for cyber attacks

https://www.ft.com/content/d02d91b3-2636-454e-9442-dc7e69f51815
4•jawiggins•10m ago•0 comments

Show HN: FFmpeg WebCLI – Full FFmpeg in Browser, Offline PWA, No Uploads(WASM)

https://github.com/tejaswigowda/ffmpeg-webCLI
4•tejaswigowda•11m ago•0 comments

Google Research: Towards passive heart health monitoring via smartphone camera

https://research.google/blog/towards-passive-heart-health-monitoring-via-smartphone-camera/
4•thinkcomp•16m ago•0 comments

Strategic Implications of Lunar Mass Drivers as a Dual Use Technology [pdf]

https://www.afpc.org/uploads/documents/Special_Report_-_Strategic_Implications_of_Lunar_Mass_Driv...
2•EthanHeilman•17m ago•0 comments

Why Vector Search fails at LLM memory (and a benchmark to prove it)

https://github.com/tenurehq/precisionMemBench
2•decorner•21m ago•0 comments

Only 3% of traders drive prediction markets' accuracy, not the crowd

https://www.coindesk.com/markets/2026/04/26/only-3-of-traders-drive-prediction-markets-accuracy-n...
3•PaulHoule•22m ago•0 comments

Crashing cars and improving hover detection

https://motion.dev/magazine/collision-detection-in-hover-detection
1•azhenley•23m ago•0 comments

Iran Shock Jolts Asia and Europe to Speed Up Energy Transition

https://www.bloomberg.com/graphics/2026-energy-transition-iran-war/
4•toomuchtodo•24m ago•0 comments

Documentary, "C++: The Most Consequential Programming Language"

https://www.youtube.com/watch?v=lI7tMxzSJ7w
4•pjmlp•27m ago•0 comments

ATV Riders Cheer Trump Opening Access to Federal Lands, Critics Expect Disaster

https://cowboystatedaily.com/2026/06/04/atv-riders-cheer-trump-opening-access-to-federal-lands-cr...
3•Bender•28m ago•1 comments

Dashlane explains how attackers managed to download encrypted password vaults

https://arstechnica.com/security/2026/06/dashlane-explains-how-attackers-managed-to-download-encr...
1•Bender•29m ago•0 comments

My SSN was exposed in a breach at Columbia, a school I have no connection with

https://arstechnica.com/tech-policy/2026/06/my-ssn-was-exposed-in-a-breach-at-columbia-a-school-i...
5•Bender•30m ago•1 comments

Anthropic's open-source framework for AI-powered vulnerability discovery

https://github.com/anthropics/defending-code-reference-harness
34•binyu•32m ago•9 comments

SpaceX's Tiered Lockup Aims to Help Post-IPO Trading

https://global.morningstar.com/en-nd/stocks/how-spacexs-tiered-lockup-aims-help-post-ipo-trading
1•tmp10423288442•32m ago•0 comments

How we know if our agent is right

https://www.mendral.com/blog/how-we-know-if-our-agent-is-right
2•shad42•34m ago•0 comments

Show HN: Using Haskell to play music on 3D printer motors (2020)

https://lucasoshiro.github.io/software-en/2020-07-31-music_gcode/
2•lucasoshiro•35m ago•0 comments

Canada's National Artificial Intelligence Strategy: AI for All

https://ised-isde.canada.ca/site/ised/en/canadas-national-artificial-intelligence-strategy-ai-all
2•Teever•36m ago•0 comments

Show HN: Module adding Layer-3 protocols SV and GOOSE to ns-3 network simulator

https://github.com/lucasoshiro/GridGooseSV
1•lucasoshiro•38m ago•0 comments

Supreme Court Backs FCC Power to Levy Fines Against Cellphone Carriers

https://www.nytimes.com/2026/06/04/us/politics/supreme-court-cellphone-carriers-fines.html
3•Cider9986•39m ago•1 comments

Extension or Imitation? Valid Haskell Language Extensions vs. Impostors

https://doscienceto.it/extension-or-imitation/
4•birdculture•39m ago•0 comments

Nafion

https://en.wikipedia.org/wiki/Nafion
1•maxall4•41m ago•0 comments

Europe has sovereign AI policy. It has no sovereign AI

https://www.youtube.com/watch?v=Xk0llAE8GoY
3•frag•42m ago•0 comments

Magic Enum C++: Header-only C++17 library provides static reflection for enums

https://github.com/Neargye/magic_enum
2•gjvc•45m ago•0 comments

Anthropic Urges Global Pause in AI Development, Flags 'Self-Improvement' Risk

https://www.wsj.com/tech/ai/anthropic-urges-global-pause-in-ai-development-flags-self-improvement...
6•joebuckwilliams•46m ago•4 comments

Show HN: Bot or Not – Spot AI-generated randomness

https://play-bot-or-not.vercel.app/
2•EvanZhouDev•46m ago•0 comments

ConjureEnum: lightweight header-only C++20 enum and typename reflection

https://github.com/fix8mt/conjure_enum
2•gjvc•46m ago•0 comments

I turned my resume into a playable retro game

https://weskdavis.github.io/resume-game/
2•wkd415•49m ago•1 comments

Anthropic Urges Global Pause in AI Development, Flags 'Self-Improvement' Risk

7•stefap2•49m ago•5 comments

Castor: CERN Advanced STORage Manager

https://castor.web.cern.ch/content/home.html
16•naves•51m ago•1 comments