Язык Zig (канал)
Sure. In general, we're finally nearing the end of language stabilization phase of the roadmap (although there are still a few breaking language changes planned). The next phase will be standard library stabilization. The first step of that will be minimization…
DeepL:
Конечно. В целом, мы наконец-то приближаемся к завершению этапа стабилизации языка в рамках дорожной карты (хотя еще запланировано несколько серьезных изменений в языке). Следующим этапом будет стабилизация стандартной библиотеки. Первым шагом будет минимизация стандартной библиотеки, агрессивное удаление всего, что считается ненужным. Затем будет проведена аудит, а затем добавлены дополнения в сотрудничестве с сообществом Zig и экосистемой.
Раньше, когда язык был моложе, любые дополнения к стандартной библиотеке приветствовались, поскольку они помогали тестировать язык. Сейчас стандартная библиотека достаточно велика, а экосистема достаточно большая, чтобы использовать другие, более эффективные способы тестирования языка.
🕊1👀1
Язык Zig (канал)
add basic compile-time detection for stack escape violations закрыт правда... #upstream
forbid trivial local address returned from functions
Проверка проще, но ошибка теперь раньше появляется
#upstream
Проверка проще, но ошибка теперь раньше появляется
#upstream
GitHub
forbid trivial local address returned from functions by andrewrk · Pull Request #25333 · ziglang/zig
progress towards #25312 (I amended the proposal to include more cases)
Upgrade Guide
fn foo() *i32 {
var x: i32 = 1234;
return &x;
}
test.zig:3:13: error: returning address of expir...
Upgrade Guide
fn foo() *i32 {
var x: i32 = 1234;
return &x;
}
test.zig:3:13: error: returning address of expir...
Старый вариант от jedisct1 мне больше нравился, потому что в новом от Эндрю проверку легко обойти:
fn returnStackPointer() *i32 {
var stack_allocation: i32 = 1234;
const ptr = &stack_allocation;
return ptr;
}Forwarded from mak
https://github.com/ziglang/zig/pull/25351
парочка новых функций и переименований в std.mem
парочка новых функций и переименований в std.mem
GitHub
std.mem: introduce cut functions; rename "index of" to "find" by andrewrk · Pull Request #25351 · ziglang/zig
Introduce cut functions: cut, cutPrefix, cutSuffix, cutScalar, cutLast, cutLastScalar
Moving towards our function naming convention of having one word per concept and constructing function names ...
Moving towards our function naming convention of having one word per concept and constructing function names ...
🤗3❤1
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