Оцените прошедший день
Final Results
20%
+2 (прекрасно)
25%
+1
29%
0 (нейтрально)
9%
-1
16%
-2 (ужасно)
Оцените прошедший день
Final Results
18%
+2 (прекрасно)
20%
+1
30%
0 (нейтрально)
4%
-1
29%
-2 (ужасно)
так увлёкся фиксом микро-утилиты что забыл про остывающую еду :(
"После 15 минут наблюдения за выводом
dbg!(&import) я решил что пора закругляться"Окей, как выясняется структура была self-referential и
Debug приводил к бесконечной рекурсии X)Оцените прошедший день
Final Results
19%
+2 (прекрасно)
17%
+1
25%
0 (нейтрально)
14%
-1
25%
-2 (ужасно)
Похвастаюсь и здесь что-ли: я реализовал Rust RFC 3216. Вот прям PR уже смерджили.
TL;DR: фича позволяет явно писать лайфтайм параметры для замыканий:
TL;DR: фича позволяет явно писать лайфтайм параметры для замыканий:
let _f = for<'a, 'b> |a: &'a A, b: &'b B| -> &'b C { b.c(a) };
// ^^^^^^^^^^^--- new!
https://github.com/rust-lang/rust/pull/98705Оцените прошедший день
Final Results
19%
+2 (прекрасно)
19%
+1
37%
0 (нейтрально)
5%
-1
19%
-2 (ужасно)
"Лего" субмарина становится всё более и более совершенной...
https://www.youtube.com/watch?v=KLEH8RJsYgI
https://www.youtube.com/watch?v=KLEH8RJsYgI
YouTube
Building a Lego-powered Submarine 4.0 - automatic depth control
This radio-controlled submarine can maintain a steady depth or a certain distance from the bottom. It is equipped with a pressure sensor and a laser distance sensor. Raspberry Pi and PID control are used for automation. Tested in a swimming pool and a small…
IF LET CHAINS ARE STABILIZED IN RUST 1.64
rust-lang/rust/pull/94927#event-7007028976
> 2 years, 4 months, 3 weeks and 1 day of long nights, obstacles and headaches.
> Hope stabilization won't be reverted but regardless, thanks to everyone who helped make this feature a reality.
Для тех кто не в теме, в расте можно делать паттерн матчинг в
rust-lang/rust/pull/94927#event-7007028976
> 2 years, 4 months, 3 weeks and 1 day of long nights, obstacles and headaches.
> Hope stabilization won't be reverted but regardless, thanks to everyone who helped make this feature a reality.
Для тех кто не в теме, в расте можно делать паттерн матчинг в
if (и while цикле). Называется эта конструкция "if-let" и выглядит примерно вот так:// выражение vvv
if let Some(x) = opt { ... }
// ^^^^^^^ паттерн
Синтаксис конфузный, но что имеем, то имеем, ладно. Проблемы (которые решает фича выше) начинается когда хочется сравнить сразу несколько выражений с паттернами. Можно использовать туплы:if let (Some(x), Ok(y)) = (opt, res) { ... }
Но мало того, что это абсолютно не читаемо, мало того что это вычисляет res даже если паттерн и без него бы не сматчился, так ещё и в res тут нельзя использовать x. Поэтому это очень неудобно. Можно использовать вложенность:if let Some(x) = opt {
if let Ok(y) = res { ... }
}
Но это ломает else (с таким вариантом его надо дублировать во все сложенные if'ы). Это всё настолько печально, что есть даже крейт if_chain с макросом который разбирается со всеми этими проблемами. Ну и фича которую вот стабилизировали — if let chains, которая позволяет писать вот так:if let Some(x) = opt && let Ok(y) = res { ... }
😌GitHub
Stabilize `let_chains` in Rust 1.64 by c410-f3r · Pull Request #94927 · rust-lang/rust
Stabilization proposal
This PR proposes the stabilization of #![feature(let_chains)] in a future-compatibility way that will allow the possible addition of the EXPR is PAT syntax.
Tracking issue: #...
This PR proposes the stabilization of #![feature(let_chains)] in a future-compatibility way that will allow the possible addition of the EXPR is PAT syntax.
Tracking issue: #...
Оцените прошедший день
Final Results
14%
+2 (прекрасно)
27%
+1
30%
0 (нейтрально)
11%
-1
18%
-2 (ужасно)
Оцените прошедший день
Final Results
18%
+2 (прекрасно)
26%
+1
28%
0 (нейтрально)
7%
-1
21%
-2 (ужасно)
Forwarded from ozkriff.games 🦀 (ozkriff🇺🇦)
# Into the Breach: Advanced Edition is Out! 🎉
The free update refreshes a lot of stuff in one of the greatest tactic games: new mechs, weapons, pilot abilities, missions, enemies, music! I guess I have to spend at least a few more evenings crushing bugs. :)
The game is also released on iOS and Android but only for Netflix subscribers (for now?) - though the idea of having ItB on a phone is tempting.
More info: https://subsetgames.com/itb_ae.html
The free update refreshes a lot of stuff in one of the greatest tactic games: new mechs, weapons, pilot abilities, missions, enemies, music! I guess I have to spend at least a few more evenings crushing bugs. :)
The game is also released on iOS and Android but only for Netflix subscribers (for now?) - though the idea of having ItB on a phone is tempting.
More info: https://subsetgames.com/itb_ae.html
Into the Breach одна из моих любимых игр, до обновления я там всё-привсё прошёл и даже немного больше X)
Ко мне тут как раз стол пришёл, не хотите стрим где я щупаю обновление, например завтра? 👀
Ко мне тут как раз стол пришёл, не хотите стрим где я щупаю обновление, например завтра? 👀
Оцените прошедший день
Final Results
15%
+2 (прекрасно)
19%
+1
35%
0 (нейтрально)
7%
-1
24%
-2 (ужасно)
Оцените прошедший день
Final Results
18%
+2 (прекрасно)
15%
+1
31%
0 (нейтрально)
17%
-1
18%
-2 (ужасно)
Я хочу ещё в ItB: AE поиграть, так что сегодня вечером, в 15:00 UTC будет стрим опять..
https://www.twitch.tv/wafflelapkin
https://www.twitch.tv/wafflelapkin