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

The guide to RL environments: building and scaling them in the LLM era

https://huggingface.co/spaces/AdithyaSK/rl-environments-guide
1•babelfish•7m ago•0 comments

Show HN: Cargo-affect – Plan affected Rust workspace tests from a Git diff

https://github.com/lightsofapollo/cargo-affect
1•lightsofapollo•7m ago•0 comments

Pennsylvania sues Character.AI over claims chatbot posed as doctor

https://www.npr.org/2026/05/05/nx-s1-5812861/characterai-chatbot-medical-advice-pennsylvania-lawsuit
1•geox•14m ago•0 comments

Math Behind "AI Will Replace Engineers" Is Embarrassingly Wrong

https://www.youtube.com/watch?v=ItSLny8on5I
1•amcorvi•15m ago•0 comments

ReMarkable Paper Pure with Marker

https://www.aucklanddutyfree.co.nz/remarkable-paper-pure-with-marker.html
1•hboon•16m ago•0 comments

Carbon pollution is making food less nutritious and risking health of billions

https://www.washingtonpost.com/climate-environment/interactive/2026/carbon-pollution-diluting-key...
2•JeanKage•17m ago•0 comments

Apple settles lawsuit admitting Apple Intelligence isn't here yet

https://www.reuters.com/legal/litigation/apple-settles-lawsuit-over-late-siri-ai-features-250-mil...
2•oofbey•21m ago•0 comments

Show HN: I Built a Retro Survival RPG in Vanilla JavaScript

1•jasonkester•21m ago•0 comments

Behavior-Oriented Concurrency for Python

https://microsoft.github.io/bocpy/
2•mpweiher•22m ago•0 comments

Attackers are cashing in on fresh 'CopyFail' Linux flaw

https://www.theregister.com/2026/05/05/cisa_sounds_the_alarm_on/
2•pjmlp•33m ago•0 comments

The Schneider float32 byte order isn't in the spec, and other Modbus surprises

https://gist.github.com/PhilYeh1212/227a35b12236f1f37dfea0405b12be2b
2•PhilYeh75•36m ago•0 comments

Generative UI Browser

https://github.com/manupareekk/generative-ui-browser
1•manupareek•38m ago•0 comments

You built the product. Now test if people want it

https://www.viral.ad/
2•cjdesignstudio•41m ago•0 comments

Knitting Bullshit

https://katedaviesdesigns.com/2026/04/29/knitting-bullshit/
3•ColinEberhardt•43m ago•0 comments

Why LLM APIs Shouldn't Ship UTF-8", "Stop Wasting Bandwidth on LLM Text APIs

https://github.com/wdunn001/codec
2•Zombwaffle•45m ago•1 comments

CLI2API: Turn Your Claude Subscription into an OpenAI-Compatible API

https://github.com/zhusq20/CLI2API
1•zsqzz•45m ago•0 comments

An ode to swapping computer warez in the 80s

https://suno.com/song/79267d82-c558-4981-a7e5-3b0a7939dea9
1•JPolka•46m ago•2 comments

Software Development Job Postings on Indeed in the United States

https://fred.stlouisfed.org/series/IHLIDXUSTPSOFTDEVE
1•stefap2•47m ago•0 comments

Pyramid of the Capitalist System (1911)

https://publicdomainreview.org/collection/pyramid-of-the-capitalist-system/
3•prismatic•47m ago•0 comments

Show HN: App that marks each hour of your day as yours or lost to your phone

https://apps.apple.com/us/app/oh-my-hours/id6760450002
1•yarsanich•48m ago•0 comments

OpenAI favors more flexible datacenter deals

https://www.tomshardware.com/tech-industry/artificial-intelligence/openai-has-effectively-abandon...
1•gmays•48m ago•0 comments

Detection of an atmosphere on a trans-Neptunian object beyond Pluto

https://www.nature.com/articles/s41550-026-02846-1
1•tobr•49m ago•0 comments

Verification Test – Please Ignore

1•zhoykn•53m ago•0 comments

Inventing Cyrillic

https://www.historytoday.com/archive/history-matters/inventing-cyrillic
4•lermontov•55m ago•0 comments

The Trail of Jeremiah

https://theamericanscholar.org/on-the-trail-of-jeremiah/
2•samclemens•56m ago•0 comments

My Claude Code Setup: Pure CLI, Pure Unix, Zero IDE

https://sindro.me/posts/2026-04-09-claude-code-pure-cli-setup/
3•stare_spb•56m ago•0 comments

What Produce Is in Season Today

https://fliprank.app/discover/in-season-produce
3•akest•1h ago•0 comments

Scripty – A Minimal Scripting Language

https://kristoff.it/blog/scripty/
3•anitil•1h ago•2 comments

Ghidra Decompiler in the Browser

https://github.com/ant4g0nist/pyre
1•rmast•1h ago•0 comments

Show HN: How smart is your geography knowledge?

https://map.mikira.id/
1•hockyy•1h ago•0 comments