#nonblocking

N-gated Hacker Newsngate
2025-05-19

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, is still trying to convince us that will somehow make bad code better. 😂
github.com/yfractal/blog/blob/

2025-03-30

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

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

habr.com/ru/articles/895580/

#php #fiber #nonblocking

Rob Williamsoneswag@dju.social
2025-01-26

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

2024-12-13

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

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

habr.com/ru/articles/866254/

#php #fiber #nonblocking

2024-10-16

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.

#CodigoSinBloqueo
#Nodelay
#Nonblocking

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=ZOMXEYuQww

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

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

youtube.com/watch?v=tdFsSo5LVh

2024-09-02

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

Ihor Kalnytskyiihor@fosstodon.org
2024-02-26

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

Vaughn Vernon 🟦 🟨 🟧 🟪VaughnVernon
2023-04-04

"Slash your code’s carbon footprint"

It's an interesting article. Yet, none of the three interviewees say anything about .

linkedin.com/pulse/slash-your-

In my experience you won't find both a simpler and more effective way to achieve that than by using the . Using actors, you aren't burning multicore waiting on many-object cascading calls used to complete larger tasks.

1>

2019-10-21

#Nonblocking #udp based bitstreams will decrease #website / #application loading times over the internet.

#HTTP/3 is the designated name for the coming next version of the #protocol that is currently under #development within the #QUIC working group in the #IETF

youtube.com/watch?v=idViw4anA6

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst