Блог*
前往频道在 Telegram
Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here
显示更多1 983
订阅者
+124 小时
-27 天
+730 天
帖子存档
1 983
Repost from [АРИХВ] Nero's | Микурейх
Как насчет чего-то действительно полезного? whalemod
$ git clone https://github.com/xbt573/whalemod
$ cd whalemod
$ make
# insmod ./whale.ko
$ cat /dev/whale
.
":"
___:____ |"\/"|
,' `. \ /
| O \___/ |
~^~^~^~^~^~^~^~^~^~^~^~^~
#prog #shit1 983
Repost from [АРИХВ] Nero's | Микурейх
[fun] the earliest version of the
std docs still available online. cool to see how much the standard library has changed since pre-1.0.0!
Раньше в std было немного больше всего:
- rand
- url
- regex даже был
#Rust #prog1 983
Repost from N/a
скажите честно, а вы тоже считаете себя самым охренительным в мире инженером, а не average айтишником?
1 983
#prog #rust #article
Writing your own Rust linter
Из-за завязанности на внутренности компилятора по понятным причинам итоговый линтер требует конкретную версию nightly, из-за чего несколько страдает UI, но в целом процесс довольно прямолинейный.
1 983
#prog #rust #article
Making Rust binaries smaller by default
TL;DR: в не-debug профилях теперь по умолчанию убираются отладочные символы из std. С ними hello world в профиле release весит ≈4.3MiB, без них — на порядок меньше.
Смешное:
Funnily enough, this change also made compilation time of tiny crates (like helloworld) up to 2x faster on Linux! How could that be, when we’re doing more work, by including stripping in the compilation process? Well, it turns out that the default Linux linker (bfd) is brutally slow5, so by removing the debug symbols from the final binary, we actually reduce the amount of work the linker needs to perform, which makes compilation faster.
1 983
#prog #rust #rustasync #article
https://xuanwo.io/2024/01-why-sql-hang-for-exactly-940s/
TL;DR: неправильно реализован таймаут в футуре. Почему не использовали timeout из tokio — неясно.
1 983
Rust разработчики: жалуются на нехватку вакансий
C++ разработчики: просто используют std::get_money
