Библиотека для детерминированного тестирования IO на Zig:
https://sb2bg.github.io/marionette/
https://github.com/sb2bg/marionette
#библиотеки
https://sb2bg.github.io/marionette/
https://github.com/sb2bg/marionette
#библиотеки
sb2bg.github.io
Marionette
Deterministic I/O and simulation testing for Zig.
👍2🤔1
Сгенерированные EPUB для language reference
https://codeberg.org/ziglang/ziglang.org/issues/623
https://codeberg.org/simenandre/ziglang-docs-epub
https://codeberg.org/ziglang/ziglang.org/issues/623
https://codeberg.org/simenandre/ziglang-docs-epub
Codeberg.org
Reading the Zig Language Reference
Hello 👋
I am currently reading through the Zig Language Reference cover to cover, and having used fragment identifiers in the URL (e.g. `#Peer-Type-Resolution`) as a makeshift bookmark, I realised a better way to consume it is a on my reading tablet. A…
I am currently reading through the Zig Language Reference cover to cover, and having used fragment identifiers in the URL (e.g. `#Peer-Type-Resolution`) as a makeshift bookmark, I realised a better way to consume it is a on my reading tablet. A…
[RU] Язык Zig (канал)
this december im doing a "prototype" which means its going to be done in zig and im going to clear sone difficult hurdles i couldn't do last year.... also accepting sponsors, details on page. also disclaimer, im using heavy amounts of ai assistance (as implied…
Ownership checker для Zig, через комментарии или comptime
https://github.com/sophatvathana/zigsafe
https://www.reddit.com/r/Zig/comments/1txqvl7/built_an_optional_ownership_checker_for_zig/
https://github.com/sophatvathana/zigsafe
https://www.reddit.com/r/Zig/comments/1txqvl7/built_an_optional_ownership_checker_for_zig/
GitHub
GitHub - sophatvathana/zigsafe
Contribute to sophatvathana/zigsafe development by creating an account on GitHub.
😁7🐳3
ZON парсер для Python (если кому надо)
https://pypi.org/project/natizon/
https://github.com/BratishkaErik/natizon
Чтобы парсить
https://pypi.org/project/natizon/
https://github.com/BratishkaErik/natizon
Чтобы парсить
build.zig.zon в питоне вполне хватает, но не только для них.PyPI
natizon
A pure Python, native ZON (Zig Object Notation) parser.
👍1🤔1
sizes.zig
513 B
Просто чтоб не забыть (x86_64-windows-gnu)
sizes.zig:25:5: error:
========================
Type: u63
@sizeOf: 8
@bitSizeOf: 63
@alignOf: 8
========================
Type: u64
@sizeOf: 8
@bitSizeOf: 64
@alignOf: 8
========================
Type: ?u63
@sizeOf: 16
@bitSizeOf: 128
@alignOf: 8
========================
Type: ?u64
@sizeOf: 16
@bitSizeOf: 128
@alignOf: 8
@compileError(buffer);
^~~~~~~~~~~~~~~~~~~~~
🫡3🤯2
[RU] Язык Zig (канал)
sizes.zig
Если вдруг кто думал, что Zig «крадёт» последний или первый бит и что
x86-windows-gnu:
x86-linux-gnu:
@sizeOf(?u63) == @sizeOf(u64), это не так:x86-windows-gnu:
========================
Type: u63
@sizeOf: 8
@bitSizeOf: 63
@alignOf: 8
========================
Type: u64
@sizeOf: 8
@bitSizeOf: 64
@alignOf: 8
========================
Type: ?u63
@sizeOf: 16
@bitSizeOf: 128
@alignOf: 8
========================
Type: ?u64
@sizeOf: 16
@bitSizeOf: 128
@alignOf: 8
x86-linux-gnu:
========================
Type: u63
@sizeOf: 8
@bitSizeOf: 63
@alignOf: 4
========================
Type: u64
@sizeOf: 8
@bitSizeOf: 64
@alignOf: 4
========================
Type: ?u63
@sizeOf: 12
@bitSizeOf: 96
@alignOf: 4
========================
Type: ?u64
@sizeOf: 12
@bitSizeOf: 96
@alignOf: 4
🤯3❤1🤔1
Pledging Another $400,000 to the Zig Software Foundation
Больше денег, можно в том числе и для core team новые контракты создать, их уже 15 человек!
https://ziglang.org/news/welcoming-new-team-members/
https://ziglang.org/zsf/#core-team (нумерацию я расставил):
#блоги #upstream
Больше денег, можно в том числе и для core team новые контракты создать, их уже 15 человек!
https://ziglang.org/news/welcoming-new-team-members/
These folks are next in line for ZSF contracts once funds are available.
https://ziglang.org/zsf/#core-team (нумерацию я расставил):
1. Andrew Kelley (andrewrk)
2. Loris Cro (kristoff)
3. Isaac Freund (ifreund)
4. Veikka Tuominen (Vexu)
5. Michael Dusan (mikdusan)
6. Jacob Young (jacobly)
7. Matthew Lugg (mlugg)
8. Alex Rønne Petersen (alexrp)
9. Mason Remaley (MasonRemaley)
10. Ryan Liptak (squeek502)
11. Frank Denis (jedisct1)
12. Ali Cheraghi (alichraghi)
13. Justus Klausecker (justusk)
14. Casey Banner (kcbanner)
15. Pavel Verigo (pavelverigo)
#блоги #upstream
Codeberg.org
Andrew Kelley
President and Lead Developer of [Zig Software Foundation](https://ziglang.org/)
@bitCast переделали и работу чисел с "нетипичными" размерами (u3, u17, u63 etc.):Devlog и запрос на слияние от mlugg:
* https://ziglang.org/devlog/2026/#2026-06-25
* https://codeberg.org/ziglang/zig/pulls/35711
Основной proposal (от jacobly):
* https://github.com/ziglang/zig/issues/19755
Чет я писал и писал, но получилось запутанно, так что на потом оставил.
#upstream #блоги
Forwarded from Denis D
YouTube
Odin 1.0 Announcement
Odin 1.0 has finally been announced! A decade in the making and will be coming in January 2027.
0:00 Intro
1:15 The Odin Roadmap
1:34 Inline Assembly
1:48 HTTP Package
2:16 iOS Support
2:36 Image and Zip Packages
2:53 Naming Convention
3:24 Release Schedule…
0:00 Intro
1:15 The Odin Roadmap
1:34 Inline Assembly
1:48 HTTP Package
2:16 iOS Support
2:36 Image and Zip Packages
2:53 Naming Convention
3:24 Release Schedule…
🕊4🔥1
Denis D
https://youtu.be/dLPAqXi9In0
Odin таки смог и дошел, впрочем и до этого у них была намного лучше история с стабильностью и обновлениями, чем у Zig…
Когда он выйдет, мы еще на 0.17 будем наверно
Когда он выйдет, мы еще на 0.17 будем наверно
🤝9
[RU] Язык Zig (канал)
Rewrite Bun in Rust the binary size shrinks by 3 MB - 8 MB, the benchmarks are between neutral and faster
Rewriting Bun in Rust
Кусок про stack size:
Ну и прочие полезные детали.
Пост с мыслями от Эндрю
Я честно скажу, для меня очень странный пост, не зашло. Тут в основном не-техническое обсуждение
#блоги
Кусок про stack size:
Rust's LLVM IR codegen emits LLVM's llvm.lifetime.start and llvm.lifetime.end intrinsics for stack variables when they are no longer in use, which lets LLVM reuse stack space slots. This lets large functions with nested scopes use significantly less stack space.
Previously, we manually worked around an open issue by refactoring particularly large functions into many smaller functions.
Ну и прочие полезные детали.
Пост с мыслями от Эндрю
Я честно скажу, для меня очень странный пост, не зашло. Тут в основном не-техническое обсуждение
#блоги
Bun
Rewriting Bun in Rust
Why & how we rewrote Bun from Zig to Rust
👍1
В "Brno University of Technology, Faculty of Information Technology" уже вторая по счету команда на дисциплине по компиляторам пишет "компилятор Zig на Си"
https://github.com/IFJ-zig/Zig-compiler
https://github.com/MarekPazur/IFJ-2024
https://github.com/IFJ-zig/Zig-compiler
https://github.com/MarekPazur/IFJ-2024
GitHub
GitHub - IFJ-zig/Zig-compiler: Zig compiler
Zig compiler. Contribute to IFJ-zig/Zig-compiler development by creating an account on GitHub.
❤2🔥1
[RU] Язык Zig (канал)
В "Brno University of Technology, Faculty of Information Technology" уже вторая по счету команда на дисциплине по компиляторам пишет "компилятор Zig на Си" https://github.com/IFJ-zig/Zig-compiler https://github.com/MarekPazur/IFJ-2024
GitHub
GitHub - matusmihaljevic/butfit-ifj: Compiler for the IFJ24 language, a subset of Zig. It performs lexical, syntax and semantic…
Compiler for the IFJ24 language, a subset of Zig. It performs lexical, syntax and semantic analysis and generates assembly-like intermediate language from source code read on standard input. - matu...
👍1🔥1
Прогресс по 0.17.0:
16 Открыто
146 Закрыто
90%
Остались в основном баги и регрессии. Плюс две фичи и один пулл-реквест:
build server protocol (самое важное, и вроде как приоритет для Эндрю. Полезно для ZLS, ZigBrains и т.д.)
introduce the concept of adding path dependencies of the build script itself
Resolve relative install directories against install prefix
#upstream
16 Открыто
146 Закрыто
90%
Остались в основном баги и регрессии. Плюс две фичи и один пулл-реквест:
build server protocol (самое важное, и вроде как приоритет для Эндрю. Полезно для ZLS, ZigBrains и т.д.)
introduce the concept of adding path dependencies of the build script itself
Resolve relative install directories against install prefix
#upstream
👍19🤡1
Ochi — база даных для хранения структурных логов.
Хранит данные на диске, не требуется S3.
Не использует
Не пишет WAL, данные идут прямиком в SSTable.
Реализуется LSM на основе time aware компакции.
https://github.com/ochi-team/ochi
#проекты
Хранит данные на диске, не требуется S3.
Не использует
mmap для управления файлоами. Не пишет WAL, данные идут прямиком в SSTable.
Реализуется LSM на основе time aware компакции.
https://github.com/ochi-team/ochi
#проекты
GitHub
GitHub - ochi-team/ochi: Ochi is a fast, cost-effective, Loki compatible database for logs.
Ochi is a fast, cost-effective, Loki compatible database for logs. - ochi-team/ochi
👍13