#prog #rust #article
Would Rust secure cURL?
Можно считать слабым контрпримером к Betteridge's law of headline
Would Rust secure cURL?
Можно считать слабым контрпримером к Betteridge's law of headline
Wikipedia
Betteridge's law of headlines
journalism-related adage
👍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.
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.
👎3❤2
Forwarded from какография
– «тот кто готов пожертвовать свободой ради безопасности не заслуживает ни безопасности ни свободы»
– о, ты тоже тикток смотришь? Это фраза из тиктока, я там ее слышала.
– …
– что?
– о, ты тоже тикток смотришь? Это фраза из тиктока, я там ее слышала.
– …
– что?
😐18👎3🤯2❤1👍1
#prog #rust #rustlib #article
A byte string library for Rust
Или о том, для чего может понадобиться библиотека, работающая с байтиками, которые не обязательно корректно закодированы в UTF8
A byte string library for Rust
Или о том, для чего может понадобиться библиотека, работающая с байтиками, которые не обязательно корректно закодированы в UTF8
burntsushi.net
A byte string library for Rust - Andrew Gallant's Blog
I blog mostly about my own programming projects.
🔥2❤1👎1
Forwarded from hot women читают 📚 (лера♡)
оцениваем ваши каналы🤍
Условия:
- репост к себе на канал
- в комментариях оставляете ссылку!
( подписка не обязательна)
Условия:
- репост к себе на канал
- в комментариях оставляете ссылку!
( подписка не обязательна)
🤣7👎4💩2🤮1🤡1
Forwarded from Технологический Болт Генона
Когда-то давно, в 2019 году, я уже рассказывал о сайте https://osgameclones.com/.
Смысл проекта в том, что бы собрать open source клоны различных игр.
Сейчас зашёл на него и игр там всё больше и больше.
Например, наткнулся там на репу https://github.com/dethrace-labs/dethrace, где занимаются реверс-инжинирингом Carmageddon'а 1997 года. И на тридцатое августа 2022 года имплементировали 69% от оригинала.
А всего на сайте указано 1250 игр.
Так что всем, кто интересуется, категорически рекомендую.
Ну и всем хороших выходных!
Смысл проекта в том, что бы собрать 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?
Скажу честно, я удивлён, что эта задача решается всего четырьмя деталями и парой пружин.
How a Retractable Ballpoint Pen Works
How Does a Clicky Pen Work?
Скажу честно, я удивлён, что эта задача решается всего четырьмя деталями и парой пружин.
YouTube
How a Retractable Ballpoint Pen Works
A ballpoint pen seems simple: press a button you can write, press again and put it in your pocket. Yet inside a clever mechanisms turns that simple push into all sorts of other motions. This video uses detailed animation to look inside the iconic Parker Jotter…
👍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.
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
Forwarded from dd if=/dev/stuff of=/dev/tg
Еще немного тайплевельного программирования — крестики-нолики на типах TypeScript:
https://note89.github.io/typescript-typelevel-tic-tac-toe/
https://note89.github.io/typescript-typelevel-tic-tac-toe/
note89.github.io
TypeScript Typelevel Tic-Tac-Toe: Overkill edition!
A fully functioning, dynamically sized, Tic Tac Toe Game with a UI, all on the typelevel. The TypeScript typesystem is very powerful!
🐳7🍾4👎1🔥1🏆1🍓1
Forwarded from Кустарный мыслепоток (Konstantin Redkin)
🤬4😢2❤1👎1