frontpage.
newsnewestaskshowjobs

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

Meta's Internal Research

https://metasinternalresearch.org
1•throw0101d•31s ago•0 comments

US retail giant Target doubles $1 BILLION income last quarter via tariff refunds

https://www.bbc.com/news/articles/c78gp4y8d3eo
1•ck2•1m ago•0 comments

New Manic Android malware can exfiltrate data through nearby devices

https://www.bleepingcomputer.com/news/security/new-manic-android-malware-can-exfiltrate-data-thro...
1•Brajeshwar•2m ago•0 comments

Teachers Pay Teachers hit by a wave of A.I. content with mistakes [video]

https://www.youtube.com/watch?v=qBVzsolalJ8
1•pavel_lishin•2m ago•0 comments

Could AIs Become Conscious?

https://economist.com/leaders/2026/08/20/could-ais-become-conscious
1•andsoitis•4m ago•0 comments

State of SaaSpocalypse

https://app.agentgrid.io/artifacts/BSSoRuFsywQAyzxDAsbmUg
1•avishic•5m ago•1 comments

One human. Agents. 3,913 merged PRs in 30 days

https://github.com/kungfu-systems/site-libkungfu-dev/blob/main/docs/research/parallel-runtime-pat...
1•ungfu•7m ago•0 comments

Spec4j makes your REST APIs YAMLless

https://github.com/marketplace/actions/spec4j
2•enismustafaj•8m ago•1 comments

Help to Improve Numax's Website?

https://github.com/GianIac/numax/issues/111
1•gianiac•9m ago•1 comments

Instant (Instantdb.com) Sunsetting

https://discord.com/channels/1031957483243188235/1148279464132890714/1540001948596445324
1•ibejoeb•10m ago•1 comments

Polchinski's Paradox

https://www.futilitycloset.com/2026/08/12/polchinskis-paradox/
2•surprisetalk•11m ago•0 comments

We trained small language models specifically for voice-to-text transformation

https://superwhisper.com/blog/s1
2•bpjzy•11m ago•1 comments

Code Factories Without Quality: The AI Development Blind Spot

https://www.qawolf.com/blog/code-factories-without-quality
2•BinRoo•12m ago•0 comments

Show HN: Open-source Stripe Connect alternative

https://zoneless.com
4•tinyprojects•12m ago•1 comments

Show HN: Check if any of the $656M in unclaimed royalties at The MLC is yours

https://pub.doub.ly/
3•knaught•12m ago•0 comments

I Finally Got Discouraged By DevTo

https://thibaultduponchelle.github.io/I-finally-got-discouraged-by-devto
1•reeeese•13m ago•0 comments

Stealing Blame

https://avivbenyosef.com/stealing-blame/
1•avivby•13m ago•0 comments

Show HN: Ullis – Local Ternary Moe-Kan Training and Inference Engine in Rust

https://github.com/Vladislav-Kalinkin/ullis
1•vlad_kalinkin•14m ago•0 comments

Just Fucking Use Neovim

https://www.justfuckinguseneovim.com/
2•hacb•14m ago•0 comments

Silencing the Second Hand of a Second-Hand Bird Clock

https://www.kyleniewiada.org/blog/2026/08/silencing-bird-clock-tick-tock/
1•speckx•14m ago•0 comments

Is Claude Code a bad harness?

https://generray.substack.com/p/is-claude-code-a-bad-harness
2•wsun19•14m ago•1 comments

ProgramBench Vetted: Reverse Engineering from a Runnable Binary

https://vetto.ai/companies/programbench-vetted.html
9•rigelbm•16m ago•0 comments

Apple leaked many features in a release, will it not be a flop? [video]

https://www.youtube.com/watch?v=q8Zd1dMK1uA
2•ltononro•16m ago•0 comments

Grok.bot – the epic domain lottery ticket

https://grok.bot/
2•bogdiyan•17m ago•0 comments

The "Kerry Cow" Wasn't a Cow at All–and It Upends Stone Age Irish History

https://nautil.us/the-kerry-cow-wasnt-a-cow-at-all-and-it-upends-stone-age-irish-history-1283999
2•Brajeshwar•18m ago•0 comments

mRNA cancer vaccine is getting there

https://arstechnica.com/health/2026/08/mrna-cancer-vaccine-succeeded-in-phase-3-melanoma-trial-mo...
4•ltononro•20m ago•1 comments

Citizens of France had their fiscal info leaked by the gov

https://www.franceinfo.fr/internet/securite-sur-internet/cyberattaques/piratage-du-fisc-quels-son...
3•mabios•21m ago•0 comments

The app blocker I made because I kept cheating on Screen Time

https://didac.dev/blog/the-app-blocker-i-made-because-i-kept-cheating-on-screen-time
2•sabatesduran•21m ago•0 comments

Show HN: A faithful port of Quake to the browser

https://willeastcott.github.io/playcanvas-quake/
2•ovenchips•21m ago•1 comments

Show HN: Clean, an agent skill that clears dev junk (freed 5.3 GB on first run)

https://github.com/andalabx/skills/tree/main/clean
2•Andassyn•22m ago•0 comments