RSSAmplifier

Blog

Krut's Blog

The personal blog of Krut Patel

iamkroot.github.ioRSS feed ↗25 posts

Latest posts

TIL: The origin of the name "Tron"

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

TIL: Having a #pragma directive in your C code could launch a game!

TIL: It is _really_ easy to steal electricity in India

TIL: Running `ldd` can cause arbitrary code execution