1.83K subscribers
3.3K photos
132 videos
15 files
3.58K links
Блог со звёздочкой.

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Можно вытащить человека из раста, но нельзя вытащить раст из человека
🔥10🤔2💩2🙏1
Forwarded from CFLAGS="-pedantic"
👍7🔥3💩1
#prog #rust #python #article

Buffers on the edge: Python and Rust

One of my least favorite kinds of bug is when two different systems are interacting and the result has bad behavior but it’s difficult to say which (if either!) system is at fault. This is one of those stories, about Python’s buffer protocol and Rust’s memory model.
💩1
#prog #rust #performancetrap #article

Читайте документацию, программисты.

Upgradable parking_lot::RwLock might not be what you expect

Собственно, статья может быть сведена к единственному абзацу из документации parking_lot (конкретно к методу RwLock::upgradeable_read):

Locks this rwlock with upgradable read access, blocking the current thread until it can be acquired.

The calling thread will be blocked until there are no more writers or other upgradable reads which hold the lock. There may be other readers currently inside the lock when this method returns.
💩1
#prog #rust #rustlib #video

Snapshot Testing with Insta 0.16 in Rust

Да, это видео, но всего лишь 13 минут. И оно наглядно демонстрирует, почему вы можете захотеть использовать insta для своих тестов.
💩1
#prog #rust

MacroKata

Welcome to MacroKata, a set of exercises which you can use to learn how to write macros in rust. When completing each task, there are three goals:

* Get your code to compile without warnings or errors.
* Get your code to "work correctly" (i.e. produce the same output)
* Importantly, generate the same code as what the sample solution does.

You should complete the kata in order, as they increase in difficulty, and depend on previous kata.
👍9💩1
РБК Голосовалка ️
Нужно ли бороться с пропагандой ЛГБТ среди граждан всех возрастов?
М-да. А ведь в какой-то момент за последний вариант было 52% голосов
😁3💩1
Десять минут отмывала пол. Оказалось, это тень от провода падает.

А у вас как дела?))
😁9🤣21💩1
👍14💩1
const
constexpr
consinit
consteval
constcompute
constconstexpr
constcompiletime
constdangit
constpleaseplease
constthistimeforsure
10🥴3🤔2😢2🔥1💩1