ru
Feedback

Не попадитесь на канал ботавода! Telemetrio находит и помечает такие каналы 👉 Хотите видеть метку — оформите подписку

Блог*

Блог*

Открыть в Telegram

Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here

Больше
1 983
Подписчики
+124 часа
-137 дней
-1330 дней
Архив постов
PHP: Purposely Humorous Programming
29 окт. 2022, 17:39

Как я понял для себя из статьи Амоса, из-за того, что с версии 1.59.0 слева от оператора присваивания может быть паттерн — любой паттерн, в том числе и wildcard, для отбрасывания значения можно использовать не только идиому, которая была ещё с Rust 1.0: let _ = unused_value; , но и _ = unused_value; Сначала даже подумал, что это синтаксическая ошибка, но нет, это следствие синтаксиса — пусть и несколько необычное.
29 окт. 2022, 16:58

#prog #rust #article The HTTP crash course nobody asked for — очередная длинная статья от Амоса о препарировании форматов HTTP 1.1 и HTTP/2.
29 окт. 2022, 16:54

29 окт. 2022, 14:44

const constexpr consinit consteval constcompute constconstexpr constcompiletime constdangit constpleaseplease constthistimeforsure
29 окт. 2022, 14:04

28 окт. 2022, 18:48

#prog #gamedev #meme Source
#prog #gamedev #meme Source
28 окт. 2022, 17:58

28 окт. 2022, 17:25

Repost from N/a
Десять минут отмывала пол. Оказалось, это тень от провода падает. А у вас как дела?))
28 окт. 2022, 15:36

#prog #rust Generic associated types to be stable in Rust 1.65 АААААААААААААААААААААА
28 окт. 2022, 13:44

И тут раст
И тут раст
28 окт. 2022, 04:21

М-да. А ведь в какой-то момент за последний вариант было 52% голосов
М-да. А ведь в какой-то момент за последний вариант было 52% голосов
27 окт. 2022, 12:48

#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.
27 окт. 2022, 12:30

#prog #rust #rustlib #video Snapshot Testing with Insta 0.16 in Rust Да, это видео, но всего лишь 13 минут. И оно наглядно демонстрирует, почему вы можете захотеть использовать insta для своих текстов
27 окт. 2022, 12:20

#prog #rust #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.
27 окт. 2022, 12:03

#prog #rust #article Contention on multi-threaded regex matching Или о подводных камнях при использование регекспов в Rust из нескольких потоков
27 окт. 2022, 11:56

#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.
27 окт. 2022, 11:50

27 окт. 2022, 10:34