Forwarded from Pragmatic Programmer (Nikita Bishōnen)
Три уровня погружения в статическую типизацию:
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;
🤔12❤1
Блог*
#web #article Speeding up this site by 50x Может пригодится тем, кто, как и автор, использует Octopress. <...> I'm not sure what to think about all this. On the one hand, I'm happy that I was able to get a 25x-50x speedup on my site. On the other hand…
#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.
Описанные оптимизации касаются лишь веб-составляющей и шрифтов, так что, в отличие от использования собственного веб-сервера, эти оптимизации могут пригодиться и для других сайтов.
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.
Описанные оптимизации касаются лишь веб-составляющей и шрифтов, так что, в отличие от использования собственного веб-сервера, эти оптимизации могут пригодиться и для других сайтов.
Cliffle
Making my website faster
A different level of performance optimization
👍4
#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.
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.
Cliffle
Who killed the network switch?
A Hubris Bug Story
❤4🤔1
Forwarded from Pragmatic Programmer (Nikita Bishōnen)
Ну что, время проходить ежегодный опрос о состоянии господа нашего Иисуса Христа языка нашего Rust: https://www.surveyhero.com/c/rust-annual-survey-2024
🤮8🔥4🥴2😁1🙏1
Кстати, напоминаю, что сегодня прошло уже 12 лет с конца света (12.12.2012)
🤯22🎉5🤮2😭2🤡1
#prog #successstory
Memory-safe PNG decoders now vastly outperform C PNG libraries
Не "Rust PNG decoders", потому что в список также входит wuffs
Memory-safe PNG decoders now vastly outperform C PNG libraries
Не "Rust PNG decoders", потому что в список также входит wuffs
🔥4👍2
#prog #rustlib
include-utils — библиотека для включения в исходники только части текста из указанного файла. Макрос include_md! также позволяет ссылаться на нужные части файла не через номера строк, а через указание секций, как это сделано в mdbook.
include-utils — библиотека для включения в исходники только части текста из указанного файла. Макрос include_md! также позволяет ссылаться на нужные части файла не через номера строк, а через указание секций, как это сделано в mdbook.
👍3🤯3❤1
Forwarded from Технологический Болт Генона
Всех поздравляю
Глава "Ростелекома" заявил о полном импортозамещении серверов в РФ
https://tass.ru/ekonomika/22637251
В России полностью решена проблема с импортозамещением мощных вычислительных ресурсов, заявил глава "Ростелекома" Михаил Осеевский, выступая в Совете Федерации.
"Хочу доложить, что сегодня страна чувствует себя достаточно уверенно. У нас полностью решена проблема импортозамещения мощных вычислительных ресурсов, серверов, систем хранения [данных]", - сказал топ-менеджер.
Глава "Ростелекома" заявил о полном импортозамещении серверов в РФ
https://tass.ru/ekonomika/22637251
🤡29🤣9🎉6❤2
Forwarded from optorepost
Ааааа, как же это офигенно. Мой самый любимый советский мультик переанимировали куча аниматоров. Там есть как халтурки, так и настоящие шедевры. Если не смотрели оригинал, то сначала смотрите его.
https://youtu.be/fvUqBZ-aQR8
https://youtu.be/fvUqBZ-aQR8
YouTube
"УХ ТЫ, ГОВОРЯЩАЯ РЫБА!" REANIMATED COLLAB
Lateameria Studio и 50 независимых аниматоров представляет вам долгожданный коллаб-реанимейт по мультфильму "Ух-ты, говорящая рыба!", снятого в 1983 году Робертом Саакянцем по сказке Ованеса Туманяна. Целых девять месяцев не прошли зря и теперь мы готовы…
👍1🔥1🌚1