This post details my adventures with the Linux virtual memory subsystem, and my discovery of a creative way to taunt the OOM (out of memory) killer by accumulating memory in the kernel, rather than in userspace.
Keep reading and you’ll learn:
- Internal details of the Linux kernel’s demand paging implementation
- How to exploit virtual memory to implement highly efficient sparse data structures
- What page tables are and how to calculate the memory overhead incurred by them
- A cute way to get killed by the OOM killer while appearing to consume very little memory (great for parties)
Wrote a twitter thread about this:
Are you one of those people that believes their time is their most valuable resource?
I think this is wrong. Your time is valuable, but what’s most valuable is your decision making & creative energy.
Most people thought I was crazy for doing this, but I spent the last few months of my gap year working as a short order cook at a family-owned fast-food restaurant. (More on this here.) I’m a programmer by trade, so I enjoyed thinking about the restaurant’s systems from a programmer’s point of view. Here’s some thoughts about two such systems.
Most people thought I was crazy for doing this, but I spent the last few months of my gap year working as a short order cook at a family-owned fast-food restaurant. Here’s a short reflection on 2 things I learned from the experience as it pertains to my gap year. Of course, I learned much more than this, but the rest is basic food service industry lessons that would be cringy to write about, so I’ll keep it to myself.
Congratulations! You just finished developing your first contribution to the Linux kernel, and are excited to submit it. The process for doing so is tricky, with many conventions that the community has developed over time, so here is what I learned after doing so for the first time. This is intended to be a succinct supplement to the official contribution documentation.
Here is everything you need to know to set up a minimal Linux kernel dev environment on Ubuntu 20.04. It works great on small VPS instances, is optimized for a fast development cycle, and allows you to run custom binaries to exercise the specific kernel functionality being developed.
(Originally appeared on Indie Hackers)
As the founder of an early stage company, you have a unique tool you can use, but it only lasts for a limited time. It’s the “Early Stage Founder” card.
You can use this card when talking to customers, seeking mentorship, negotiating deals… it’s versatile. It goes something like this:
I’m over static site generators and am moving back to a blogging platform for normal humans. Things I don’t like about the static site generator experience:
After failing three times, on my third try learning Chinese I actually became conversational. Here’s what I did, which is generally applicable to any language:
- I used Duolingo for 30 minutes every day for over a year.
- I went to Chinese language exchanges twice a month, for a year and a half.
- I used Hellotalk to find a great language partner to chat and do video calls with. I also used it to crowd source corrections for my bad Chinese.
That’s it! The key is consistent effort over a long time (2 years), mixing solo practice and real conversation.