home.social

#nonblocking — Public Fediverse posts

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

fetched live
  1. Oh look, someone found a way to scan the Ruby stack sans GVL! 🎉 Now we can all marvel at the thrilling saga of non-blocking stack profiling... because that's exactly what the world was waiting for, right? 🙄 Meanwhile, #GitHub is still trying to convince us that #AI will somehow make bad code better. 😂
    github.com/yfractal/blog/blob/ #RubyStackProfiling #NonBlocking #CodeQuality #TechHumor #HackerNews #ngated

  2. Oh look, someone found a way to scan the Ruby stack sans GVL! 🎉 Now we can all marvel at the thrilling saga of non-blocking stack profiling... because that's exactly what the world was waiting for, right? 🙄 Meanwhile, #GitHub is still trying to convince us that #AI will somehow make bad code better. 😂
    github.com/yfractal/blog/blob/ #RubyStackProfiling #NonBlocking #CodeQuality #TechHumor #HackerNews #ngated

  3. Пример HTTP-сервера на PHP с использованием файберов. Улучшенная версия

    В статье Пример HTTP-сервера на PHP с использованием файберов / Хабр краеугольным камнем организации обработки HTTP-соединений является функция socket_select() , которая имеет значительное ограничение - максимальное значение дескриптора, которое можно добавить в любой из трёх аргументов данной функции составляет 1024. Данный лимит определяется константой FD_SETSIZE, для увеличения которой придётся сконфигурировать системные лимиты и как минимум пересобрать интерпретатор PHP, что нецелесообразно и может создать эксплуатационные проблемы. К тому же, производительность функции select() , обёрткой над которой является функция socket_select(), значительно проседает при ощутимом увеличении значения константы FD_SETSIZE. В данной статье я постараюсь продемонстрировать альтернативу, позволяющую избавить пример из предыдущей статьи от данного ограничения.

    habr.com/ru/articles/895580/

    #php #fiber #nonblocking

  4. Argh, I'm refactoring some old Rust code to test it better, and github.com/rust-lang/rust/issu is not letting me use generics to invert dependencies in order to inject some test code into an async function.

    I thought I was being such a clever clogs. As I swore in the comment on the offending function, Buttmuppets!

    This bug with lifetimes and generic associated types is really unpleasant to discover on a Sunday. Butt. Muppets.

    #rust #gat #dry #DependencyInjection #test #async #nonblocking

  5. Argh, I'm refactoring some old Rust code to test it better, and github.com/rust-lang/rust/issu is not letting me use generics to invert dependencies in order to inject some test code into an async function.

    I thought I was being such a clever clogs. As I swore in the comment on the offending function, Buttmuppets!

    This bug with lifetimes and generic associated types is really unpleasant to discover on a Sunday. Butt. Muppets.

    #rust #gat #dry #DependencyInjection #test #async #nonblocking

  6. Пример HTTP-сервера на PHP с использованием файберов

    Платформа PHP часто подвергается критике за отсутствие встроенных возможностей для создания конкурентных приложений. В версии 8.1 был добавлен класс Fiber , который, согласно RFC , должен упростить создание конкурентных приложений. Однако, материалов, демонстрирующих использование данного функционала для построения приложений практически нет, напротив, говорится, что файберы - это функционал, предназначенный для использования разработчиками фреймворков и приводятся какие-то малоинформативные отрывки кода. В этой статье будет продемонстрирован концептуальный пример конкурентного приложения на PHP с использованием файберов.

    habr.com/ru/articles/866254/

    #php #fiber #nonblocking

  7. Arduino desde cero en Español - Capítulo 80 - Código sin bloqueo y Librería TimeAlarms

    El delay() es muy útil pero en ciertas ocasiones genera complicaciones al detener el flujo del programa, por eso analizaremos cómo realizar código sin bloqueo (non-blocking) con la función millis() y demostraremos en la práctica sus beneficios.
    También veremos la librería TimeAlarms para establecer fácilmente timers o temporizadores para tareas programadas de corta y larga duración con el RTC incorporado en Arduino.



    arduino sin delay
    arduino millis
    multitareas en arduino
    función millis arduino
    temporizador en arduino
    timealarms arduino
    timelib arduino
    reloj en tiempo real arduino

    Capítulo 38 (RTC):
    youtube.com/watch?v=ZOMXEYuQwwY

    Capítulo 58 (Timelib):
    youtube.com/watch?v=CDt1Wlc5rHw

    Código fuente de los programas vistos en:
    github.com/bitwiseAr/Curso-Ard

    youtube.com/watch?v=tdFsSo5LVhg

  8. I rewrote my #foss implementation of a #python #multipart form data parser as a #sansio (push based #nonblocking ) parser, and it is now not only suitable for #async applications, but also 2x to10x faster than the old (blocking) implementation. Was a ton of work, but totally worth it. Release will follow later this week.

    github.com/defnull/multipart/p

  9. I rewrote my #foss implementation of a #python #multipart form data parser as a #sansio (push based #nonblocking ) parser, and it is now not only suitable for #async applications, but also 2x to10x faster than the old (blocking) implementation. Was a ton of work, but totally worth it. Release will follow later this week.

    github.com/defnull/multipart/p

  10. Even though I came to terms with async functions with years, I still can't shake the feeling that something wrong there. 😏

  11. Even though I came to terms with async functions with years, I still can't shake the feeling that something wrong there. 😏

    #async #blocking #nonblocking #programming #meme