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 **build…
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 **build…
👍4❤2🤗1
[RU] Язык 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…
[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