Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: Custom X64-86 Operating System Written from Scratch (opens external site)

54 points by adrianbyte 1 day ago github.com 38 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (14)

  1. > ai-assisted, but only about 10%

    x_to_doubt.png

    Replies (2)
    1. Seriously, why lie? It's immediately apparent looking at the commits, the frequency of commits, and the volume of code being pushed that the "10%" estimate was off by about a factor of 10.
      Replies (3)
      1. Or Claude's extremely verbose commit descriptions on virtually all commits. Turning off Claude's attribution doesn't magically made the commits not slop.
      2. He is just 13 years old (https://github.com/adriantips). This is still pretty impressive for kid wanting to build an OS at this age. But it would be better to drop the claim about the percentage if this is not the case.
        Replies (2)
        1. There is no way to verify this assertion. I have serious doubts, AI generated or not.
        2. > This is still pretty impressive for kid wanting to build an OS at this age.

          There's nothing impressive about asking LLM to do it for you...

      3. I wouldn't be surprised if it's 90% of the time & effort spent coding manually, and only 10% as much time prompting AI.

        Still not too shabby.

    2. yeah, it takes weeks for a human to hand write a basic linux 0.1-like kernel, let alone a whole OS, that takes years. It took SerenityOS a whole year to reach a point where you could run DOOM on it, while this project had its first actual commit in September - a human may have indicated the direction, but the code is likely 100% AI generated, unless he has 8 hands
      Replies (3)
      1. "From Scratch" becoming meaningless.
        Replies (1)
        1. If it is not based on an existing kernel, then it is somehow from scratch.

          Of course we have plenty of examples and documentation.

      2. > but the code is likely 100% AI generated, unless he has 8 hands

        Well for one, there are zero references as to where they got this magic driver code from. For example the sdcard [0], bluetooth [1] and usb [2] drivers have magically been "written" close to perfect C.

        Several questions about this:

        1) How did they eliminate the memory corruption bugs in this OS?

        2) What did they test for in the OS to achieve the former to determine a stable build for a release?

        3) What exact tools did they use to check for those memory corruption bugs?

        4) Finally, which existing datasheets did they read from to get those constants in those drivers?

        Very curious to know for a from scratch OS...

        [0] https://github.com/adriantips/boltossource/blob/156a83dc3c6b...

        [1] https://github.com/adriantips/boltossource/blob/156a83dc3c6b...

        [2] https://github.com/adriantips/boltossource/blob/156a83dc3c6b...

        Replies (2)
        1. This kinda thing is what made me laugh the hardest, kid claims to be 13 on their GitHub profile but one-shots a 1700 line xHCI driver with almost no comments? Either Terry A Davis himself has fallen back from heaven or I need some of whatever greens their mom is feeding them.
        2. The sdcard driver uses some tricks that I've used in my driver: https://github.com/bztsrc/raspi3-tutorial/blob/master/0B_rea...

          The UEFI loader comes (at least partially) from my other project: https://gitlab.com/bztsrc/posix-uefi whereas memory management and page table generation (at least partially) from https://gitlab.com/bztsrc/easyboot

          I'm sure because I can see some unusual variable naming that originates from my code. I guess Codex was trained on my Free and Open Source stuff too...

      3. It took me 6 years to reach the point of running DOOM in my x86-64 hobby OS (written in Rust), but maybe I'm slow.