мне не нравится реальность
Помните scoped threads из crossbeam, которые позволяют спавнить не 'static функции (замыкания, которые захватывают что-то по ссылке)? В std скоро(™) собираются такое добавить: <twitter:m_ou_se>
GitHub
Stabilize scoped threads. by m-ou-se · Pull Request #97992 · rust-lang/rust
Tracking issue: #93203
FCP finished here: #93203 (comment)
FCP finished here: #93203 (comment)
🎉5
#prog #rust
Rust explorer — немного большее, чем Rust playground. Но работает только с логином Github.
Rust explorer — немного большее, чем Rust playground. Но работает только с логином Github.
#prog #rust #rustlib
wild
Allows Rust applications support wildcard arguments (*foo*, file.???, *.log.[0-9], etc.) on command-line, uniformly on all platforms, including Windows.
Unix shells automatically interpret wildcard arguments and pass them expanded (already converted to file names) to applications, but Windows' cmd.exe doesn't do that. For consistent cross-platform behavior, this crate emulates Unix-like expansion on Windows. You only need to use wild::args() instead of std::env::args().
It is more robust than using glob() on values from std::env::args(), because this crate is aware of argument quoting, and special characteres in quotes ("*") are intentionally not expanded.
The glob syntax on Windows is limited to *, ?, and [a-z]/[!a-z] ranges, as supported by the glob crate. Parsing of quoted arguments precisely follows Windows' native syntax (CommandLineToArgvW, specifically).
wild
Allows Rust applications support wildcard arguments (*foo*, file.???, *.log.[0-9], etc.) on command-line, uniformly on all platforms, including Windows.
Unix shells automatically interpret wildcard arguments and pass them expanded (already converted to file names) to applications, but Windows' cmd.exe doesn't do that. For consistent cross-platform behavior, this crate emulates Unix-like expansion on Windows. You only need to use wild::args() instead of std::env::args().
It is more robust than using glob() on values from std::env::args(), because this crate is aware of argument quoting, and special characteres in quotes ("*") are intentionally not expanded.
The glob syntax on Windows is limited to *, ?, and [a-z]/[!a-z] ranges, as supported by the glob crate. Parsing of quoted arguments precisely follows Windows' native syntax (CommandLineToArgvW, specifically).
GitLab
Kornel / wild · GitLab
Glob (wildcard) expanded command-line arguments for Rust programs on Windows
👍6
Блог*
My programming proverbs: Short code is nice but not required. Ensure preconditions are met. No hungarian notation. Delegate allocations to caller. Narrow interfaces are preferable. Universal solution is not always the most efficient. Development is not only…
Или, как я часто люблю говорить:
SEND NUDES
SEND NUDES
👍3❤2
Forwarded from Питерач • Новости Питера
🤔 На экономическом форуме РБК разместил интересный слоган-ребус.
Про бизнес, конечно же.
Про бизнес, конечно же.
😁9❤4👍1🔥1🤔1
#лингво
en.wikipedia.org/wiki/James_while_John_had_had_had_had_had_had_had_had_had_had_had_a_better_effect_on_the_teacher
(thanks @egorku)
en.wikipedia.org/wiki/James_while_John_had_had_had_had_had_had_had_had_had_had_had_a_better_effect_on_the_teacher
(thanks @egorku)
Wikipedia
James while John had had had had had had had had had had had a better effect on the teacher
sentence used to emphasize lexical ambiguity and the importance of punctuation
🔥4👍2
Вышел из поезда.
Прошёл через турникет.
Подумал, что чего-то не хватает.
Понял, что не хватает зонта.
Решил, что оставил зонт в поезде, то есть фактически потерял.
Слегка расстроился и решил купить новый.
Спустя мгновение понял, что держу зонт под подмышкой.
Прошёл через турникет.
Подумал, что чего-то не хватает.
Понял, что не хватает зонта.
Решил, что оставил зонт в поезде, то есть фактически потерял.
Слегка расстроился и решил купить новый.
Спустя мгновение понял, что держу зонт под подмышкой.
🙏11👏6❤1
Блог*
Вышел из поезда. Прошёл через турникет. Подумал, что чего-то не хватает. Понял, что не хватает зонта. Решил, что оставил зонт в поезде, то есть фактически потерял. Слегка расстроился и решил купить новый. Спустя мгновение понял, что держу зонт под подмышкой.
Is it some kind of joke that I am too unpremium to understand?
🐳27🙏6🤣3👏1😢1