Skip navigation
i built an entire x86 CPU emulator in CSS (no javascript)
0:00 / 0:59

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

Rebane ??? fuck off 👉

@rebane200117K followers

Visit on X
9,882 likesDownloadOriginal post

1,078,598 views

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

53 Comments

Comments from the original post on X (Twitter)

  • Rebane's profile picture

    @rebane2001

    check it out here: :3c

    436 likes

  • Z's profile picture

    @zelimir__

    but can it center a div?

    381 likes

  • Rebane's profile picture

    @rebane2001

    everyone who makes this joke should be forced to read my blog post

    896 likes

  • Sylvester Hesp's profile picture

    @oisyn

    I don't know how long you've been around, but since you're not addressing it in your blog: there was a time before flex boxes were at thing. Centering a div was exceptionally hard, unless you resorted to using tables. Which everyone did before the semantic web.

    38 likes

  • Rebane's profile picture

    @rebane2001

    @zelimir__ yes - and i think the history of html/css/browser hacks is really cool! but joking about centering a div these days is just admitting you don't know anything

    56 likes

  • Sylvester Hesp's profile picture

    @oisyn

    @zelimir__ No, it's just a meme. Like "can it run Crysis".

    82 likes

  • Rebane's profile picture

    @rebane2001

    @zelimir__ maybe its just because i do so much css stuff, but hearing it over and over again kinda feels like this

    21 likes

  • Sylvester Hesp's profile picture

    @oisyn

    @zelimir__ Well I can get that someone in your position hears it a lot and can get tired of it 🙂. Back in early 00s I made a raycaster in html4 using vertical <img> slices (canvas didn't exist at the time). Now I wonder if this is doable without javascript 😄

    11 likes

  • Rebane's profile picture

    @rebane2001

    @zelimir__ that's pretty sick! and i think it is :)

    10 likes

  • ルナ・サラ (Lunar Schala)'s profile picture

    @LunarSchala

    Your bio says "CSS noob", but I think you're at least a CSS sophomore.

    264 likes

  • Rebane's profile picture

    @rebane2001

    hmm yeah i think i've earned that title by now

    179 likes

  • Ben's profile picture

    @0_954499736

    So at this point, should security-paranoid people who disable Javascript also be switching off CSS?

    94 likes

  • Rebane's profile picture

    @rebane2001

    @humng392546 depends on your threat model, i use noscript and disable js by default, but don't see css as a threat i need to worry too much about (despite having a css-only chrome cve)

    77 likes

  • Uncle Ji's profile picture

    @UncleGPT

    @humng392546 You reported it. Right?

    2 likes

  • Rebane's profile picture

    @rebane2001

    @humng392546 yes, that's why i have a cve

    15 likes

  • Rijnard van Tonder's profile picture

    @rvtond

    you deserve to know you only need `mov` to be Turing complete. In CSS. Pls report back if you do this

    46 likes

  • Rebane's profile picture

    @rebane2001

    i am aware of that (and the movfuscator), but like, an entire cpu with the same architecture as your computer is just way cooler

    149 likes

  • Rijnard van Tonder's profile picture

    @rvtond

    grant.ed.

    4 likes

  • Rijnard van Tonder's profile picture

    @rvtond

    anyway it's just an instruction pass :p css computer will run it

    3 likes

  • Sylvie's profile picture

    @_sy1vi3

    whoa, it's like... assembly... but for the web... imagine if that was an actual thing that would be crazy

    45 likes