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

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Forwarded from ФемКошка 😼
🥰13👍3👎2😍2
Блог*
#music Извините, я не буду ждать до 26 апреля. youtube.com/watch?v=C3KPlowsyJs
Эта песня была выпущена в 2008 году. Лет через десять Кэти Перри в интервью говорила, что за десять лет отношение к затронутым темам поменялось, и что если бы она писала песню сейчас, то написала бы её несколько иначе. Я решил прикинуть, как это могло бы выглядеть — тем более что из-за некоторых моментов мне оригинальный текст не очень нравится. Так что вот вам моя переделка текста.

———

This didn't go the way I planned
That's my confession
I drank so I had trembling hands
Lost my discretion
I just did not think through
Just wanted try you on
Was curious for you
Caught my attention

I kissed a girl and I liked it
The taste of her cherry chapstick
I kissed a girl just to try it
I worried she would mind it
It felt so wrong, it felt so right
No way I was in love that night
I kissed a girl and I liked it
I liked it

I did not even know your name
Was too excited
It was experimental game
Though got delighted
It's not what good girls do
That I was always told
My head got so confused
I did not want to hold

I kissed a girl and I liked it
It never was a blunder
I kissed a girl just to try it
And it felt like a thunder
It felt less wrong, it felt more right
Maybe I was in love that night
I kissed a girl and I liked it
I liked it

Us girls, we are so magical
Soft skin, red lips, so kissable
Hard to resist, so touchable
Too good to deny it
No doubt we are magnificent

I kissed a girl with drunken grin
And noone cared about it
I kissed a girl just on a whim
And damn I really liked it
It feels not wrong, it feels just right
Maybe I fell in love that night
I kissed girlfriend and I liked it
Fuck, liked it!
👎14👍2🤔1🤮1
👎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