home.social

#async — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #async, aggregated by home.social.

fetched live
  1. Async на Rust завис: как понять, где именно, когда паники нет и стек молчит

    Сервис жив, CPU в норме, паники нет — а часть запросов зависает на минуты. В async‑Rust привычный стек часто мало помогает: задача могла застрять на блокирующем вызове, мьютексе или просто перестать получать пробуждения. Разбираем, как отличать эти сценарии в Tokio и куда смотреть, когда отладчик молчит.

    habr.com/ru/companies/otus/art

    #Rust #Tokio #async #асинхронное_программирование #зависания #дедлоки #отладка #tokioconsole #мьютексы #кооперативная_многозадачность

  2. 【Unity】コルーチンのように扱える非同期タスクで専用ライブラリのパフォーマンスに迫る【Omochaya Story 1.3 ~ Tween機能】
    qiita.com/Omochaya/items/85110

    #qiita #C #Unity #async #coroutine #Tween

  3. 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 ...

    magicmarcy.de/einstieg-in-java

    #JavaScript #Einstieg #Browser #clientseitig #dynamisch_typisiert #event-basiert #flexibel #Interaktivität #asynchron #async #DOM #Document_Objekt_Model #HTML #MDN #Event_Listener #Events

  4. 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 — github.com/open-and-async/mcp

    Book: open-and-async.com

    #OpenSource #RemoteWork #Async #FOSS

  5. 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 — github.com/open-and-async/mcp

    Book: open-and-async.com

    #OpenSource #RemoteWork #Async #FOSS

  6. With Firefox 153 officially supporting WebAssembly.promising and its counterpart WebAssembly.Suspending[1], I've updated 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.asyncExports will be auto-wrapped using WebAssembly.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] developer.mozilla.org/en-US/do

    #ReleaseAnnouncement #ThingUmbrella #OpenSource #WASM #WebAssembly #TypeScript #JavaScript #Async

  7. With Firefox 153 officially supporting WebAssembly.promising and its counterpart WebAssembly.Suspending[1], I've updated 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.asyncExports will be auto-wrapped using WebAssembly.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] developer.mozilla.org/en-US/do

    #ReleaseAnnouncement #ThingUmbrella #OpenSource #WASM #WebAssembly #TypeScript #JavaScript #Async

  8. 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.

    #javascript #async #then

  9. 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.

    #javascript #async #then

  10. Another #ThingUmbrella release cycle this AM:

    • fixed yesterday's 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 ReadableStream can (finally) be iterated via for await(...) syntax, but then turns out it's still only planned for v27 [2]... 🙄
    • added async versions of all timing & benchmarking functions in thi.ng/bench to support benchmarking async functions

    [1] webkit.org/blog/17862/webkit-f
    [2] developer.mozilla.org/en-US/do

    #OpenSource #ReleaseDay #TypeScript #JavaScript #Async

  11. Another #ThingUmbrella release cycle this AM:

    • fixed yesterday's 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 ReadableStream can (finally) be iterated via for await(...) syntax, but then turns out it's still only planned for v27 [2]... 🙄
    • added async versions of all timing & benchmarking functions in thi.ng/bench to support benchmarking async functions

    [1] webkit.org/blog/17862/webkit-f
    [2] developer.mozilla.org/en-US/do

    #OpenSource #ReleaseDay #TypeScript #JavaScript #Async

  12. Go async at TechBash 2026 with Cleyrol Santana Christopher

    Register by July 31st to save with code SUMMERSALE. Full schedule at techbash.com/schedule

    #programming #async #devcommunity #techevent #poconos #kalahari

  13. Go async at TechBash 2026 with Cleyrol Santana Christopher

    Register by July 31st to save with code SUMMERSALE. Full schedule at techbash.com/schedule

    #programming #async #devcommunity #techevent #poconos #kalahari

  14. 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:

    github.com/wgross/property-cha

  15. 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:

    github.com/wgross/property-cha

  16. Tonight at Utah Rust, we're going to be building mini async runtimes, led by David Brungardt. Come and learn async with us! :rustacean:

    meetup.com/utah-rust/events/31
    github.com/carllerche/tokiocon

    #rust #async #tokio

  17. Tonight at Utah Rust, we're going to be building mini async runtimes, led by David Brungardt. Come and learn async with us! :rustacean:

    meetup.com/utah-rust/events/31
    github.com/carllerche/tokiocon

    #rust #async #tokio

  18. 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.

    habr.com/ru/companies/beget/ar

    #rust #sync #std #async

  19. Как сломать Swift Concurrency

    Нужно выполнять асинхронные операции, поддерживать многозадачность в приложении? Async/await к вашим услугам - просто и приятно. Кооперативный пул эффективно переключает потоки между задачами, а компилятор проверяет типы на потокобезопасность. И даже можно подсоединять старые части кода, написанные ещё на GCD! Вот только приложение на проде почему-то начало виснуть…

    habr.com/ru/articles/1055810/

    #swift #concurrency #async #await #gcd #task #ios #deadlock #threads

  20. Асинхронность в WebAssembly(WASM)

    Обзор асинхронности WASM с выходом WASI 0.3 WASM уже вышел за пределы браузеров и выглядит как перспективная технология для серверной разработки. Однако в вопросе серверного компьюта рано или поздно встает вопрос асинхронной обработки I/O-bound нагрузки. В данной статье попробуем разобраться, что как отвечает экосистема WASM на данный вызов. Статья особенно актуальна в свете того, что совсем недавно официально представлен WASI 0.3

    habr.com/ru/articles/1055048/

    #WASM #wasi #wasi_preview2 #wasi_preview3 #webassembly #async #Component_model

  21. Does PHP really need asynchronous programming in its core, or should it continue focusing on its proven synchronous execution model?

    #php #phpc #async #asynchronous

  22. Does PHP really need asynchronous programming in its core, or should it continue focusing on its proven synchronous execution model?

    #php #phpc #async #asynchronous

  23. Асинхронность NIO и Kotlin — а есть ли связь?

    Асинхронность NIO и асинхронность Kotlin: попробуем разобраться какие идеи заложены и как совместно использовать то и другое. А есть ли связь?

    habr.com/ru/articles/1053868/

    #nio #kotlin #async #coroutines #java #linux #epoll

  24. Thrun: как я устал от Horizon и написал свой многопоточный воркер с корутинами

    Сотни тысяч I/O-задач, десятки воркеров и гигабайты памяти на обработку очередей. В какой-то момент мне стало интересно, можно ли решить эту задачу иначе. Так появился Thrun —runtime worker на потоках и сопрограммах. В статье разбираю архитектуру и результаты сравнений с Horizon.

    habr.com/ru/articles/1051554/

    #worker #symfony_messenger #laravel_horizon #async #thread #laravel #trueasync #swoole

  25. Как на самом деле работает .await: пишем свой async-рантайм на Rust с нуля

    Каждый раз, когда вы пишете .await, происходит не магия, а вполне конкретный механизм: Future, Waker и опрос состояния. Чтобы увидеть это своими глазами, я написал собственный async-рантайм на Rust с нуля - с executor, reactor на epoll и рабочим TCP-эхо-сервером. По пути разобрался, как именно tokio будит ваши задачи, и нашёл баг, который тихо висел у меня в проде. Внутри - весь код целиком и объяснение без отсылок к чёрным ящикам.

    habr.com/ru/articles/1050160/

    #rust #async #tokio #future #waker #executor

  26. 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 without.boats on his website, but they are a few years old now and things and terminology seem to have changed since then.

    #rust #async #programming #tokio

  27. 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 without.boats on his website, but they are a few years old now and things and terminology seem to have changed since then.

    #rust #async #programming #tokio

  28. 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!

    #dotnet #async #csharp

  29. 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!

    #dotnet #async #csharp

  30. Почему миллион корутин на Rust весит меньше, чем сто тысяч на Python

    Миллион асинхронных задач на Rust спокойно живёт в нескольких сотнях мегабайт. Сто тысяч корутин на Python нередко упираются в память раньше. Дело не в том, что “Rust быстрый, а Python медленный” - дело в том, ГДЕ физически лежит состояние приостановленной задачи. Разбираю, во что превращается ваш async fn после компиляции: стейт-машина на стеке против объекта в куче. Сравниваю модели Rust (Tokio), Python (asyncio), C# и JavaScript - кто аллоцирует на каждый await, а кто нет, и почему это видно на счётчике RAM при 100k задач. Внутри: что генерирует компилятор, куда уезжает состояние между await, stackful против stackless, и что с этим делать сегодня.

    habr.com/ru/articles/1046862/

    #async #await #корутины #Rust #Tokio #asyncio #конкурентность

  31. Асинхронный django: новые начинания

    Здравствуйте, дорогие читатели! Сегодня - ещё одна статья из рубрики джангологии. Раньше я уже писал о своих идеях ( 1 и 2 ) о том, как сделать django асинхронным. Они основывались, вслед за sqlalchemy, на использовании гринлетов. Несмотря на то, что proof-of-concept был успешно получен, а трудностей - встречено меньше, чем ожидалось, я всё-таки отказался от этого подхода: во-первых, он уже применяется в sqlalchemy. Во-вторых, это ведёт к усложнению, и растёт так называемая test matrix - потому что поддерживается как синхронный случай, так и асинхронный. А simple, как мы знаем, is better than complex. Так вот, я решил возобновить эти свои попытки, изменив подход на более радикальный. А именно, необратимо переписать django на async-only, сломав совместимость полностью. Для этого потребуется заменить в половине функций def на async def и добавив await при их вызове. Я уверен, что такой подход лучше. Не то, чтобы асинхронный django был очень кому-нибудь нужен, особенно теперь, или от этого будет какой-то фантастический выигрыш в производительности - дело в том, что я хочу попробовать на практике агентное программирование, а это, как раз подходящий проект: есть чёткий план и много кода, который нужно менять.

    habr.com/ru/articles/1046604/

    #python #django #async #fork

  32. 🤖 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! 🌐
    aibodh.com/posts/async-rust-ch #Rust #Development #HackerNews #ngated

  33. 🤖 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! 🌐
    aibodh.com/posts/async-rust-ch #Rust #Development #HackerNews #ngated

  34. 😎 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