Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. i built an entire x86 CPU emulator in CSS (no javascript)

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

Scheduled Pinned Locked Moved Uncategorized
122 Posts 106 Posters 6 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

    @goaty it uses newish css features such as if() statements and @functions, which other browsers haven't implemented yet

    slothrop@chaos.socialS This user is from outside of this forum
    slothrop@chaos.socialS This user is from outside of this forum
    slothrop@chaos.social
    wrote last edited by
    #50

    @rebane2001 @goaty CSS has if statements now??!

    1 Reply Last reply
    0
    • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

      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

      Link Preview Image
      x86CSS

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

      favicon

      (lyra.horse)

      salamandra_negra@mastodon.socialS This user is from outside of this forum
      salamandra_negra@mastodon.socialS This user is from outside of this forum
      salamandra_negra@mastodon.social
      wrote last edited by
      #51

      @rebane2001 have you ran DOOM on it?

      bfordham@infosec.exchangeB 1 Reply Last reply
      0
      • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

        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

        Link Preview Image
        x86CSS

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

        favicon

        (lyra.horse)

        groxx@hachyderm.ioG This user is from outside of this forum
        groxx@hachyderm.ioG This user is from outside of this forum
        groxx@hachyderm.io
        wrote last edited by
        #52

        @rebane2001 beyond awful and into aweoverflow

        1 Reply Last reply
        0
        • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

          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

          Link Preview Image
          x86CSS

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

          favicon

          (lyra.horse)

          david_chisnall@infosec.exchangeD This user is from outside of this forum
          david_chisnall@infosec.exchangeD This user is from outside of this forum
          david_chisnall@infosec.exchange
          wrote last edited by
          #53

          @rebane2001

          Is this practical?

          Not really, you can get way better performance by writing code in CSS directly rather than emulating an entire archaic CPU architecture.

          Beautiful.

          1 Reply Last reply
          0
          • freddy@social.security.plumbingF freddy@social.security.plumbing

            @rebane2001 lol. if the css police comes to arrest you, just know you have friends everywhere.

            freddy@social.security.plumbingF This user is from outside of this forum
            freddy@social.security.plumbingF This user is from outside of this forum
            freddy@social.security.plumbing
            wrote last edited by
            #54

            @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. :))

            rebane2001@infosec.exchangeR 1 Reply Last reply
            0
            • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

              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

              Link Preview Image
              x86CSS

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

              favicon

              (lyra.horse)

              fig@theforkiverse.comF This user is from outside of this forum
              fig@theforkiverse.comF This user is from outside of this forum
              fig@theforkiverse.com
              wrote last edited by
              #55

              @rebane2001 insanity...

              1 Reply Last reply
              0
              • freddy@social.security.plumbingF freddy@social.security.plumbing

                @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. :))

                rebane2001@infosec.exchangeR This user is from outside of this forum
                rebane2001@infosec.exchangeR This user is from outside of this forum
                rebane2001@infosec.exchange
                wrote last edited by
                #56

                @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)

                freddy@social.security.plumbingF 1 Reply Last reply
                0
                • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                  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

                  Link Preview Image
                  x86CSS

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

                  favicon

                  (lyra.horse)

                  vgiamp10@social.vgiamp.moeV This user is from outside of this forum
                  vgiamp10@social.vgiamp.moeV This user is from outside of this forum
                  vgiamp10@social.vgiamp.moe
                  wrote last edited by
                  #57

                  @rebane2001@infosec.exchange i ask this is the most shocked way ever, what and how the fuck did you manage to do this

                  1 Reply Last reply
                  0
                  • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                    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

                    Link Preview Image
                    x86CSS

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

                    favicon

                    (lyra.horse)

                    antoined@kwak.cabA This user is from outside of this forum
                    antoined@kwak.cabA This user is from outside of this forum
                    antoined@kwak.cab
                    wrote last edited by
                    #58

                    @rebane2001

                    I remember this :
                    www.commitstrip.com/en/2019/03/15/css-css-everywhere/?setLocale=1

                    1 Reply Last reply
                    0
                    • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                      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

                      Link Preview Image
                      x86CSS

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

                      favicon

                      (lyra.horse)

                      chengdulittlea@mastodon.artC This user is from outside of this forum
                      chengdulittlea@mastodon.artC This user is from outside of this forum
                      chengdulittlea@mastodon.art
                      wrote last edited by
                      #59

                      @rebane2001 1) wtf 2) wow

                      starkimarm@23.socialS 1 Reply Last reply
                      0
                      • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                        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

                        Link Preview Image
                        x86CSS

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

                        favicon

                        (lyra.horse)

                        jan@toot.cafeJ This user is from outside of this forum
                        jan@toot.cafeJ This user is from outside of this forum
                        jan@toot.cafe
                        wrote last edited by
                        #60

                        @rebane2001 I can't stop grinning 😄 Awesome achievement, you rock!

                        1 Reply Last reply
                        0
                        • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                          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

                          Link Preview Image
                          x86CSS

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

                          favicon

                          (lyra.horse)

                          gasrios@floss.socialG This user is from outside of this forum
                          gasrios@floss.socialG This user is from outside of this forum
                          gasrios@floss.social
                          wrote last edited by
                          #61

                          @rebane2001 if you do write about this, I am particularly curious to understand how you implemented a clock in CSS.

                          And, clock or no clock, I do hope you will, I am following you so I won't miss it when you do. =^)

                          1 Reply Last reply
                          0
                          • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                            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

                            Link Preview Image
                            x86CSS

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

                            favicon

                            (lyra.horse)

                            trimtab@mastodon.socialT This user is from outside of this forum
                            trimtab@mastodon.socialT This user is from outside of this forum
                            trimtab@mastodon.social
                            wrote last edited by
                            #62

                            @rebane2001
                            “Gozer the Gozerian? Good evening. As a duly designated representative of the city, county, and state of New York, I order you to cease any and all supernatural activity and return forthwith to your place of origin or to the nearest convenient parallel dimension.”

                            1 Reply Last reply
                            0
                            • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                              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

                              Link Preview Image
                              x86CSS

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

                              favicon

                              (lyra.horse)

                              ffloyd@mastodon.socialF This user is from outside of this forum
                              ffloyd@mastodon.socialF This user is from outside of this forum
                              ffloyd@mastodon.social
                              wrote last edited by
                              #63

                              @rebane2001 man… when I see things like this… it restores my faith that true spirit of software engineering is not dead yet!

                              1 Reply Last reply
                              0
                              • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                                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

                                Link Preview Image
                                x86CSS

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

                                favicon

                                (lyra.horse)

                                f4grx@chaos.socialF This user is from outside of this forum
                                f4grx@chaos.socialF This user is from outside of this forum
                                f4grx@chaos.social
                                wrote last edited by
                                #64

                                @rebane2001 Objection, you built an entire x86 cpu emulator in chrome.

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

                                Edit: looks like these APIs will come to mozilla based browsers, but "at a later date".

                                rebane2001@infosec.exchangeR 1 Reply Last reply
                                0
                                • f4grx@chaos.socialF f4grx@chaos.social

                                  @rebane2001 Objection, you built an entire x86 cpu emulator in chrome.

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

                                  Edit: looks like these APIs will come to mozilla based browsers, but "at a later date".

                                  rebane2001@infosec.exchangeR This user is from outside of this forum
                                  rebane2001@infosec.exchangeR This user is from outside of this forum
                                  rebane2001@infosec.exchange
                                  wrote last edited by
                                  #65

                                  @f4grx I built it in CSS. It uses CSS features only available in Chromium, but they are from the spec and being developed for eg Firefox too.

                                  f4grx@chaos.socialF macshome@hachyderm.ioM 2 Replies Last reply
                                  0
                                  • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                                    @f4grx I built it in CSS. It uses CSS features only available in Chromium, but they are from the spec and being developed for eg Firefox too.

                                    f4grx@chaos.socialF This user is from outside of this forum
                                    f4grx@chaos.socialF This user is from outside of this forum
                                    f4grx@chaos.social
                                    wrote last edited by
                                    #66

                                    @rebane2001 oh great, so we just need to wait a bit! Thats a fun project.

                                    1 Reply Last reply
                                    0
                                    • rebane2001@infosec.exchangeR rebane2001@infosec.exchange

                                      @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)

                                      freddy@social.security.plumbingF This user is from outside of this forum
                                      freddy@social.security.plumbingF This user is from outside of this forum
                                      freddy@social.security.plumbing
                                      wrote last edited by
                                      #67

                                      @rebane2001 lol your branch name is called mane....

                                      freddy@social.security.plumbingF 1 Reply Last reply
                                      0
                                      • freddy@social.security.plumbingF freddy@social.security.plumbing

                                        @rebane2001 lol your branch name is called mane....

                                        freddy@social.security.plumbingF This user is from outside of this forum
                                        freddy@social.security.plumbingF This user is from outside of this forum
                                        freddy@social.security.plumbing
                                        wrote last edited by
                                        #68

                                        @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 🙂

                                        rebane2001@infosec.exchangeR 1 Reply Last reply
                                        0
                                        • freddy@social.security.plumbingF freddy@social.security.plumbing

                                          @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 🙂

                                          rebane2001@infosec.exchangeR This user is from outside of this forum
                                          rebane2001@infosec.exchangeR This user is from outside of this forum
                                          rebane2001@infosec.exchange
                                          wrote last edited by
                                          #69

                                          @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)

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups