Блог*
Открыть в Telegram
Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here
Больше1 985
Подписчики
+124 часа
-17 дней
Нет данных30 дней
Архив постов
1 982
Repost from optorepost
Ааааа, как же это офигенно. Мой самый любимый советский мультик переанимировали куча аниматоров. Там есть как халтурки, так и настоящие шедевры. Если не смотрели оригинал, то сначала смотрите его.
https://youtu.be/fvUqBZ-aQR8
1 982
Repost from Технологический Болт Генона
Всех поздравляю
В России полностью решена проблема с импортозамещением мощных вычислительных ресурсов, заявил глава "Ростелекома" Михаил Осеевский, выступая в Совете Федерации. "Хочу доложить, что сегодня страна чувствует себя достаточно уверенно. У нас полностью решена проблема импортозамещения мощных вычислительных ресурсов, серверов, систем хранения [данных]", - сказал топ-менеджер.Глава "Ростелекома" заявил о полном импортозамещении серверов в РФ https://tass.ru/ekonomika/22637251
1 982
#prog #rustlib
include-utils — библиотека для включения в исходники только части текста из указанного файла. Макрос include_md! также позволяет ссылаться на нужные части файла не через номера строк, а через указание секций, как это сделано в mdbook.
1 982
#prog #successstory
Memory-safe PNG decoders now vastly outperform C PNG libraries
Не "Rust PNG decoders", потому что в список входит также wuffs
1 982
Repost from N/a
Ну что, время проходить ежегодный опрос о состоянии господа нашего Иисуса Христа языка нашего Rust: https://www.surveyhero.com/c/rust-annual-survey-2024
1 982
#prog #article
Who killed the network switch?
A Hubris Bug Story
We found a neat bug in Hubris this week. Like many bugs, it wasn’t a bug when it was originally written — correct code became a bug as other things changed around it.
<...>
It’s very rare for us to find a bug in the Hubris kernel, mostly because it’s so small.
<...>
For me, the interesting thing about this story is all the stuff that didn’t happen. Or more specifically, the way the system failed, and the ways in which it didn’t.
We went from “network switch won’t turn on with new firmware,” to two engineers 3,000 miles apart separately analyzing snapshots of the failure, to having the kernel bug fixed, in about three hours. I’ve easily spent longer than that chasing a single memory corruption bug in other firmware.
1 982
#web #article
Making my website faster
(от Cliff L. Biffle, также известного, как автор lilos и m4vgalib)
Out of respect for my readers who don’t have a fancy gigabit fiber internet connection, I test the website primarily on slower, high-latency connections – either a real one, or a simulated 2G connection using Firefox’s dev tools.
I was doing an upgrade of my httpd2 software recently and was frustrated at how long the site took to deliver, despite my performance optimizations in the Rust server code.
<...>
In this post I’ll walk through how I analyzed the problem, and what changes I made to improve the site.
Описанные оптимизации касаются лишь веб-составляющей и шрифтов, так что, в отличие от использования собственного веб-сервера, эти оптимизации могут пригодиться и для других сайтов.
1 982
Repost from N/a
Три уровня погружения в статическую типизацию:
sqlx::query("SELECT keys.hex");
...
let key = row.try_get(hex)?;
sqlx::query!("SELECT keys.hex");
...
let key = Key::from_hex(row.hex)?;
sqlx::query!(r#"SELECT keys.hex as "hex: Key""#);
...
let key = row.hex;