Блог*
#prog #rust #article Exploring the Rust compiler benchmark suite Статья о том, как устроен бенчмарк для измерения производительности компиляции rustc и о том, как он интегрирован с общим процессом разработки
#prog #rust #article
Adding runtime benchmarks to the Rust compiler benchmark suite
Реализация заняла почти год (и семь лет с момента открытия issue на бенчмарки). Причина? Зашкаливающее количество yak shaving.
Adding runtime benchmarks to the Rust compiler benchmark suite
Реализация заняла почти год (и семь лет с момента открытия issue на бенчмарки). Причина? Зашкаливающее количество yak shaving.
Kobzol’s blog
Adding runtime benchmarks to the Rust compiler benchmark suite
This post describes the design and implementation of a runtime benchmark suite for measuring the performance of Rust programs, which was recently added into the Rust compiler suite. I have recently blogged about how the whole benchmark suite works, so feel…
👍1
#prog #rust
TIL что у типов Ipv4Addr/Ipv6Addr есть ассоциированные константы LOCALHOST и UNSPECIFIED, а у
TIL что у типов Ipv4Addr/Ipv6Addr есть ассоциированные константы LOCALHOST и UNSPECIFIED, а у
Ipv4Addr
есть ещё и BROADCAST.doc.rust-lang.org
Ipv4Addr in std::net - Rust
An IPv4 address.
❤3
Блог*
#prog Tini — init-процесс, который только завершает зомби-процессы и корректно пробрасывает сигналы — и больше ничего не делает. Используется главным образом внутри Docker.
#prog #article
Introducing dumb-init, an init system for Docker containers — рассказывает о том, для чего в принципе нужны dumb-init и tini.
TL;DR: если вы не спавните init-процесс как первый процесс внутри контейнера, то контейнер почти наверняка работает неправильно касательно реагирования на сигналы и завершения зомби-процессов.
Introducing dumb-init, an init system for Docker containers — рассказывает о том, для чего в принципе нужны dumb-init и tini.
TL;DR: если вы не спавните init-процесс как первый процесс внутри контейнера, то контейнер почти наверняка работает неправильно касательно реагирования на сигналы и завершения зомби-процессов.
Yelp
Introducing dumb-init, an init system for Docker containers
Introducing dumb-init, an init system for Docker containers Chris K., Software Engineer Jan 6, 2016 At Yelp we use Docker containers everywhere: we run tests in them, build tools around...
#prog #rust
Diagnostic namespace
TL;DR: в nightly теперь есть (за
Diagnostic namespace
TL;DR: в nightly теперь есть (за
#[feature]
, разумеется) атрибут #[diagnostic::on_unimplemented]
, который позволяет прицепить свою дополнительную информацию к ошибке о том, что тип не реализует трейт. Этот атрибут уже используется в axum и diesel.Weiznich's Blog
Diagnostic namespace
Improving rust compiler error messages for trait heavy crates by changing the language
🔥7
Если я выгляжу страшно красиво, это считается за хеллоуинский костюм?
If I look drop-dead gorgeous, does it count as a Halloween costume?
If I look drop-dead gorgeous, does it count as a Halloween costume?
😁10
Блог*
#prog #моё Теперь у меня есть законный повод затащить в зависимости по работе мою репу
Наконец-то смержили. А всего-то пришлось в дискорде tracing попинговать.
GitHub
Relax restrictions on writer for `tracing_appender::non_blocking::NonBlocking` by AnthonyMikh · Pull Request #2607 · tokio-rs/tracing
Motivation
NonBlocking from tracing-appender wraps a writer and requires that writer to implement Sync (among other bounds). However it is not clear why this bound is necessary in first place: this...
NonBlocking from tracing-appender wraps a writer and requires that writer to implement Sync (among other bounds). However it is not clear why this bound is necessary in first place: this...
👍4