サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
パリ五輪
blog.dave.tf
I get nerd-sniped a lot. People offhandedly ask something innocent, and I lose the next several hours (or in this case, days) comprehensively figuring out the answer. Usually this ends up in a rant thread on mastodon or in some private chat group or other. But for once I have the energy to write one up for the blog. Today’s innocent question: Is there a reason UIDs start at 0 but PIDs start at 1?
In my quest to write a fast IPv4+6 parser, I wrote a slow-but-I-think-correct parser, to use as a base of comparison. In doing so, I discovered more cursed IP address representations that I was previously unaware of. Let’s explore together! We start out simple, with IPv4 and IPv6 in what I’ll call their “canonical form”: 192.168.0.1 and 1:2:3:4:5:6:7:8. Various specs call these “dotted quad” (more
このページを最初にブックマークしてみませんか?
『blog.dave.tf』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く