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

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
👎3
Forwarded from какография
😁18🤡4👎2👍1🤮1🤣1
21👎2👍1😢1
#prog #rust #article

Would Rust secure cURL?

Можно считать слабым контрпримером к Betteridge's law of headline
👍1👎1
#prog #parsing #article

Parser generators vs. handwritten parsers: surveying major language implementations in 2021

Developers often think parser generators are the sole legit way to build programming language frontends, possibly because compiler courses in university teach lex/yacc variants. But do any modern programming languages actually use parser generators anymore?

To find out, this post presents a non-definitive survey of the parsing techniques used by various major programming language implementations.
👎32
Forwarded from какография
– «тот кто готов пожертвовать свободой ради безопасности не заслуживает ни безопасности ни свободы»
– о, ты тоже тикток смотришь? Это фраза из тиктока, я там ее слышала.
– …
– что?
😐18👎3🤯21👍1
#prog #rust #rustlib #article

A byte string library for Rust

Или о том, для чего может понадобиться библиотека, работающая с байтиками, которые не обязательно корректно закодированы в UTF8
🔥21👎1
Forwarded from hot women читают 📚 (лера♡)
оцениваем ваши каналы🤍
Условия:

- репост к себе на канал

- в комментариях оставляете ссылку!

( подписка не обязательна)
🤣7👎4💩2🤮1🤡1
Когда-то давно, в 2019 году, я уже рассказывал о сайте https://osgameclones.com/.

Смысл проекта в том, что бы собрать open source клоны различных игр.

Сейчас зашёл на него и игр там всё больше и больше.

Например, наткнулся там на репу https://github.com/dethrace-labs/dethrace, где занимаются реверс-инжинирингом Carmageddon'а 1997 года. И на тридцатое августа 2022 года имплементировали 69% от оригинала.

А всего на сайте указано 1250 игр.

Так что всем, кто интересуется, категорически рекомендую.

Ну и всем хороших выходных!
🔥9👍1👎1
Парочка #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