Finally i’m gonna be able to contribute!

  • morrowind
    link
    fedilink
    arrow-up
    90
    arrow-down
    1
    ·
    6 months ago

    Don’t tempt fate. There are already two kernels written in javascript

    • Ephera
      link
      fedilink
      arrow-up
      17
      ·
      6 months ago

      How? You’d need to compile it down to machine code somehow, for the processor to have any clue how to run it. And you’d need some custom library with custom compile instructions, to be able to control memory allocations, memory addresses etc…

      I did a quick search and found two operating systems written in JS, both of which cop out when it comes to the kernel. Did you maybe mix it up with those?

      • frezik@midwest.social
        link
        fedilink
        arrow-up
        13
        ·
        edit-2
        6 months ago

        There’s almost always at least a little ASM sprinkled into any kernel, so that’s not a big deal.

        OTOH, there is the factor of “you know how Chrome takes up 2GB per tab? What if that was a whole OS?”

      • morrowind
        link
        fedilink
        arrow-up
        3
        ·
        6 months ago

        Maybe I did, I haven’t looked any of them carefully