#prog #rust #rustasync #article
The State of Async Rust: Runtimes
Обзор текущей экосистемы Rust в разрезе оснований async. Автор советует по возможности использовать синхронный код.
The choice to use Arc or Mutex might be indicative of a design that hasn't fully embraced the ownership and borrowing principles that Rust emphasizes. It's worth reconsidering if the shared state is genuinely necessary or if there's an alternative design that could minimize or eliminate the need for shared mutable state.
The problem, of course, is that Tokio imposes this design on you. It's not your choice to make.
<...>
Multi-threaded-by-default runtimes cause accidental complexity completely unrelated to the task of writing async code.
The State of Async Rust: Runtimes
Обзор текущей экосистемы Rust в разрезе оснований async. Автор советует по возможности использовать синхронный код.
The choice to use Arc or Mutex might be indicative of a design that hasn't fully embraced the ownership and borrowing principles that Rust emphasizes. It's worth reconsidering if the shared state is genuinely necessary or if there's an alternative design that could minimize or eliminate the need for shared mutable state.
The problem, of course, is that Tokio imposes this design on you. It's not your choice to make.
<...>
Multi-threaded-by-default runtimes cause accidental complexity completely unrelated to the task of writing async code.
Corrode Rust Consulting
The State of Async Rust: Runtimes | corrode Rust Consulting
Recently, I found myself returning to a compelling series of blog posts titled
Zero-cost futures in Rust
by Aaron Turon…
Zero-cost futures in Rust
by Aaron Turon…
👍3👎3
Forwarded from PONV Daily (Sergey Kucherenko)
Flat origami is Turing-complete
https://apieceofthepi.substack.com/p/how-to-build-a-computer-using-origami
https://apieceofthepi.substack.com/p/how-to-build-a-computer-using-origami
Substack
How to build a computer using origami
Flat origami is the folding of flat paper in such a way that the finished object lies in a plane.
👍9❤🔥4
#prog #itsec #article
The WebP 0day
Статья про пролетевшую недавно уязвимость в libwebp, которая задела Chrome и, скорее всего, была задействована в реальных атаках. Баг оставался незамеченым даже не смотря на то, что библиотеку регулярно фаззили. И да, это buffer overflow. Опять.
(thanks @experimentalchill)
The WebP 0day
Статья про пролетевшую недавно уязвимость в libwebp, которая задела Chrome и, скорее всего, была задействована в реальных атаках. Баг оставался незамеченым даже не смотря на то, что библиотеку регулярно фаззили. И да, это buffer overflow. Опять.
(thanks @experimentalchill)
Isosceles Blog
The WebP 0day
Early last week, Google released a new stable update for Chrome. The update included a single security fix that was reported by Apple's Security Engineering and Architecture (SEAR) team. The issue, CVE-2023-4863, was a heap buffer overflow in the WebP image…
😱5👍1
Блог*
Мужское давление сиськами А теперь думайте, в каком контексте это было сказано.
Никто не угадал.
Это было сказано в контексте ролёвки по Warhammer 40k (вне персонажа, разумеется). Персонаж одного из игроков стоял в проходе, навстречу ему шёл НИП, мало уступающий в росте и шире в плечах. НИП задал персонажу игрока вопрос и, не дождавшись окончания ответа, пошёл напролом, надавив своим телом на персонажа игрока. Эта ситуация и привела к процитированной фразе от одного из игроков. Всё.
А вы все —озабоченные фикрайтеры вообще не в ту степь пошли.
Это было сказано в контексте ролёвки по Warhammer 40k (вне персонажа, разумеется). Персонаж одного из игроков стоял в проходе, навстречу ему шёл НИП, мало уступающий в росте и шире в плечах. НИП задал персонажу игрока вопрос и, не дождавшись окончания ответа, пошёл напролом, надавив своим телом на персонажа игрока. Эта ситуация и привела к процитированной фразе от одного из игроков. Всё.
А вы все —
🤡10👎2👍1🖕1
Блог*
Вписывает «Angel beats!» в список слёзовыжималок
YouTube
Angel Beats Op Full HD w/lyrics My Soul, Your Beats!
Artist : Lia
Title: My Soul, Your Beats!
I don't take credit for this video. All copyrights and properties go to their respective owners.
Video was intended to promote the anime and for fans to enjoy.
English Translation
I open my eyes again…
Title: My Soul, Your Beats!
I don't take credit for this video. All copyrights and properties go to their respective owners.
Video was intended to promote the anime and for fans to enjoy.
English Translation
I open my eyes again…
❤🔥1
#prog #rust #zig #article
When Zig Outshines Rust - Memory Efficient Enum Arrays
Или об ограничениях Rust, вытекающих из отсутствия staged compilation
When Zig Outshines Rust - Memory Efficient Enum Arrays
Или об ограничениях Rust, вытекающих из отсутствия staged compilation
alic.dev
When Zig outshines Rust - Memory efficient enum arrays
Proper support for sum types or tagged unions have become table stakes for systems programming languages. However, they can incur a lot of memory fragmentation that's not trivial to avoid without good support for metaprogramming. This post goes into Zig's…