I commute by train a couple of times a week. I catch myself walking to the same coach every morning without even looking at my ticket. The thing is, I never choose my seat; it's assigned automatically. I think I sit in the same carriage and the same seat every time. Is this just some form of selective memory tripping me up? I'm far too lazy to verify this myself, so I let Claude figure out whether I'm hallucinating or whether there's some truth to it. It pulled data from roughly a hundred trips this year. On the 69 typical train configuration trips, I sat in coach 6 or 7 72% of the time. Those carriages have 68 and 55 seats. I usually sit in roughly the same area, and the funny thing is that the same seat keeps coming back: 16 different seats have repeated, and seat 20 in coach 6 and seat 8 in coach 7 have each come up five times. So I was right! At least mostly. The train I typically take has 7 carriages: two for the first classes, one restaurant car, and four normal c...
I've hacked around in SerenityOS from time to time, mostly to familiarize myself with the basics of an operating system. I've found the code incredibly readable. Even a simple web developer like myself can understand most things. It is not cluttered by macros and has limited CPU architecture support, which to me is a huge plus since it makes the codebase less intimidating. Inspired by it, I wondered how hard it would be to build my own kernel. Well, it is hard of course, to make something actually useful, but what if i strictly focus on the basics? Turns out, not too hard. With Claude that is. I had a few ideas on what I would like to accomplish. Besides the kernel basics like your allocators, MMUs, interrupt handling, schedulers, I was really interested in learning one thing specifically. That is io_uring. I wanted to build a kernel that would largely avoid sync system calls and instead borrow the ideas from io_uring for all user-space I/O operations. I also did not want to im...