Hacker GitHub

← All repos

mit-pdos/xv6-public

View on GitHub ↗ ★ 9,717 C

xv6 OS

33 mentions on Hacker News by 24 people: 1 story, 32 comments · first 2015-11-16 · latest 2025-03-22

Mentions per year 33 mentions · busiest year 2023 (5)
20082026
  1. Real world OS is without no doubt complicated. But for beginner, I think xv6 is sufficient: https://github.com/mit-pdos/xv6-public A rather small codebase, pretty well documented, easily buildable without building your own custom GCC,…
    comment by anta40 · 2025-03-22 · in The little book about OS development
  2. I still stick with xv6: https://github.com/mit-pdos/xv6-public - It's not only a kernel, but also have user space - Code is pretty compact and well documented, in general can be understood in a few days - No need to spend hours to custom…
    comment by anta40 · 2024-12-10 · in BareMetal OS
  3. …operating systems. I recommend starting with smaller, simpler systems, such as MINIX and xv6 ( https://github.com/mit-pdos/xv6-public ), before moving on to larger, more complex systems such as the Linux kernel ( https://kernel.org/ ) and…
  4. …file system, etc) on Github. I still tinker with the x86 version (which isn't maintained anymore): https://github.com/mit-pdos/xv6-public . Doesn't need much effort to build it on macOS. The codebase is pretty compact that it can be…
  5. …eventually we'll ask "how such things are done behind the scene?" That's why I tinker with xv6 ( https://github.com/mit-pdos/xv6-public ) during sparetime. Learning various process scheduling algorithms from textbook is a thing.…
  6. https://github.com/mit-pdos/xv6-public has under 10,000 lines of C and assembly including some user space programs.
  7. …was originally written for 32-bit x86; the RISC-V port is a relatively recent development. See e.g. https://github.com/mit-pdos/xv6-public for some of the earlier history. rxv64 was written for a specific purpose: we had to ramp up…
  8. Hmm no idea. I only build 1 OS on my Mac: https://github.com/mit-pdos/xv6-public . It obviously won't compile with Apple's gcc (which actually is a clang wrapper), so have to install another compiler (i386-elf-gcc). But on my Debian box,…
    comment by anta40 · 2023-06-30 · in x86-64 Operating System to Play 2048
  9. …server ("pools") and Postgres database ("memory contexts"). I also just looked at these codebases: https://github.com/mit-pdos/xv6-public (based on code from the 70's) https://github.com/id-Software/DOOM (1997) I looked at allocproc() in…
    comment by chubot · 2023-06-22 · in Some were meant for C [pdf] (2017)
  10. …the soft CPU I imagine. Some good info about IO ports in the answers to this[4] SO question. [1]: https://github.com/mit-pdos/xv6-public/blob/eeb7b415dbcb12cc... [2]: https://github.com/mit-pdos/xv6-public/blob/eeb7b415dbcb12cc... [3]:…
  11. …challenge to write OS kernel in Lisp? Just X86, for the sake of umm simplicity, something like xv6: https://github.com/mit-pdos/xv6-public Yes, I've read about Lisp machines. Sounds like a super expensive machine only accessible by…
    comment by anta40 · 2022-11-04 · in Why Lisp?
  12. I wonder, how hard it would be to write something like xv6: https://github.com/mit-pdos/xv6-public But in Lisp/Scheme? Preferrably no C. Just Lisp/Scheme and assembly.
    comment by anta40 · 2022-10-26 · in Between Two Lisps (2020)
  13. I checked. It's definitely a fork. Eg, compare https://github.com/NewbiZ/xv6/blob/master/fs/fs.c to https://github.com/mit-pdos/xv6-public/blob/master/fs.c . I didn't find a mention of the original copyright.
  14. …Nowadays I might point at MIT's xv6, which implements a very similar simple unix filesystem: https://github.com/mit-pdos/xv6-public/blob/master/fs.c
    comment by loeg · 2020-05-12 · in RISC-V OS using Rust: Filesystems
  15. …] by the only person with a genuine claim to being able to write safe C & company. * https://github.com/mit-pdos/xv6-public & * https://github.com/mit-pdos/xv6-riscv UNIX v6 clone in ANSI C by influential Plan 9-era Bell Laboratories…
    comment by kick · 2020-03-08 · in Ask HN: How do I learn C properly?
  16. …(used as a teaching OS at MIT) is ~10kloc of C for the kernel and a handful of userland programs: https://github.com/mit-pdos/xv6-public More information, docs, etc: https://pdos.csail.mit.edu/6.828/2014/xv6.html A few years back I did a…
  17. …[2] MIT's xv6 OS [3] [1] http://pages.cs.wisc.edu/~remzi/OSTEP/ [2] https://xinu.cs.purdue.edu/ [3] https://github.com/mit-pdos/xv6-public
  18. …- educational version of unix - useful. Here is their implementation of cat, all 44 lines of it: https://github.com/mit-pdos/xv6-public/blob/master/cat.c
    comment by zyztem · 2019-07-02 · in Decoded: GNU Coreutils
  19. Counterexamples: Optimization: https://github.com/mit-pdos/xv6-public/pull/24/files Improvement in build system: https://github.com/mit-pdos/xv6-public/pull/33 Bugfix in build system: https://github.com/mit-pdos/xv6-public/pull/34/files…
  20. For https://github.com/mit-pdos/xv6-public/commit/6389d9d4103eae... Seems fine. It’s hardly worth noting. May as well write “Minor” and use your time more efficiently.
  21. …I am immediately underwhelmed by the commit messages. "nothing much," "nits," "nit". Really? [1] https://github.com/mit-pdos/xv6-public
  22. What a pity that lots of people seem to want to create (often small) enhancements to xv6 > https://github.com/mit-pdos/xv6-public/pulls but the authors (probably because of lack of time and/or academic obligations) seem to ignore them.
  23. https://github.com/mit-pdos/xv6-public
    comment by brkc · 2017-10-06 · in Ken Thompson quotes
  24. …of the page) Review by John Regehr: http://blog.regehr.org/archives/1114 (Github Repositories: > https://github.com/mit-pdos/xv6-public > https://github.com/mit-pdos/xv6-book ).
  25. …but since it is designed as a teaching OS, my guess is that it should be a good entry point. https://github.com/mit-pdos/xv6-public/blob/master/fs.c
  26. I highly recommend checking out https://github.com/mit-pdos/xv6-public/
  27. xv6! https://pdos.csail.mit.edu/6.828/2014/xv6/book-rev8.pdf https://github.com/mit-pdos/xv6-public
    comment by latenightcoding · 2016-12-26 · in Ask HN: What do you want to learn in 2017?
  28. …an expert in x86 so I'm not sure... only read some of Intel's manual but judging by the code at https://github.com/mit-pdos/xv6-public file "entryother.S" is asm that executes on AP's and "bootasm.S" executes on the BSP... both after the…
  29. …If you look at a project like xv6, and its implementations of the essence of coreutils... compare: https://github.com/mit-pdos/xv6-public/blob/master/cat.c to http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f...…
    comment by steveklabnik · 2016-06-10 · in Doug McIlroy on Unix Taste (2014)
  30. I contacted them and they said use this: git://github.com/mit-pdos/xv6-public.git And OP should correct the original link to: https://pdos.csail.mit.edu/6.828/2014/xv6.html
  31. I think this is the official mirror: https://github.com/mit-pdos/xv6-public
  32. Source available on GitHub: https://github.com/mit-pdos/xv6-public Unless I'm missing something, the entire codebase is just 102 files (including README and such), no subdirectories, and 12,000 lines. What a fantastic tool.
    comment by venning · 2015-11-16 · in Xv6