HNHacker News
TopNewBestAskShowJobs

dylanmclark

36 karma · joined December 16, 2016

submissionscomments
dylanmclark··on Libc++'s Implementation of std::string
Reminds me of a talk a few years ago about Facebook's internal implementation of std::string. They do the same short string optimization, but Facebook manages to outperform this implementation by storing 24 bytes (vs 23) in "short string mode".

IIRC, Facebook achieves this by using the last byte as the flag byte. To signify short string mode, this flag is set 0. This allows it to also serve as the null terminator. Tricky!

dylanmclark··on Slack S-1
I don't think Microsoft would buy Slack given the money they've dumped into developing and promoting Teams. Seems they're too far gone at this point.

Disclosure: Work at MSFT, not on Teams.

dylanmclark··on Human-Centric Tools for Navigating Code [pdf]
The patch grid and ribbon in the Patchworks Editor this proposes are exactly what I didn’t know I needed