flâneur — a map of the web's best reading

Introduction - The LearnixOS Book

learnix-os.com · 935 words · saved by 1 readers

Imagine you need to write some code to read from a file. You write a single, elegant line of Python with open(“my_file.txt”) as f: , the file opens and the content appears as if by magic. To the vast majority of the developers (more than 60%!) who rely on high level languages like Python and JavaScript1, writing code looks like this. We are all surrounded by abstractions, and have forgotten to learn the underlying implementation. We trust our operating system to handle the context switching, the virtual memory mapping, and the I/O operations, often treating the kernel as an infallible, black box rather than a piece of software we can actually understand. I followed the common path, starting with Python before moving to C to get a better understanding of how memory and hardware work. I expected C to reveal the inner workings of the system, but I quickly found that calling open(“my_file.txt”, “r”); in C is functionally very similar to calling it in Python, both are simply wrappers for an

Introduction - The LearnixOS Book Keyboard shortcuts Press ← or → to navigate between chapters Press S or / to search in the book Press ? to show this help Press Esc to hide this help Auto Light Rust Coal Navy Ayu The LearnixOS Book The Learnix Operating System “If you can’t explain it simply, you don’t understand it well enough.” - Albert Einstein Loading repository... Patreon Sponsor Star Comment Connecting to GitHub API... Language 0 0 0 0 Imagine you need to write some code to read from a file. You write a single, elegant line of Python with open ( “my_file.txt” ) as f : , the file opens a

Explore this link on the map →

saved by

related reading