Forwarded from Doque Embedded
This media is not supported in your browser
VIEW IN TELEGRAM
😁20😭6🥰4🤣2❤🔥1🌚1
#prog #rust #serde #article
Be Careful Zero-Copying Strings with serde
TL;DR: из-за того, что строки во многих форматах передачи данных (JSON, например) требуют экранирования специальных символов, строки с подобными символами не могут быть десериализованы в
Be Careful Zero-Copying Strings with serde
TL;DR: из-за того, что строки во многих форматах передачи данных (JSON, например) требуют экранирования специальных символов, строки с подобными символами не могут быть десериализованы в
&str
(которые указывают на данные из входа). Для того, чтобы поддержать подобные строки, но по мере возможности все же не копировать данные, используйте Cow<str>
с атрибутом #[serde(borrow)]
на поле.💯8❤3👌2
#prog #rust
Rust compiler performance survey 2025 results
Помимо того, что вынесено в заголовок — немного о конкретных усилиях для уменьшения времени компиляции.
Rust compiler performance survey 2025 results
Помимо того, что вынесено в заголовок — немного о конкретных усилиях для уменьшения времени компиляции.
blog.rust-lang.org
Rust compiler performance survey 2025 results | Rust Blog
Empowering everyone to build reliable and efficient software.
👍1🤔1
#prog #article
Visitor as a sum type
Примеры приведены на C#, но применимы к любому языку с рантайм-полиморфизмом
Visitor as a sum type
In it, you'll see how the Visitor design pattern is equivalent to a sum type.
Примеры приведены на C#, но применимы к любому языку с рантайм-полиморфизмом
ploeh blog
Visitor as a sum type
The Visitor design pattern is isomorphic to sum types.
❤1👍1🤔1
Forwarded from Технологический Болт Генона
🫡
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
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
🤡54💩8🤮6😁5👍2😢1🖕1
#rust
crates.io phishing campaign
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