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

Winaskpass: WSL SSH-add helper using WinCred

https://scarpino.dev/posts/winaskpass-wsl-ssh-add-helper-using-wincred.html
1•ilpianista•13s ago•0 comments

Extracting verified C++ from the Rocq theorem prover at Bloomberg

https://bloomberg.github.io/crane/
1•clarus•1m ago•1 comments

Show HN: Explic – An AI tutor that prompts you with questions, not answers

https://www.explic.app/
1•IndieDev-Will•1m ago•0 comments

Ask HN: Is it still worth building an AI tools directory in 2026?

1•NewWebDev•1m ago•0 comments

SSH to Get Your Coffee

https://www.terminal.shop/
1•michael-sumner•7m ago•0 comments

PardusAI – no prompt, only 1 CSV file, full self data analysis

https://pardusai.org/
1•lidangzzz•11m ago•0 comments

UK gambling regulator accuses Meta of lying about struggle to spot illegal ads

https://www.theregister.com/2026/01/20/uk_gambling_comission_criticizes_meta/
1•xyzzy3000•13m ago•0 comments

The Door

https://xorvoid.com/the_door.html
1•ibobev•16m ago•0 comments

Markdown Is the Best Format for Note-Taking

https://oneuptime.com/blog/post/2026-01-19-why-markdown-is-the-best-format-for-notetaking/view
1•ndhandala•18m ago•0 comments

Two Cheers for Ugly Code

https://www.johndcook.com/blog/2026/01/19/ugly-code/
1•ibobev•19m ago•0 comments

I used AI chatbots as a source of news and they were unreliable and erroneous

https://theconversation.com/i-used-ai-chatbots-as-a-source-of-news-for-a-month-and-they-were-unre...
1•JeanKage•20m ago•0 comments

The Copyrightability of Fonts Revisited

https://matthewbutterick.com/chron/the-copyrightability-of-fonts-revisited.html
1•7777777phil•21m ago•0 comments

Show HN: UggPugg-find the connections between anyone and anything

https://uggpugg.com/
1•soderpop•22m ago•0 comments

We have conducted a comprehensive safety test of electric buses

https://ruter.no/en/ruter-with-extensive-security-testing-of-electric-buses
1•tigerlily•22m ago•0 comments

Show HN: KindleBox, an infinite canvas for notes, links, media, and RSS

https://kindlebox.app
1•ianclemence•26m ago•0 comments

Model-Market Fit

https://www.nicolasbustamante.com/p/model-market-fit
1•bfelbo•26m ago•0 comments

What's so bad about Microsoft?

https://www.kmfms.com/whatsbad.html
1•lr0•27m ago•0 comments

Show HN: Vibe Coding Entire Full-Stack Apps with AI

https://www.subterranean.io/
1•wordongu•30m ago•0 comments

6 Years Building Video Players. 9B Requests. Starting Over

https://www.mux.com/blog/6-years-building-video-players-9-billion-requests-starting-over
1•bolp•35m ago•0 comments

Lessons from creating a gaming-oriented scheduler

https://lwn.net/Articles/1051430/
1•todsacerdoti•36m ago•0 comments

Enterprise Bulk File Renamer with Preview, Undo, Force-Rename, and CSV Export

https://gum.new/gum/cmjzyahd9001n04l4fmdwbz24
1•Dev_Master•36m ago•1 comments

QMD - Quick Markdown Search

https://github.com/tobi/qmd
2•saikatsg•40m ago•0 comments

Frankenwine: Multiple Personas in a Wine Process

https://nullprogram.com/blog/2026/01/19/
1•ingve•41m ago•0 comments

A nice implementation of AI summary – Spicy Takes

https://benn.spicytakes.org/
1•articsputnik•45m ago•0 comments

Show HN: Pygments Swift – Swift-native syntax highlighting library

https://github.com/muonium-ai/pygments-swift
1•senthilnayagam•46m ago•0 comments

Ask HN: What is the most difficult tech/dev challenge you ever solved?

1•chistev•47m ago•1 comments

Diving into the Depths of Widevine L3

https://neodyme.io/en/blog/widevine_l3/
2•azalemeth•47m ago•0 comments

Zeiss, the company behind ASML optics, is also doing wildlife monitoring with AI [video]

https://www.youtube.com/watch?v=7kKJOphMxUw
3•bonplan23•48m ago•0 comments

Kraków, Poland in top 5 worst air quality worldwide

https://www.iqair.com/world-air-quality-ranking
49•madjam002•53m ago•38 comments

The Dangerous Paradox of A.I. Abundance

https://www.newyorker.com/news/the-financial-page/the-dangerous-paradox-of-ai-abundance
2•thm•57m ago•0 comments