Блог* – Telegram
1.9K subscribers
3.46K photos
135 videos
15 files
3.69K links
Блог со звёздочкой.

Много репостов, немножко программирования.

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
#prog #rust #serde #article

Be Careful Zero-Copying Strings with serde

TL;DR: из-за того, что строки во многих форматах передачи данных (JSON, например) требуют экранирования специальных символов, строки с подобными символами не могут быть десериализованы в &str (которые указывают на данные из входа). Для того, чтобы поддержать подобные строки, но по мере возможности все же не копировать данные, используйте Cow<str> с атрибутом #[serde(borrow)] на поле.
💯83👌2
— Открыв дверь, вы видите полуорка...
— Правую половину или левую?
— ...
😁23
peak linkedin energy #трудовыебудни
👍9😁8🔥5😢2🌚21🤔1🤣1
#prog #rust

Rust compiler performance survey 2025 results

Помимо того, что вынесено в заголовок — немного о конкретных усилиях для уменьшения времени компиляции.
👍1🤔1
4🥰3🌚1
#prog #article

Visitor as a sum type

In it, you'll see how the Visitor design pattern is equivalent to a sum type.


Примеры приведены на C#, но применимы к любому языку с рантайм-полиморфизмом
1👍1🤔1
🫡

JetBrains sells commercial IDE called GoLand which comes pre-loaded with a plugin which warns the user when they are using:

- “Racially insensitive” language (like “whitelist” or “master”).
- “Male pronouns”.
- Honorifics such as “Mrs”, recommending people use “Mx” instead.


https://x.com/LundukeJournal/status/1964854040212447634
🤡55💩8🤮6😁5👍2😢1🖕1
#rust

crates.io phishing campaign

We received multiple reports of a phishing campaign targeting crates.io users (from the rustfoundation.dev domain name), mentioning a compromise of our infrastructure and asking users to authenticate to limit damage to their crates.

These emails are malicious and come from a domain name not controlled by the Rust Foundation (nor the Rust Project), seemingly with the purpose of stealing your GitHub credentials.

<...>

Do not follow any links in these emails if you receive them, and mark them as phishing with your email provider.
🤯3🤔1
Блог* pinned «#rust crates.io phishing campaign We received multiple reports of a phishing campaign targeting crates.io users (from the rustfoundation.dev domain name), mentioning a compromise of our infrastructure and asking users to authenticate to limit damage to their…»
Forwarded from Neural Machine
Я большой поклонник бесплатных штук.
👍5🤔2
Neural Machine
Я большой поклонник бесплатных штук.
The best things in life are free.

Sundowns
Walks
rustc
Beaches
👍7😁3🤔1
Блог*
TIL что в Америку запрещено провозить Киндер-сюрпризы
Kinder eggs are a prohibited item because they contain a toy surprise, hidden inside, that poses a choking and aspiration hazard for children younger than three years of age.


Americans want their children to choke till bitter end.
🤡73🥰1😁1