Better HN
topnewbestaskshowjobs
Log inSign up

dylanmclark

36 karma · joined Dec 16, 2016 (9y ago) · 3 submissions

Submissions

comment 6y ago · link · parent

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!

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

The patch grid and ribbon in the Patchworks Editor this proposes are exactly what I didn’t know I needed