i built an entire x86 CPU emulator in CSS (no javascript)

you can write programs in C, compile them to x86 machine code with GCC, and run them inside CSS

https://lyra.horse/x86css/

@rebane2001 Oh jesus.
@ajroach42 @rebane2001 We're gonna need to extend NoScript to include CSS at this rate 😅
@rebane2001 Firefox can't run it, which... i guess is good?
@rebane2001 this is… scary. But I sort of see how…
@rebane2001 I have no words to express how I feel about this. A few contemplative grunts maybe. That is beyond impressive. Wait I need to show this to other people.
@rebane2001 doesn't run on firefox unfortunately lol
@rebane2001 That is impressively cursed, well done!

@rebane2001 we need to put movfuscator in the middle

We need a special index for you, @xoreaxeaxeax , et al.

Oh, great. Stupid CSS tricks are now advanced enough to trigger Poe's law.

@rebane2001
@rebane2001 You monster. Not even a simple RISC like a normal weird person, you went for x86. I love it.

@mirth @rebane2001

A _normal weird person_ would have emulated either a LINC 8 or an IBM 1130.

@rebane2001 this is cool as hell, but i'm curious why it only works in chromium?
@goaty it uses newish css features such as if() statements and @functions, which other browsers haven't implemented yet
@rebane2001 ahhh, that makes sense! thanks 
@rebane2001 @goaty CSS has if statements now??!
There's a lot of css features only chrome has so far
@rebane2001
What? No menu option for Global Thermonuclear War? 😆
@JBrianCoyle @rebane2001 A strange game. The only winning move is not to play. How about a nice game of "centering the div"?
@rebane2001 this is diabolical, I love it

@rebane2001

I had not realized CSS was that powerful now

@rebane2001 Someone has to ask the question, so I'll do it:
when Doom?
damien 🥖🐈‍⬛🧣 (@damien.zone)

[contains quote post or other embedded content]

Bluesky Social
@kirakira what's assc
@crmsnbleyd im actually not sure
@kirakira @crmsnbleyd it's 'anti software software club,' the folks who ran cohost a few years ago
@crmsnbleyd @kirakira "anti-software software club", the team who ran Cohost
@crmsnbleyd @kirakira those are the folks who made the Cohost social network (RIP)

@rebane2001

First there was PAC Man ported to Microsoft Excel

Then there was an entire Atari 2600 build out of Minecraft redstone

Now there is an x86 fully emulated in CSS

Every once in awhile we at reminded that Pure Evil does exist

@msh So it is CSS all the way down? @rebane2001
@xChaos @msh @rebane2001 Until you get to the turtles.
@msh @rebane2001 pacman to excel is pre school. check out dave vs ziggy
@rebane2001 only works in Chrome because of course it does :<
@rebane2001 When someone claimed that CSS is Turing-complete, you said "for real?" and wrote this, didn't cha?
@rebane2001 Also, is your PFP an animated SVG?!
@csolisr a gif - i have my pfp as an svg, but only a static version, the animated one i made in after effects a while back
@rebane2001
Can it set an overflow flag, or does content just spill out onto the page? :)

@rebane2001 sick!!

It’s definitely not fast, but the more awesome at that! 🎉

@rebane2001 I'd say "I can't wait to see how someone is going to use this stuff for evil," but I think we're already there.
@rebane2001 Love it "It is fun though, and computers are made for art and fun!"
@rebane2001 It says I need to use Chromium. I don't use Google products.
@rebane2001 lol. if the css police comes to arrest you, just know you have friends everywhere.
@rebane2001 (the link to your python script in the FAQ points at a no-longer existing file https://lyra.horse/x86css/#:~:text=I%20wrote%20a%20python%20script. :))
x86CSS

x86CSS is a working CSS-only x86 CPU/emulator/computer. No JavaScript required!

@freddy dang it, i must've mis-guessed it (i usually write the github links to files *before* i figure out what filenames or repo names i want to use, hoping it'll line up later)
@rebane2001 lol your branch name is called mane....
@rebane2001 anyway I tried reading the source and it....gave me nothing. Looking forward to the explainer blog post, the various poorly written summaries of your emulator on "tech news" websites and the inevitable conference talk :)

@freddy heheh, the summaries will be terrible for sure

i've already seen a few ai bot comments that claim this is using checkboxes and selectors for the logic (i don't think the page has any checkboxes and all the logic happens within a single selector)

@rebane2001 Where's Doom, we want to see Doom running in CSS! 😉
Sure, I guess that's a thing now, though I cannot for the life of me guess how