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

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
#prog #rust хайлайты

We are currently unconditionally verifying the LLVM IR in the backend (twice), ignoring the value of the verify-llvm-ir option. This has substantial compile-time impact for debug builds.

На скриншоте — результаты бенчмарков после мерджа.

github.com/rust-lang/rust/pull/133499
👏12💩4👍1
#meme

За что так точно 😢
3
Forwarded from partially unsupervised
a16z выкатили примечательный блогпост про big ideas in tech 2025.

Примечателен он в первую очередь тем, как единственная страница может заставить включиться кулер нового макбука.
😁8🤯6
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;
🤔121
💩8👍5🥰2
Forwarded from Neural Machine
Блин, надо зарабатывать на жизнь. Лучше закричать.
💯121
Блог*
Кстати, я провалил Whamageddon
В этом году уже седьмого числа(
😁4
Forwarded from ТГ Шевченка
😁16🔥9🥴5
Блог*
#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.

Описанные оптимизации касаются лишь веб-составляющей и шрифтов, так что, в отличие от использования собственного веб-сервера, эти оптимизации могут пригодиться и для других сайтов.
👍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
.
4🤔1
Юрист (муж. р., ед. число) — поклонник жанра юри
🌚19👍7🤡2
Forwarded from Pragmatic Programmer (Nikita Bishōnen)
Ну что, время проходить ежегодный опрос о состоянии господа нашего Иисуса Христа языка нашего Rust: https://www.surveyhero.com/c/rust-annual-survey-2024
🤮8🔥4🥴2😁1🙏1
Forwarded from someone's shitpost (devilreef)
🤯13🔥3🥰3🤔3👏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
🔥4👍2
#prog #rustlib

include-utils — библиотека для включения в исходники только части текста из указанного файла. Макрос include_md! также позволяет ссылаться на нужные части файла не через номера строк, а через указание секций, как это сделано в mdbook.
👍3🤯31