Язык Zig (канал)
После обновления NCDU с 0.14-0.15 на 0.16 решил проверить размеры бинарника: https://xn--r1a.website/ziglang_en/161590 -Dtarget=x86_64-linux-gnu -Dcpu= x86_64_v4 0.16.0: Debug: 17846221 (18M) Debug + Dstrip: 4702669 (4,7M) ReleaseSafe: 4598512 (4,6M) ReleaseSafe…
Анализ от Gemini на Python
(потом более нормальные сделаю)
(потом более нормальные сделаю)
Большое интервью с Эндрю:
https://www.youtube.com/watch?v=iqddnwKF8HQ
https://xn--r1a.website/ziglang_ru/66141
https://www.youtube.com/watch?v=iqddnwKF8HQ
https://xn--r1a.website/ziglang_ru/66141
YouTube
Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains
Andrew Kelley quit his job in 2018 to build a programming language. Eight years later, Zig powers Ghostty, TigerBeetle and Uber's cross-compilation. It's top 5 most admired on Stack Overflow. There's just one thing missing: 1.0. Andrew Kelley explains why.…
👍16🔥7
Forwarded from Андрей Краевский
Хорошие новости. Команда zls (techatrix) и zig core team пообщались как сделать так чтобы zls мог работать и дальше. https://codeberg.org/ziglang/zig/issues/35538
Codeberg.org
build server protocol
Followup from #35428.
There is already https://github.com/ziglang/zig/issues/615 to track serving Compilation information. This is for stuff like type information, looking up definitions, refactoring, etc.
By contrast, this issue is to implement the…
There is already https://github.com/ziglang/zig/issues/615 to track serving Compilation information. This is for stuff like type information, looking up definitions, refactoring, etc.
By contrast, this issue is to implement the…
👍4❤1🤗1
Язык Zig (канал)
Я так понял это чудо строится ПОВЕРХ Zig, вот он, наш ответ C++... Zig+-
Тот ZigC заглох, зато Zig++ появился:
https://github.com/nktkt/zigpp
https://github.com/nktkt/zigpp-design-draft
Как ранний C++, который транслировался в Си, в этом случае Zig++ транслируется в Zig
https://github.com/nktkt/zigpp
https://github.com/nktkt/zigpp-design-draft
Как ранний C++, который транслировался в Си, в этом случае Zig++ транслируется в Zig
GitHub
GitHub - nktkt/zigpp: Zig++: research-stage frontend compiler that lowers .zpp source (Zig + traits, RAII, ownership markers, effect…
Zig++: research-stage frontend compiler that lowers .zpp source (Zig + traits, RAII, ownership markers, effect annotations) into plain .zig - nktkt/zigpp
🤔7👎2❤1😁1🐳1
Библиотека для детерминированного тестирования 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…
Язык 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🤯1
Язык 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
🤯2❤1🤔1