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 (3)

  1. > 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...