Я ненавижу подарки в ТГ. Абсолютно бесполезная вещь, с идиотским ограничением по времени на обмен на звёзды, и в интерфейсе вкладка с подарками показывается первее более полезных вкладок с медиа и ссылками.
Нет, это не байт.
Нет, это не байт.
🤝20👍8❤3
#prog #rust #serde
serde's borrowing can be treacherous
Из-за экранирования данных, главным образом. Для обхода этой проблемы можно использовать
serde's borrowing can be treacherous
(This is not super surprising when you think about it, but it bit me recently so I figured I'd write it up.)
TL;DR: Be careful when using&'a stror&'a [u8]with serde deserializers; serde has no way to produce an appropriate compile-time error when zero-copy deserialization isn't possible or just isn't supported. Instead, you'll get a runtime error indefinitely later.
Из-за экранирования данных, главным образом. Для обхода этой проблемы можно использовать
Cow<'a, str> с #[serde(borrow)]Forwarded from HN Best Comments
Re: Microsoft Office renamed to “Microsoft 365 Copilot app”
I genuinely thought this was a joke when I saw the headline, and I had to double check the domain name to verify that this wasn't a parody.
Apart from being absolutely abysmal marketing, the front page alone is wildly inconsistent:
* "Welcome to Microsoft 365 Copilot"
* "The Microsoft 365 Copilot app (formerly Office) [...]"
* "Microsoft 365 (formerly Microsoft Office 365) is a subnoscription service [...]"
Which is it, "Microsoft 365 Copilot", "(The) Microsoft 365 Copilot app", "(The) Microsoft 365 Copilot app (formerly Office)", "Microsoft 365" or "Microsoft 365 (formerly Microsoft Office 365)"?
I think Microsoft delegated all marketing decisions to AI. Not even joking.
ulrikrasmussen, 8 hours ago
I genuinely thought this was a joke when I saw the headline, and I had to double check the domain name to verify that this wasn't a parody.
Apart from being absolutely abysmal marketing, the front page alone is wildly inconsistent:
* "Welcome to Microsoft 365 Copilot"
* "The Microsoft 365 Copilot app (formerly Office) [...]"
* "Microsoft 365 (formerly Microsoft Office 365) is a subnoscription service [...]"
Which is it, "Microsoft 365 Copilot", "(The) Microsoft 365 Copilot app", "(The) Microsoft 365 Copilot app (formerly Office)", "Microsoft 365" or "Microsoft 365 (formerly Microsoft Office 365)"?
I think Microsoft delegated all marketing decisions to AI. Not even joking.
ulrikrasmussen, 8 hours ago
😁12🤡5😢2❤1