1.94K subscribers
3.49K photos
135 videos
15 files
3.72K links
Блог со звёздочкой.

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Я думаю, это считается за #menacingopensource
🫡11🤔32
Блог*
The (successful) end of the kernel Rust experiment The topic of the Rust experiment was just discussed at the annual Maintainers Summit. The consensus among the assembled developers is that Rust in the kernel is no longer experimental — it is now a core part…
#rust

The state of the kernel Rust experiment

At the 2025 Maintainers Summit, a session was held to evaluate the state of that experiment, and to decide whether the time had come to declare the result to be a success. The (arguably, unsurprising) conclusion was that the experiment is indeed a success, <...>


Из примечательного:
The DRM (graphics) subsystem has been an early adopter of the Rust language. It was still perhaps surprising, though, when Airlie (the DRM maintainer) said that the subsystem is only ""about a year away"" from disallowing new drivers written in C and requiring the use of Rust.
5
#prog #article

Advent of compiler optimizations — сборник декабрьских статей, по одной в день (в обратном хронологическом порядке), демонстрирующих на отдельных небольших примерах различные оптимизации компиляторов. Написано Мэттом Годболтом (да-да, тот самый, который godbolt.org).
🔥72
Не понимаю, почему ChatGPTи Claude с первого раза не пишут нормальный код, хоть какой thinking им не ставь. Только после того, как начинаешь писать капсом и материться, чтобы модель исправила свои ошибки, она начинает делать нормально.

P.S. Да, для создания этой картинки тоже пришлось НЕСКОЛЬКО РАЗ НАПИСАТЬ КАПСОМ ЧТО ЗА *********
😁16
💯12😭8🤡4🤔3👍1
#prog #rust #c #article

Eurydice: a Rust to C compiler (yes)

Eurydice is a compiler from Rust to C that aims to produce readable C code.


Сделано для интеграции кода на Rust в существующие проекты на C без того, чтобы требовать наличие двух параллельных реализаций.

Присутствует чуть-чуть джеркования:

Having a backwards-compat scenario where Rust can be compiled to C serves several purposes.
<...>
3. It allows for a census of problematic scenarios. By making the Rust version the default (and putting the fallback C behind a --write-us-an-email flag), there is finally a way to enumerate those mythical users who cannot switch to Rust just yet.
4❤‍🔥2
Блог*
Официантка сделала комплимент моим ноготочкам 🥰
Моим волосам сделали комплимент... Мужчина... 😳
🍌19🥰9🤮3🤯1
😁20💯6🤮52😭1
Кто не понял - тот поймёт 🙊

Возможно, никто ничего не заметил (кроме пользователя, который сообщил о проблеме), но вчера бот внезапно решил «продолбать» информацию о профилях пользователей 🫠

Визуально это проявлялось в том, что при проверке пользователя ботом, полностью перестала отображаться история смены имён и юзернеймов для всех аккаунтов - показывались только текущие данные.

Достоверно выяснить причину не удалось, но есть подозрение, что это как-то связано с обновлением ClickHouse недельной давности. А каждое его обновление умеет преподносить сюрпризы, особенно если не читать Release notes и перескакивать сразу через десяток минорных версий.

Хуже того - косяк не был замечен оперативно и успел пролезть в бэкапы. В итоге штатными средствами КХ удалось восстановить лишь около 40% данных, а оставшиеся ~400 млн записей отказывались читаться, выдавая ошибки Too large size passed to allocator и Inconsistent sizes of values and offsets in SerializationSparse 😕

Чтобы вытащить недостающие данные, пришлось навайбкодить скрипт, который напрямую прочитал файлы базы и вытащил максимум возможного. В результате удалось восстановить около 95% истории профилей, хотя без потерь всё же не обошлось.

Опции антиспама, завязанные на проверку истории профилей пользователей, а также отображение самой истории в профилях теперь снова работают корректно.

Резюмируя: делая бэкапы, делайте их с умом - чтобы потом не пришлось красноглазить по ночам 🤓 И про мониторинг тоже не стоит забывать - пользователи не всегда пишут о проблемах 🗿
🤔4😁1
Forwarded from HN Best Comments
Re: Salesforce regrets firing 4000 experienced staff and replacing them with AI

Somebody has to be the brave experimenter that tries the new thing. I'm just glad it was these folk. Since they make no tangible product and contribute nothing to society, they were perhaps the optimal choice to undergo these first catastrophic failed attempts at AI business.

JoeAltmaier, 54 minutes ago
😁163
The existence of "fairly big" implies the existence of "unfairly big"

#лингво
🍌1
Надеюсь, вы отмечаете сегодняшний праздник, день распада СССР
🔥19🤡13😁2🤔1💩1👌1🖕1
Новогодняя открытка от tgstat

(топовый пост)
❤‍🔥4
#prog #rust #rustlib

brie-tree - SIMD-optimized B+ Tree implementation that uses integer keys

A fast B+ Tree implementation that uses integer keys.
The API is similar to the standard library's BTreeMap with some significant differences:

* Lookups and insertions are 2-4x faster than BTreeMap.
* BTree can optionally be used as a multi-map and hold duplicate keys.
* Keys must be integer types or convertible to integers via the BTreeKey trait.
* The maximum integer value is reserved for internal use and cannot be used by keys.
* Elements in the tree are ordered by the integer value of the key instead of the Ord implementation of the keys.
* Cursors can be used to seek back-and-forth in the tree while inserting or removing elements.
* Iterators only support forward iteration.
👍6
Я папищек, и я...
Anonymous Poll
56%
...гетеро
44%
...нормальный/ая
🤡14😁52🥴2