#async — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #async, aggregated by home.social.
-
Async на Rust завис: как понять, где именно, когда паники нет и стек молчит
Сервис жив, CPU в норме, паники нет — а часть запросов зависает на минуты. В async‑Rust привычный стек часто мало помогает: задача могла застрять на блокирующем вызове, мьютексе или просто перестать получать пробуждения. Разбираем, как отличать эти сценарии в Tokio и куда смотреть, когда отладчик молчит.
https://habr.com/ru/companies/otus/articles/1065590/
#Rust #Tokio #async #асинхронное_программирование #зависания #дедлоки #отладка #tokioconsole #мьютексы #кооперативная_многозадачность
-
【Unity】コルーチンのように扱える非同期タスクで専用ライブラリのパフォーマンスに迫る【Omochaya Story 1.3 ~ Tween機能】
https://qiita.com/Omochaya/items/851106dfe25b5c34afae?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items -
JavaScript ist eine der wichtigsten Sprachen der Webentwicklung. Nachdem du in meinem letzten Beitrag bereits erfahren hast, was JavaScript überhaupt ist, schauen wir uns heute an, wie JavaScript funktioniert, welche ...
https://magicmarcy.de/einstieg-in-javascript-–-so-funktioniert-die-sprache-im-browser
#JavaScript #Einstieg #Browser #clientseitig #dynamisch_typisiert #event-basiert #flexibel #Interaktivität #asynchron #async #DOM #Document_Objekt_Model #HTML #MDN #Event_Listener #Events
-
#Development #Reviews
SolidJS 2.0 · “It’s the most interesting frontend release I’ve looked at in a while.” https://ilo.im/16ewha_____
#Signals #Async #SolidJS #React #Library #WebDev #Frontend #JavaScript -
#Development #Reviews
SolidJS 2.0 · “It’s the most interesting frontend release I’ve looked at in a while.” https://ilo.im/16ewha_____
#Signals #Async #SolidJS #React #Library #WebDev #Frontend #JavaScript -
With the Django 6.1 release, Threadmill officially leaves beta. 🎉
-
Open source solved distributed collaboration decades before "remote work" was a policy debate. My book on applying that playbook to how teams (not just code) work is out today: Open and Async — work in the open, write it down, meetings as escalation.
It also ships as an MCP server (free, no book required): npx -y @open-and-async/mcp — https://github.com/open-and-async/mcp
-
Open source solved distributed collaboration decades before "remote work" was a policy debate. My book on applying that playbook to how teams (not just code) work is out today: Open and Async — work in the open, write it down, meetings as escalation.
It also ships as an MCP server (free, no book required): npx -y @open-and-async/mcp — https://github.com/open-and-async/mcp
-
With Firefox 153 officially supporting
WebAssembly.promisingand its counterpartWebAssembly.Suspending[1], I've updated https://thi.ng/wasm-api to simplify the integration of hybrid JS/WASM async function calls, so you don't have to worry about manually creating these wrappers:- JavaScript async functions declared in a module's WASM imports will be auto-wrapped using
WebAssembly.Suspending - WASM exports declared/listed via
WasmModuleOpts.asyncExportswill be auto-wrapped usingWebAssembly.promising
However, since that WASM feature isn't yet supported by Safari (no surprise there) and various mobile browsers, it's best to check for and selectively limit features relying on this mechanism...
Happy coding! :)
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/153
#ReleaseAnnouncement #ThingUmbrella #OpenSource #WASM #WebAssembly #TypeScript #JavaScript #Async
- JavaScript async functions declared in a module's WASM imports will be auto-wrapped using
-
With Firefox 153 officially supporting
WebAssembly.promisingand its counterpartWebAssembly.Suspending[1], I've updated https://thi.ng/wasm-api to simplify the integration of hybrid JS/WASM async function calls, so you don't have to worry about manually creating these wrappers:- JavaScript async functions declared in a module's WASM imports will be auto-wrapped using
WebAssembly.Suspending - WASM exports declared/listed via
WasmModuleOpts.asyncExportswill be auto-wrapped usingWebAssembly.promising
However, since that WASM feature isn't yet supported by Safari (no surprise there) and various mobile browsers, it's best to check for and selectively limit features relying on this mechanism...
Happy coding! :)
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/153
#ReleaseAnnouncement #ThingUmbrella #OpenSource #WASM #WebAssembly #TypeScript #JavaScript #Async
- JavaScript async functions declared in a module's WASM imports will be auto-wrapped using
-
Principal software engineer David Storey writes a in-depth guide to ASP.NET Core web api thread pool performance tuning using Kestrel as the web server (https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-10.0).
"Threading on Thin Ice: Demystifying the .NET ThreadPool and avoiding starvation"
-
Principal software engineer David Storey writes a in-depth guide to ASP.NET Core web api thread pool performance tuning using Kestrel as the web server (https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-10.0).
"Threading on Thin Ice: Demystifying the .NET ThreadPool and avoiding starvation"
-
Fun with Javascript's async/await and Promise and then().
x = 1; Promise.resolve("bla").then((v) => x = v); console.log(x);
shows 1 in the console, because then(), even on an already resolved promise, is not immediately called but shoved on the queue for "later" execution. To trigger "later", this works in the Firefox console:
x = 1; Promise.resolve("bla").then((v) => x = v); await Promise.resolve(); console.log(x);
It shows bla in the console.
-
Fun with Javascript's async/await and Promise and then().
x = 1; Promise.resolve("bla").then((v) => x = v); console.log(x);
shows 1 in the console, because then(), even on an already resolved promise, is not immediately called but shoved on the queue for "later" execution. To trigger "later", this works in the Firefox console:
x = 1; Promise.resolve("bla").then((v) => x = v); await Promise.resolve(); console.log(x);
It shows bla in the console.
-
Another #ThingUmbrella release cycle this AM:
- fixed yesterday's https://thi.ng/geom-io-obj stream parser update to also support #Safari (aka the modern IE6-like browser problem child), which in the release notes for Safari v26.4 claims[1] that
ReadableStreamcan (finally) be iterated viafor await(...)syntax, but then turns out it's still only planned for v27 [2]... 🙄 - added async versions of all timing & benchmarking functions in https://thi.ng/bench to support benchmarking async functions
[1] https://webkit.org/blog/17862/webkit-features-for-safari-26-4/#web-api
[2] https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#browser_compatibility - fixed yesterday's https://thi.ng/geom-io-obj stream parser update to also support #Safari (aka the modern IE6-like browser problem child), which in the release notes for Safari v26.4 claims[1] that
-
Another #ThingUmbrella release cycle this AM:
- fixed yesterday's https://thi.ng/geom-io-obj stream parser update to also support #Safari (aka the modern IE6-like browser problem child), which in the release notes for Safari v26.4 claims[1] that
ReadableStreamcan (finally) be iterated viafor await(...)syntax, but then turns out it's still only planned for v27 [2]... 🙄 - added async versions of all timing & benchmarking functions in https://thi.ng/bench to support benchmarking async functions
[1] https://webkit.org/blog/17862/webkit-features-for-safari-26-4/#web-api
[2] https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#browser_compatibility - fixed yesterday's https://thi.ng/geom-io-obj stream parser update to also support #Safari (aka the modern IE6-like browser problem child), which in the release notes for Safari v26.4 claims[1] that
-
Go async at TechBash 2026 with Cleyrol Santana Christopher
Register by July 31st to save with code SUMMERSALE. Full schedule at https://techbash.com/schedule
#programming #async #devcommunity #techevent #poconos #kalahari
-
Go async at TechBash 2026 with Cleyrol Santana Christopher
Register by July 31st to save with code SUMMERSALE. Full schedule at https://techbash.com/schedule
#programming #async #devcommunity #techevent #poconos #kalahari
-
C# Async/Await Made Simple | by Lou Creemers
-
C# Async/Await Made Simple | by Lou Creemers
-
I my daily work I'm maintaining a #dotnet software containing ~5K unit tests including #WPF view model tests.
Most of the work they do is #async, started by 'AsyncRelayCommands'. This means waiting and asserting state changes is also async. Therefore #xunit tests are waiting often for `ManualResetEventSlim' to fire triggered by 'INotifyPropertyChanged' events.
I have wrapped this nicely in some lines of code which will result in test code being easier on the eyes in my opinion. Maybe this is useful someone else?
For details see:
-
I my daily work I'm maintaining a #dotnet software containing ~5K unit tests including #WPF view model tests.
Most of the work they do is #async, started by 'AsyncRelayCommands'. This means waiting and asserting state changes is also async. Therefore #xunit tests are waiting often for `ManualResetEventSlim' to fire triggered by 'INotifyPropertyChanged' events.
I have wrapped this nicely in some lines of code which will result in test code being easier on the eyes in my opinion. Maybe this is useful someone else?
For details see:
-
Tonight at Utah Rust, we're going to be building mini async runtimes, led by David Brungardt. Come and learn async with us! :rustacean:
https://www.meetup.com/utah-rust/events/314696647/
https://github.com/carllerche/tokioconf-2026-workshop-exercises -
Tonight at Utah Rust, we're going to be building mini async runtimes, led by David Brungardt. Come and learn async with us! :rustacean:
https://www.meetup.com/utah-rust/events/314696647/
https://github.com/carllerche/tokioconf-2026-workshop-exercises -
sizeof(Mutex<()>) упал с 40 байт до 5: что внутри std::sync::Mutex после Rust 1.62
sizeof(Mutex<()>) в Rust 1.61 на Linux был 40 байт. В Rust 1.62 он стал 5 (точнее, 8 с учётом выравнивания, но базовый overhead 5). За уменьшением размера в восемь раз стоит полная переписка стандартного Mutex с pthread на futex напрямую, ускорение uncontended locks в 2-3 раза, и десятилетие, которое стандартный Mutex провёл в роли «возьми parking_lot, std::sync::Mutex медленный». Сегодня заглянем под капот всей этой темы, разберём, что лежит внутри std::sync::Mutex после 1.62, какой алгоритм там используется, почему он на самом деле быстрее pthread, как устроен fairness (точнее, его отсутствие), зачем нужен poisoning, и в каких случаях parking_lot всё ещё имеет смысл тащить в зависимости. Заодно вернёмся к моей старой async-статье и поясним конкретнее, почему в async-задачах std::sync::Mutex это проблема, и при чём тут вообще futex.
-
Как сломать Swift Concurrency
Нужно выполнять асинхронные операции, поддерживать многозадачность в приложении? Async/await к вашим услугам - просто и приятно. Кооперативный пул эффективно переключает потоки между задачами, а компилятор проверяет типы на потокобезопасность. И даже можно подсоединять старые части кода, написанные ещё на GCD! Вот только приложение на проде почему-то начало виснуть…
https://habr.com/ru/articles/1055810/
#swift #concurrency #async #await #gcd #task #ios #deadlock #threads
-
Асинхронность в WebAssembly(WASM)
Обзор асинхронности WASM с выходом WASI 0.3 WASM уже вышел за пределы браузеров и выглядит как перспективная технология для серверной разработки. Однако в вопросе серверного компьюта рано или поздно встает вопрос асинхронной обработки I/O-bound нагрузки. В данной статье попробуем разобраться, что как отвечает экосистема WASM на данный вызов. Статья особенно актуальна в свете того, что совсем недавно официально представлен WASI 0.3
https://habr.com/ru/articles/1055048/
#WASM #wasi #wasi_preview2 #wasi_preview3 #webassembly #async #Component_model
-
Backrooms torna al cinema con 16 minuti extra: Kane Parsons prepara una sorpresa per i fan
-
Does PHP really need asynchronous programming in its core, or should it continue focusing on its proven synchronous execution model?
-
Does PHP really need asynchronous programming in its core, or should it continue focusing on its proven synchronous execution model?
-
Асинхронность NIO и Kotlin — а есть ли связь?
Асинхронность NIO и асинхронность Kotlin: попробуем разобраться какие идеи заложены и как совместно использовать то и другое. А есть ли связь?
-
Cancellation of Windows Runtime activities is asynchronous | by Raymond Chen
https://devblogs.microsoft.com/oldnewthing/20260624-00/?p=112465
-
Cancellation of Windows Runtime activities is asynchronous | by Raymond Chen
https://devblogs.microsoft.com/oldnewthing/20260624-00/?p=112465
-
Thrun: как я устал от Horizon и написал свой многопоточный воркер с корутинами
Сотни тысяч I/O-задач, десятки воркеров и гигабайты памяти на обработку очередей. В какой-то момент мне стало интересно, можно ли решить эту задачу иначе. Так появился Thrun —runtime worker на потоках и сопрограммах. В статье разбираю архитектуру и результаты сравнений с Horizon.
https://habr.com/ru/articles/1051554/
#worker #symfony_messenger #laravel_horizon #async #thread #laravel #trueasync #swoole
-
Как на самом деле работает .await: пишем свой async-рантайм на Rust с нуля
Каждый раз, когда вы пишете .await, происходит не магия, а вполне конкретный механизм: Future, Waker и опрос состояния. Чтобы увидеть это своими глазами, я написал собственный async-рантайм на Rust с нуля - с executor, reactor на epoll и рабочим TCP-эхо-сервером. По пути разобрался, как именно tokio будит ваши задачи, и нашёл баг, который тихо висел у меня в проде. Внутри - весь код целиком и объяснение без отсылок к чёрным ящикам.
-
Can someone recommend some good up-to-date resources on #rust #async internals?
Last I checked, the nicest and the most informative were the blogpost series by https://without.boats on his website, but they are a few years old now and things and terminology seem to have changed since then.
-
Can someone recommend some good up-to-date resources on #rust #async internals?
Last I checked, the nicest and the most informative were the blogpost series by https://without.boats on his website, but they are a few years old now and things and terminology seem to have changed since then.
-
It might not look like much, but #JetBrains Rider just released (EAP6) a debugger update that displays asynchronous Tasks in a way that makes them feel like synchronous code. Thank goodness!
-
It might not look like much, but #JetBrains Rider just released (EAP6) a debugger update that displays asynchronous Tasks in a way that makes them feel like synchronous code. Thank goodness!
-
Почему миллион корутин на Rust весит меньше, чем сто тысяч на Python
Миллион асинхронных задач на Rust спокойно живёт в нескольких сотнях мегабайт. Сто тысяч корутин на Python нередко упираются в память раньше. Дело не в том, что “Rust быстрый, а Python медленный” - дело в том, ГДЕ физически лежит состояние приостановленной задачи. Разбираю, во что превращается ваш async fn после компиляции: стейт-машина на стеке против объекта в куче. Сравниваю модели Rust (Tokio), Python (asyncio), C# и JavaScript - кто аллоцирует на каждый await, а кто нет, и почему это видно на счётчике RAM при 100k задач. Внутри: что генерирует компилятор, куда уезжает состояние между await, stackful против stackless, и что с этим делать сегодня.
https://habr.com/ru/articles/1046862/
#async #await #корутины #Rust #Tokio #asyncio #конкурентность
-
Асинхронный django: новые начинания
Здравствуйте, дорогие читатели! Сегодня - ещё одна статья из рубрики джангологии. Раньше я уже писал о своих идеях ( 1 и 2 ) о том, как сделать django асинхронным. Они основывались, вслед за sqlalchemy, на использовании гринлетов. Несмотря на то, что proof-of-concept был успешно получен, а трудностей - встречено меньше, чем ожидалось, я всё-таки отказался от этого подхода: во-первых, он уже применяется в sqlalchemy. Во-вторых, это ведёт к усложнению, и растёт так называемая test matrix - потому что поддерживается как синхронный случай, так и асинхронный. А simple, как мы знаем, is better than complex. Так вот, я решил возобновить эти свои попытки, изменив подход на более радикальный. А именно, необратимо переписать django на async-only, сломав совместимость полностью. Для этого потребуется заменить в половине функций def на async def и добавив await при их вызове. Я уверен, что такой подход лучше. Не то, чтобы асинхронный django был очень кому-нибудь нужен, особенно теперь, или от этого будет какой-то фантастический выигрыш в производительности - дело в том, что я хочу попробовать на практике агентное программирование, а это, как раз подходящий проект: есть чёткий план и много кода, который нужно менять.
-
🤖 So, an #AI enthusiast believes that with enough #computational elbow grease, even Rust's famously convoluted #async features can be untangled. 🙄 Apparently, it takes mere mortals 20-25 hours to craft a single article—thank goodness we have machines to do the #thinking now, or we'd never get through the nightmarish syntax of Rust! 🌐
https://aibodh.com/posts/async-rust-chapter-1-hands-on-intro-to-async-rust/ #Rust #Development #HackerNews #ngated -
🤖 So, an #AI enthusiast believes that with enough #computational elbow grease, even Rust's famously convoluted #async features can be untangled. 🙄 Apparently, it takes mere mortals 20-25 hours to craft a single article—thank goodness we have machines to do the #thinking now, or we'd never get through the nightmarish syntax of Rust! 🌐
https://aibodh.com/posts/async-rust-chapter-1-hands-on-intro-to-async-rust/ #Rust #Development #HackerNews #ngated -
Who Runs Your Rust Future? Hands-On Intro to Async Rust
https://aibodh.com/posts/async-rust-chapter-1-hands-on-intro-to-async-rust/
-
Who Runs Your Rust Future? Hands-On Intro to Async Rust
https://aibodh.com/posts/async-rust-chapter-1-hands-on-intro-to-async-rust/
-
#Development #Pitfalls
The quiet problem with unnecessary async · “It changes the shape of the code around it.” https://ilo.im/16dkjt_____
#Programming #Coding #JavaScript #Async #WebDev #Frontend #Backend -
#Development #Pitfalls
The quiet problem with unnecessary async · “It changes the shape of the code around it.” https://ilo.im/16dkjt_____
#Programming #Coding #JavaScript #Async #WebDev #Frontend #Backend -
Backrooms, il finale svela il vero ruolo di Async nel film horror A24
https://web.brid.gy/r/https://www.galaxyaddicted.it/2026/05/backrooms-finale-async-spiegazione/
-
😎 Je viens de publier un nouvel article sur les nouveautés les plus intéressantes de Symfony 8.1
⚡️ Symfony continue d'évoluer bien au-delà des applications web traditionnelles et devient une base de plus en plus solide pour les workers, les pipelines et les systèmes distribués.
👇 Détails dans l'article en commentaire.
#Symfony #PHP #Backend #AI #Architecture #Messenger #Async #DX #OpenSource
-
Swift Concurrency Best Practices https://wesleydegroot.nl/blog/swift-concurrency-best-practices #Swift #Concurrency #async/await
-
The hot take of the talk:
Arc<Mutex<...>> is a code smell.
-- @deadparrot