Блог*
Открыть в Telegram
Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here
Больше1 987
Подписчики
+124 часа
-97 дней
+730 дней
Архив постов
1 987
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.
1 987
Repost from Технологический Болт Генона
+3
🫡
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
1 987
#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 987
#prog #rust
Rust compiler performance survey 2025 results
Помимо того, что вынесено в заголовок — немного о конкретных усилиях для уменьшения времени компиляции.
1 987
#prog #rust #serde #article
Be Careful Zero-Copying Strings with serde
TL;DR: из-за того, что строки во многих форматах передачи данных (JSON, например) требуют экранирования специальных символов, строки с подобными символами не могут быть десериализованы в
&str (которые указывают на данные из входа). Для того, чтобы поддержать подобные строки, но по мере возможности все же не копировать данные, используйте Cow<str> с атрибутом #[serde(borrow)] на поле.