1 983
#prog #rust #video
youtube.com/watch?v=VMpSYJ_7aYM
Спойлер: на самом деле это о соглашениях о вызове
17 янв. 2023, 10:22
Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here
БольшеCatropy is a small devices dedicated to harvesting entropy from cats. Current design is a result of various iterations and consists of custom board with: - ESP32 C2 with wifi, bluetooth - Sensors - gyroscope, accelerometer - Li-ion battery and charging circuitProof-of-Cat is a novel approach to generating randomness for cryptographic systems, utilizing the inherent unpredictability and entropy of domestic felines, also known as cats. https://proofof.cat
! is a tag. This feature is intended to enable a parser to convert the fairly limited yaml data types into richer types that might exist in the host language. A tag starting with ! is up to the parser to interpret, often by calling a constructor with the given name and providing it the value that follows after the tag. This means that loading an untrusted yaml document is generally unsafe, as it may lead to arbitrary code execution.
<...>
You may have noticed that none of my examples have syntax highlighting enabled. Maybe I am being unfair to yaml, because syntax highlighting would highlight special constructs, so you can at least see that some values are not normal strings. However, due to multiple yaml versions being prevalent, and highlighters having different levels of sophistication, you can’t rely on this. I’m not trying to nitpick here: Vim, my blog generator, GitHub, and Codeberg, all have a unique way to highlight the example document from this post. No two of them pick out the same subset of values as non-strings!