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

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Хотелось пошутить как-то про Путина, но потом вспомнил, что я в Блог*е не пишу о мелочах.
🔥20😁13💩5😐2
😒🤚

loop {
}


😏👉

for _ in std::iter::repeat(()) {
}
😁182👎1
Криптостартперы тут? 😎
🔥13💩3
#meme 🌚
Forwarded from Андрей
🥰23🤮10🤯21🔥1
Forwarded from Код, коты и карандаш
Еее, наконец-то появился кто-то, кому можно сказать “Good, now rewrite it in Rust” и оно спокойно перепишет!
#код #нейро
🔥13😁7
Код, коты и карандаш
Еее, наконец-то появился кто-то, кому можно сказать “Good, now rewrite it in Rust” и оно спокойно перепишет! #код #нейро
Но вообще код получился нерабочим: мало того, что для вычисления финального значения нужно не просто достать value, но и применить к нему продолжение, так ещё и код не компилируется, потому что в исходнике недостаточно информации, чтобы вывести тип T.
👍21
Разделение труда — это про деление на интересный труд и неинтересный, верно?
😁14😢6
#prog #article

The yaml document from hell (перевод)

For a data format, yaml is extremely complicated. It aims to be a human-friendly format, but in striving for that it introduces so much complexity, that I would argue it achieves the opposite result. Yaml is full of footguns and its friendliness is deceptive. In this post I want to demonstrate this through an example.

<...>

The element starting with ! 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!
👍10
Forwarded from я что-то �� и всё ����
14🔥2
😁16😱5😐4🔥1🤯1
Forwarded from Artem
👍142😁2🤮1
Forwarded from Jem
😢322
👍17💩42