Remix.run Logo
signa11 13 hours ago

seesh ! what would `from scratch` mean for you ? invent the whole universe ?

theamk 18 minutes ago | parent | next [-]

Talk to hardware directly

Most "from scratch" would be some sort of microcontroller - write directly to hardware, program registers directly. It's the best feeling when you know every single instructions on the CPU is under your control, there is no 20 million lines of kernel code that do something.

But the MCU needs special hardware (MCU itself, display, programmer) so it is not a good starting project. This brings us to good old MS-DOS. Sure, you need to call BIOS to set up graphics (mode 13h, "320x200x256 colors" is the best for beginners), but after that, you are talking directly to hardware.

userbinator 12 hours ago | parent | prev | next [-]

I was expecting something closer to direct framebuffer writes, as is often done in the various write-an-OS articles that get posted here semi-regularly.

signa11 12 hours ago | parent | next [-]

i on the other hand, just loved the article.

was a bit confused about the segfault stuff mentioned towards the beginning of the article. but got quite quickly disabused of that notion with gdb etc.

chickenzzzzu 9 hours ago | parent | prev [-]

KMSDRM is soooo much more fun than X. Truly the way programs were meant to be.

sim7c00 5 hours ago | parent [-]

and then once it works u can slap it to ur own OS and avoid the rest of linux too! yay! :')

sim7c00 5 hours ago | parent | prev [-]

no u just grab the framebuffer addr somewhere (lot of places u can dig that up) and ram in the right type of pixels. :'). this article demoes exactly 0 GUI functionality...