Krut's Blog
The personal blog of Krut Patel
Latest posts
TIL: Python's debug f-string `{var =}` is whitespace-sensitive
TIL: Barriers vs. Fences in concurrent programming
TIL: High-level overview of semiconductor manufacturing
TIL: You can use `$` inside the browser query console
TIL: You can throw a C++ exception from a signal handler!!
TIL: `<datalist>` element in HTML
TIL: `\0` in C is actually in octal number notation
TIL: 50 minutes is one microcentury
TIL: git supports `:/foo` to find first commit with `foo` in first line
TIL: Python has a `memoryview` builtin
TIL: C++17 can do variable initialization inside `if` conditions
TIL: gdb has `until` and `shell` commands
TIL: Hugepages are 2MB and 1GB by design
TIL: `time.perf_counter()` is a thing in Python
TIL: GNU `time` can show memory usage
TIL: `~foo` expands to the HOME dir of that user in Bash
TIL: My shell has an undo shortcut
TIL: You can have "duplicate" keys in Python dicts
Memory shenanigans
A gentle, example-guided introduction to pointer tagging
TIL: CMake uses -NOTFOUND for boolean False
The Curious Case of a Memory Leak in a Zig program
Digs into a unexpected memory leak when using Zig's FixedBufferAllocator