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

Use-media-stream 2.0.0 – React hook for getUserMedia that cleans up after itself

https://kothariji.github.io/use-media-stream/
1•kothariji•3m ago•0 comments

GrokImage – AI Visual Generator Integrating Grok, Gemini and Nano Banana

https://grokimage.ai/
1•RustyArmor•3m ago•0 comments

TriageBox – quick Gmail checker, sorting and AI summaries

https://triagebox.pfa87.cc/
1•moctey•3m ago•0 comments

The Road to MS-DOS 2.0

https://nemanjatrifunovic.substack.com/p/the-road-to-ms-dos-2
1•whobre•3m ago•0 comments

Cost-per-success, not cost-per-call: the LLM routing number nobody measures

https://nitishagar.medium.com/the-cheap-model-that-tripled-your-bill-06c5c796fa25
1•nitishagar•3m ago•0 comments

Avoiding Digital Productivity Traps

https://calnewport.com/avoiding-digital-productivity-traps/
1•Tomte•4m ago•0 comments

Has anyone built a way to measure attention during meetings?

1•CatalystPz•4m ago•0 comments

Why 'open' AI systems are closed, and why this matters (2024)

https://www.nature.com/articles/s41586-024-08141-1
1•soupspaces•8m ago•0 comments

All Your Projects Are Now Brownfield

https://psyonik.tech/posts/youre-a-glorified-cleanup-crew/
1•pSYoniK•9m ago•0 comments

Show HN: Salary raise calculator with tax and inflation estimates

https://salaryincreasecalculator.app/
1•Tim999•10m ago•0 comments

Evaluate the profanity used working with Codex and Claude Code

https://github.com/marcelpetrick/AgenticSwearJar
1•marcelpetrick•13m ago•1 comments

Mainline Closed Beta: Open-source, science-based chess training

https://github.com/kleinebossie/Mainline
1•joebos•17m ago•1 comments

First Binary Distribution of the OpenSSL Library: Windows Installer Test Release

https://github.com/openssl/openssl/discussions/32317
1•theandrewbailey•19m ago•0 comments

"I used Fable 5 to bring Command and Conquer: Red Alert 2 to iPhone and iPad"

https://xcancel.com/antibot/captcha
1•doener•22m ago•0 comments

Electric Is Joining Databricks

https://electric.ax/blog/2026/08/11/electric-joining-databricks
1•chaychoong•22m ago•0 comments

An Advanced Attacker Is Targeting Salesforce and ServiceNow

https://www.reco.ai/blog/city-forum-campaign-salesforce-servicenow
2•daretograsp•23m ago•0 comments

Facebook is paying controversial creators to produce rage-bait content

https://www.abc.net.au/news/2026-08-06/ragebait-how-facebook-is-paying-controversial-creators/106...
17•robtherobber•26m ago•5 comments

Turbo Pascal on CP/M, MSX-DOS and MS-DOS – Pascal for Small Machines

http://pascal.hansotten.com/delphi/turbo-pascal-on-cpm-msx-dos-and-ms-dos/
2•rbanffy•27m ago•0 comments

Life Lessons from Reinforcement Learning

https://www.jasonwei.net/blog/life-lessons-from-reinforcement-learning
1•harpsichord9•28m ago•0 comments

Finding Metrics That Matter

https://www.octoshark.net/p/measuring-matters
1•akexl•30m ago•0 comments

Beef and dairy drive 41% of biodiversity damage linked to global farmland

https://www.oxfordmartin.ox.ac.uk/news/beef-and-dairy-drive-41-of-biodiversity-damage-linked-to-g...
15•robtherobber•30m ago•2 comments

The Principal-Agent vs. Agents Problem

https://twitter.com/arampell/status/2087258098427982012
1•tosh•31m ago•0 comments

Why sexualisation of women by Grok's GenAI is a data privacy issue

https://www.computerweekly.com/news/366648854/Why-sexualisation-of-women-by-Groks-GenAI-is-a-data...
2•beardyw•35m ago•0 comments

Worms: The Directors Cut (Amiga) – A Playguide and Review – By Lemonamiga.com [video]

https://www.youtube.com/watch?v=Xnz0_G5GIJg
1•doener•36m ago•0 comments

Inflation Peaks – drive over India's inflation

https://timeseriesofindia.com/economy/play/inflation-peaks/
2•Karupan•36m ago•0 comments

It's time to sue Sony, join us [video]

https://www.youtube.com/watch?v=gUHyYkPnJv0
3•whosgotch•38m ago•0 comments

Discovery of 'slow' electrons in 2D material could lead to new memory device

https://phys.org/news/2026-08-discovery-electrons-2d-material-memory.html
1•frozenseven•39m ago•1 comments

Show HN: Craft (Minecraft clone) rewritten in Rust under a $120 budgeted (Grok)

https://zozo123.github.io/Craft/
1•zozo123-IB-IL2•39m ago•0 comments

AI Infrastructure Leadership Summit

https://rafay.swoogo.com/inquiry/12744303
3•kikiodazie•40m ago•1 comments

I deleted 60% of my subscribers on purpose

https://tinyfound.beehiiv.com/p/from-europe-with-love
1•alexbelyanin•41m ago•0 comments