logoalt Hacker News

Show HN: X86CSS – An x86 CPU emulator written in CSS

251 pointsby rebane2001today at 2:27 AM85 commentsview on HN

Comments

Dylan16807today at 6:20 AM

> A hover-based clock, such as the one in Jane Ori's CPU Hack, is fast and stable, but requires you to hold your mouse on the screen, which some people claim does not count as turing complete for whatever reason, so I wanted this demo to be fully functional with zero user input.

That hover clock post is from 2023 and the "some people claim does not count" post is 2022. They were probably talking about the ones that make you check thousands of boxes to drive the logic forward.

Anyway, very cool advancement.

show 1 reply
mbreesetoday at 12:36 PM

This is a cool demo, but it tells me that CSS might be too complex now. Why should you be able to emulate a CPU with a styling language? I’m not sure what you get by using a Turing complete language for visual styling.

show 2 replies
senfiajtoday at 10:46 AM

I have mixed feelings. On the one hand, it's impressive, but on the other, it's concerning that CSS is turning into "JavaScript 2".

show 1 reply
randfurtoday at 8:29 PM

Really looking forward to a how it works post. What is that READMEM_1??

show 1 reply
btdmastertoday at 12:10 PM

Very cool. The horsle demo made me think, how hard would it be to add a virtual memory address (or a non-8086 RAND instruction) that returns a random byte (that would allow it to pick a random value and get a standard wordle working in principle)

I see CSS random() is only supported by Safari, I wonder if there's some side channel that would work in Chrome specifically? (I guess timing the user input would work)

show 1 reply
BirAdamtoday at 4:35 PM

I know everyone is saying "CSS doesn't need to be Turing complete" but... to me, this just shows the JS isn't needed anymore.

notpushkintoday at 4:00 AM

Whoa!

Completely unrelated but somehow unsurprising:

Zero-day CSS: CVE-2026-2441 exists in the wild - https://news.ycombinator.com/item?id=47062748 - February 2026 (233 comments)

show 2 replies
RedShift1today at 11:17 AM

Definitely in the "they didn't stop to think if they should" category.

show 1 reply
namuoltoday at 5:37 PM

Predictably, all the same people who bemoan JS ubiquity feel the need to express their distaste for advances in CSS in this thread. Nobody is actually doing stuff like this in real applications, it’s just a demo, for fun.

I get the feeling some people just hate the web.

show 1 reply
dmitrygrtoday at 3:54 AM

There is absolutely no reason for css to be turing complete. None. That being said, well done

show 1 reply
ebolyentoday at 11:10 AM

The moxy of this is inspiring.

I'm curious to know what you would rate as the most important features to make this work? It seems like calc+if do a lot of the heavy lifting, but the new function syntax is what makes instruction lookup tractable.

freakynittoday at 6:08 AM

Incredible achievement. Horrible development on CSS front.

CSS should NOT be becoming turing complete. Nor any other DSL.

show 2 replies
csmantletoday at 3:55 AM

I think we can look forward to running this on more non-Chrome browsers once @function [0] gets wider support?

[0]: https://caniuse.com/wf-function

show 1 reply
hudecekdevtoday at 7:08 AM

This is absolutely horrible... in a good way. Kinda like Doom in a PDF. Well done.

voidUpdatetoday at 8:05 AM

So is this x86 compatible, or 8086 compatible? Because those are different things

show 3 replies
Alohatoday at 6:19 AM

This feels like... just because you can, doesnt mean you should.

andrewstuarttoday at 4:15 AM

Abomination! (Makes sign of cross)

Also: wow.

warpspintoday at 10:32 AM

Next step: Start Chrome in emulated X86CSS and start X86CSS in emulated Chrome.

MetaMonktoday at 4:18 AM

this is incredible

nottorptoday at 10:03 AM

Next logical step is to compile the CSS to webassembly, of course!

NoiseBert69today at 2:24 PM

Bruh...

Can it mine bitcoins or run worms?

_s_a_m_today at 7:41 AM

Only Chrome ..

desdenovatoday at 10:13 AM

[flagged]

umairnadeem123today at 8:57 PM

[dead]

gurjeettoday at 4:52 AM

> Your browser is unable to run this demo. Please try with an up-to-date Chromium-based browser.

Sorry to see internet regressing to Internet Explorer days.

Edited to add: This is the message I get when using Firefox.

show 3 replies
zenon_paradoxtoday at 3:22 AM

[flagged]

show 1 reply
nsonhatoday at 6:28 AM

I realy hope an AI did this intead of human, such a waste of time (the css part, not the x86)

show 4 replies