Forwarded from Andrei Kolesnikov
Там это, книжка для zig нарисовалась
Manning Publications
Systems Programming with Zig - Garrison Hinson-Hasty
Zig delivers performance, reliability, and complex integration in systems programming in a simple, modern package.
Zig hits the sweet spot for systems programming. This new programming language is high-performance, low-level, ultra-reliable, and perfectly…
Zig hits the sweet spot for systems programming. This new programming language is high-performance, low-level, ultra-reliable, and perfectly…
👍6🕊1
Forwarded from Andrei Kolesnikov
Пока пишется, какие-то главы доступны онлайн, хотят закончить к весне 2026го
Forwarded from Андрей Краевский
GitHub
std: Introduce `Io` Interface by andrewrk · Pull Request #25592 · ziglang/zig
This patchset adds std.Io and provides two implementations for it:
std.Io.Threaded - based on a thread pool.
-fno-single-threaded - supports concurrency and cancellation.
-fsingle-threaded - does...
std.Io.Threaded - based on a thread pool.
-fno-single-threaded - supports concurrency and cancellation.
-fsingle-threaded - does...
🎉7
Очередной async для Zig:
https://lalinsky.com/2025/10/26/zio-async-io-for-zig.html
https://github.com/lalinsky/zio
#блоги #библиотеки
https://lalinsky.com/2025/10/26/zio-async-io-for-zig.html
https://github.com/lalinsky/zio
#блоги #библиотеки
Lukáš Lalinský
How I turned Zig into my favorite language to write network programs in
I’ve been watching the Zig language for a while now, given that it was created for writing audio software (low-level, no allocations, real time). I never paid too much attention though, it seemed a little weird to me and I didn’t see the real need. Then I…
Forwarded from Андрей Краевский
Новый доклад про Async https://youtu.be/mdOxIc0HM04
YouTube
Zig's New Async I/O - Andrew & Zig Core Team
Andrew is the President and Lead Developer of Zig Software Foundation. In his talk at Zigtoberfest 2025 he showcases the upcoming Async I/O for the #Zig programming language.
If you like Zig, consider sponsoring the Zig Software Foundation: https://ziglang.org/zsf/…
If you like Zig, consider sponsoring the Zig Software Foundation: https://ziglang.org/zsf/…
Builtin Matrix type
Принято Эндрю на основании:
В основном из-за SPIR-V и графики, но будет работать везде.
#upstream
Принято Эндрю на основании:
This is accepted mainly motivated by the SPIR-V backend, but the types will naturally be supported on all targets, and is expected to also fulfill the ergonomics use case for graphics programming in general.
В основном из-за SPIR-V и графики, но будет работать везде.
#upstream
GitHub
Builtin Matrix type · Issue #4960 · ziglang/zig
LLVM 10 introduced nice Matrix intrinsics. Possible syntax: @Matrix(rows, cols, type) Related issue: #903
❤6👍1
replace @Type with individual type-creating builtins
Помянем
#upstream
Помянем
@Type, теперь у нас @Int, @Struct и т.д.#upstream
GitHub
replace @Type with individual type-creating builtins by alichraghi · Pull Request #23733 · ziglang/zig
Closes #10710
I updated zig1.wasm in first commit to ensure the CI is passing. once ready, one of the core team members can handle updating it.
I also didn't add @Array because as @Hejsil p...
I updated zig1.wasm in first commit to ensure the CI is passing. once ready, one of the core team members can handle updating it.
I also didn't add @Array because as @Hejsil p...
🤔4👍3😢1
Migrating from GitHub to Codeberg
Прощай GitHub, привет Codeberg!
TLDR:
* если у вас включен GitHub Sponsors для Zig, по возможности перейдите на Every.org
https://www.every.org/zig-software-foundation-inc#/donate/card
* существующие issues и пулл-реквесты оставьте в покое. Не копируйте их на новый сайт, если только вы не хотите изменить там что-то.
* новые issues и пулл-реквесты открывать на Codeberg (само собой)
#upstream
Прощай GitHub, привет Codeberg!
TLDR:
* если у вас включен GitHub Sponsors для Zig, по возможности перейдите на Every.org
https://www.every.org/zig-software-foundation-inc#/donate/card
* существующие issues и пулл-реквесты оставьте в покое. Не копируйте их на новый сайт, если только вы не хотите изменить там что-то.
* новые issues и пулл-реквесты открывать на Codeberg (само собой)
#upstream
🎉4
Forwarded from kristoff
sorry to disrupt all the theories but CI not being reliable is a big fucking problem and the main reason why the move happened now
Forwarded from kristoff
it was infuriating to discover that the stupid GH runner was livelocking agents on our machine in an endless
while(true) loop❤1
Forwarded from kristoff
and also setting up CI for stuff like the BSDs was a pain because the runner depends on .NET at runtime, which is not even packaged by all Linux distros, let alone other OSs
🔥1
Forwarded from kristoff
but the final straw was seeing GH start running jobs out of order, which would cause PR CI runs to fail because of timeouts
https://codeberg.org/forgejo-contrib/moving-to-forgejo/issues/15
Обсуждение миграции на Codeberg
#upstream
Обсуждение миграции на Codeberg
#upstream
Codeberg.org
Zig Software Foundation
### Describe your migration
Hello friends!
ZSF is looking to migrate git hosting for a handful of repositories, as well as using the Actions web UI to manage a set of machines using the self-hosted runner API. We have no plans to use cloud-hosted/shared…
Hello friends!
ZSF is looking to migrate git hosting for a handful of repositories, as well as using the Actions web UI to manage a set of machines using the self-hosted runner API. We have no plans to use cloud-hosted/shared…
🤔1
PerformanceAnalysisAndTuningOnModernCPUs_SecondEdition.pdf
21.1 MB
Хорошая книжка про производительность и оптимизации (и немного об устройстве) современных процессоров.
Код в основном C++, не особо сложный. Можете в чате поспрашивать, если не знаете, какие вещи в C++ соответствуют каким в Zig, по типу:
* bitfields и packed struct
*
* и т.д.
Ну и кусочки ассемблера.
https://github.com/dendibakh/perf-book
#книги
Код в основном C++, не особо сложный. Можете в чате поспрашивать, если не знаете, какие вещи в C++ соответствуют каким в Zig, по типу:
* bitfields и packed struct
*
__attribute__((musttail)) и @call(.always_tail, ...)* и т.д.
Ну и кусочки ассемблера.
https://github.com/dendibakh/perf-book
#книги
❤7🔥3
От того же автора есть репозиторий, где вы практикуете оптимизацию (немного на Ziglings похоже, только у вас ничего не сломано).
https://github.com/dendibakh/perf-ninja/blob/main/GetStarted.md
Дают код, оптимизируете его с помощью знаний из книги.
Параллельно смотрите видео https://www.youtube.com/playlist?list=PLRWO2AL1QAV6bJAU2kgB4xfodGID43Y5d
и потом замеряете.
Код (как и в книге) на C++, но есть порты на Rust и Zig:
* https://github.com/grahamking/perf-ninja-rs
* https://github.com/JonathanHallstrom/perf-ninja-zig
https://github.com/dendibakh/perf-ninja/blob/main/GetStarted.md
Дают код, оптимизируете его с помощью знаний из книги.
Параллельно смотрите видео https://www.youtube.com/playlist?list=PLRWO2AL1QAV6bJAU2kgB4xfodGID43Y5d
и потом замеряете.
Код (как и в книге) на C++, но есть порты на Rust и Zig:
* https://github.com/grahamking/perf-ninja-rs
* https://github.com/JonathanHallstrom/perf-ninja-zig
YouTube
PerformanceNinja
Share your videos with friends, family, and the world
❤4
Если у кого-то крашится библиотека на Zig которую вызывают с других языков (Например java/Kotlin), проверьте в каком режиме скомпилирована библиотека.
Если у вас стоит Debug, он может жрать стек как не в себя. Тогда попробуйте любой другой режим, если краш уйдет, это был stack overflow.
Если у вас стоит Debug, он может жрать стек как не в себя. Тогда попробуйте любой другой режим, если краш уйдет, это был stack overflow.
👍7❤2🤔2