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

Ignore: Automation Smoke Test

1•zhoykn•1m ago•0 comments

Inverse Chladni Energy Landscape Design

https://github.com/PaulBellette/chladni_inverse_design
1•salty_biscuits•1m ago•1 comments

SmartTune CLI – ArduPilot log analysis(MIT open source)

https://github.com/raylanlin/smarttune-cli
2•RaylanLIN•2m ago•0 comments

Jensen says Nvidia now has '0%' share in China, US export policy 'has backfired'

https://www.tomshardware.com/tech-industry/artificial-intelligence/jensen-says-nvidia-now-has-zer...
2•SanjayMehta•3m ago•0 comments

The growth engineering one pager

https://jordanlord.co.uk/blog/growth-engineering/
1•nervous_north•3m ago•0 comments

Rackspace offers GPUs as a cloud service with spot instance pricing

https://siliconangle.com/2024/11/04/rackspace-offers-gpus-cloud-service-spot-instance-pricing/
1•aleroawani•3m ago•0 comments

Agent Control Room – Auth0 for AI Agents

https://topainexus.com
1•danielmichnea•7m ago•0 comments

Show HN: Weather app to show actual performance of weather models

https://apps.apple.com/nl/app/verisky/id6759251875
1•nickoteeno•10m ago•1 comments

Resend overtook SendGrid+Mailgun+Postmark+Mailjet combined on indie launches

https://stackscope.dev/blog/state-of-indie-launches-april-2026
1•stackscope•12m ago•0 comments

Amsterdam bans public adverts for meat and fossil fuels

https://www.bbc.com/news/articles/c9wejdekpwyo
4•mr_toad•15m ago•1 comments

SoftBank plans to list new AI and robotics company in the US

https://www.ft.com/content/55c7d99c-7e68-453c-b784-33d6b9838e16
1•JumpCrisscross•15m ago•0 comments

Circuitiny: AI-assisted circuit design tool for hobbyists

https://github.com/mfranzon/circuitiny
1•mfranzon•16m ago•0 comments

Redis new Array type PR and request for feedbacks

https://github.com/redis/redis/pull/15162
1•antirez•16m ago•0 comments

Heat pump sales jump as consumers recoil at high fossil fuel prices

https://www.ft.com/content/571e9cc4-1b32-49ef-bc82-e550e9404d8f
1•JumpCrisscross•17m ago•0 comments

The A.I. Industry Is Booming. When Will It Make Money?

https://www.newyorker.com/news/the-financial-page/the-ai-industry-is-booming-when-will-it-actuall...
1•geox•17m ago•0 comments

Why the Ideal Magnet Remains Out of Reach

https://spectrum.ieee.org/rare-earth-free-magnets
1•pseudolus•24m ago•0 comments

Iarpa Trojans in Artificial Intelligence

https://arxiv.org/abs/2602.07152
1•hlynurd•24m ago•0 comments

Advice I WISH I'D BEEN Told (1999)

http://web.archive.org/web/20090502012411/http://wwwstage.valpo.edu/english/vpr/mcdonaldessay.html
2•downbad_•25m ago•1 comments

Ask HN: Feedback on my privacy-focused code editor?

1•aminekhd•26m ago•0 comments

Family data reveal two genetic paths to childhood depression and anxiety

https://medicalxpress.com/news/2026-04-family-reveal-genetic-paths-childhood.html
1•pseudolus•28m ago•0 comments

More than double the gas stuck in Hormuz is wasted each year, IEA says

https://www.ft.com/content/fdc6aa8a-538a-4f1d-b1b9-a0ce0cd2a5ac
2•JumpCrisscross•29m ago•0 comments

Kant: Was Ist Aufklärung?

https://www.hs-augsburg.de/~harsch/germanica/Chronologie/18Jh/Kant/kan_aufk.html
2•doener•31m ago•1 comments

Show HN: Valk Guard– Catches dangerous SQL hidden inside your ORM,no DB required

https://github.com/ValkDB/valk-guard
1•valkdb•33m ago•0 comments

Why do so many people use AI to cheat at fun?

https://www.thecut.com/article/would-you-use-chatgpt-to-cheat-at-hobbies.html
1•the-mitr•34m ago•0 comments

Reviving the internet radio in my 12-year-old Denon

https://victorantos.com/posts/i-bought-a-denon-for-my-wedding-then-i-vibe-coded-its-radio-back/
2•victorbuilds•34m ago•0 comments

GitHub (But It's a EU Project)

https://pinolallo.com/html/eurohub-demo.html
4•HipstaJules•36m ago•0 comments

Shoppers falsely identified by facial recognition struggle to clear their names

https://www.theguardian.com/technology/2026/may/03/guilty-until-proven-innocent-shoppers-falsely-...
1•rwmj•38m ago•0 comments

AI-Generated Code Has No Author – Ossature Blog

https://ossature.dev/blog/ai-generated-code-has-no-author/
1•lifeisstillgood•38m ago•0 comments

United flight collides with truck and light pole as it lands at Newark airport

https://www.cnn.com/2026/05/03/us/united-airlines-newark-truck-streetlight
4•blendergeek•39m ago•0 comments

The Arena of Seperation

https://drive.google.com/drive/folders/1LhbVuK--98o6UsyiCzTjQ3yxQb3VjWce?usp=sharing
1•thepppanda•40m ago•1 comments