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

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Парочка #mechanics #video, рассматривающих, как устроен механизм авторучки.

How a Retractable Ballpoint Pen Works
How Does a Clicky Pen Work?

Скажу честно, я удивлён, что эта задача решается всего четырьмя деталями и парой пружин.
👍1👎1
#prog #rust #article

How we built Pingora, the proxy that connects Cloudflare to the Internet

Today we are excited to talk about Pingora, a new HTTP proxy we’ve built in-house using Rust that serves over 1 trillion requests a day, boosts our performance, and enables many new features for Cloudflare customers, all while requiring only a third of the CPU and memory resources of our previous proxy infrastructure.

<...>

We chose Rust as the language of the project because it can do what C can do in a memory safe way without compromising performance.

<...>

Overall traffic on Pingora shows 5ms reduction on median TTFB and 80ms reduction on the 95th percentile. This is not because we run code faster. Even our old service could handle requests in the sub-millisecond range.

The savings come from our new architecture which can share connections across all threads. This means a better connection reuse ratio, which spends less time on TCP and TLS handshakes.
[В этом плане лучше Nginx, в архитектурные ограничения упёрлись в CloudFlare: у того пул соединений отдельный у каждого рабочего процесса]

Across all customers, Pingora makes only a third as many new connections per second compared to the old service. For one major customer, it increased the connection reuse ratio from 87.1% to 99.92%, which reduced new connections to their origins by 160x. To present the number more intuitively, by switching to Pingora, we save our customers and users 434 years of handshake time every day.

<...>

When crashes do occur an engineer needs to spend time to diagnose how it happened and what caused it. Since Pingora's inception we’ve served a few hundred trillion requests and have yet to crash due to our service code.

In fact, Pingora crashes are so rare we usually find unrelated issues when we do encounter one. Recently we discovered a kernel bug soon after our service started crashing. We've also discovered hardware issues on a few machines, in the past ruling out rare memory bugs caused by our software even after significant debugging was nearly impossible.
🔥14👍1👎1🖕1
👍2👎2
Еще немного тайплевельного программирования — крестики-нолики на типах TypeScript:
https://note89.github.io/typescript-typelevel-tic-tac-toe/
🐳7🍾4👎1🔥1🏆1🍓1
Что-то на психически здоровом...
30👎1
👏8😁2👍1👎1
Forwarded from Кустарный мыслепоток (Konstantin Redkin)
https://how-i-experience-web-today.com/

Как же больно с печенек и уведомлений ):
🤬4😢21👎1
Forwarded from ʍᴇʍᴇᴛи́нᴀ (tïna)
👎11😐7😁32🔥1🥰1🤩1