Блог*
Open in Telegram
Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here
Show more1 964
Subscribers
+124 hours
No data7 days
-430 days
Posts Archive
1 963
#prog #rust #article
A Newbie's First Contribution to (Rust for) Linux
Статья о написании драйвера для Linux с использованием R4L вкупе с написанием вспомогательных абстракций для него. Спойлер: написание кода, даже со скидкой на то, что это рерайт, было далеко не самой сложной вещью из того, что нужно было для добавления кода в ядро.
1 963
#prog #rust #article
Alternative Blanket Implementations for a Single Rust Trait
Или как решить проблему с кодом вида
impl<T: TraitA> MyTrait for T { ... }
impl<T: TraitB> MyTrait for T { ... }1 963
#prog #rust #article
Unsoundness and accidental features in the #[target_feature] attribute
Researching the SemVer hazards of the
#[target_feature] attribute led to finding unexpected unsoundness, discovering an "accidental feature" in Rust, finding bugs in rustdoc, the creation of an RFC that evolves the Rust language, and the addition of a dozen new SemVer lints. My work on cargo-semver-checks benefits the Rust ecosystem in more ways than just preventing breakage!1 963
#prog #rust #haskell #article
Reflections on Haskell and Rust
For most of my professional experience, I have been writing production code in both Haskell and Rust, primarily focusing on web services, APIs, and HTTP stack development. My journey started with Haskell, followed by working with Rust, and most recently returning to the Haskell ecosystem. This experience has given me perspective on both languages' strengths and limitations in real-world applications. Each language has aspects that I appreciate and miss when working with the other. This post examines the features and characteristics that stand out to me in each language.TL;DR: оба языка хороши, но на текущий момент автор считает Rust более прагматичным выбором.
1 963
#prog #ml #menacingopensource
gremllm — библиотека для Python, которая позволяет создавать по описанию объекты, для которых поля и методы создаются LLM по мере необходимости.
from gremllm import Gremllm
# Be sure to tell your gremllm what sort of thing it is
counter = Gremllm('counter')
counter.value = 5
counter.increment()
print(counter.value) # 6?
print(counter.to_roman_numerals()) # VI?
В число фич также входит т. н. "wet mode", при котором возвращаемые значения также являются Gremllm.1 963
Repost from Backtracking
это официальный пост от chess.com, ору очень сильно
(речь идёт о шахматном правиле en passant, which is, of course, bullshit)
1 963
#prog #rust #article
"Why is the Rust compiler so slow?"
Чел погрузился в кроличью нору с твиками флагов LLVM, чтобы ускорить сборку в докере сервер для своего сайта.
Спойлер: из всех средств наиболее эффективным оказалось то, что подсказали автору уже после публикации. Именно, замена базового образа с Alpine на Debian (-69% времени сборки).
