Programação Assíncrona

115 views
Skip to first unread message

Matheus Catarino

unread,
Nov 22, 2020, 2:57:05 PM11/22/20
to Zig Brasil
Atualmente está em desenvolvimento a lib pike e zap que são voltados a async-IO, porém trazendo perspectivas diferentes, como cita o autor do pike:

What is the difference between pike and zap?

"Pike provides asynchronous wrappers around certain OS syscalls and makes sure their usage is consistent cross-platform, like for sockets/signals/events.
Zap can be plugged together with Pike to have the driving of syscalls in an async manner done on multiple threads at once (via Zap's scheduler plugged into a thread pool).
I guess an equivalent mannerism in a different programming language would be netpoll in Go being pike, and the Go scheduler/runtime being Zap.
In Rust, Mio would be Pike and Tokio provides a scheduler on top of Mio." - lithdew

Aliás, durante está citação no grupo do Discord, ele também citou este projeto de teste no qual ele utiliza ambos. https://github.com/lithdew/hello

Matheus Catarino

unread,
Nov 22, 2020, 6:13:43 PM11/22/20
to Zig Brasil
O link do grupo no Discord está aqui:

matheusc...@gmail.com

unread,
Jun 4, 2023, 2:31:51 PM6/4/23
to Zig Brasil
Infelizmente, o Zig stage 2 (self-hosting) continua sem suporte a Async (language feature), se limitando a versão obsoleta do stage 1 (old compiler - v0.10.1 ou anterior)!
Antes previsto para 0.11.0 (adiando para final de Junho) para 0.12.0.

Referencias:
Reply all
Reply to author
Forward
0 new messages