Язык Zig (канал)
174 subscribers
26 photos
3 videos
6 files
239 links
Download Telegram
https://zighelp.org/
https://github.com/zighelp/zighelp/
Форк ziglearn.org, который хочет быть чуть более активным (посмотрим, насколько живой, может даже старый перевод ziglearn.org возродим и в описании чата заменим ссылку)
🔥2
Talk: Introducing Ghostty and Some Useful Zig Patterns
by Mitchell Hashimoto
Текстовая версия https://youtube.com/watch?v=l_qY2p0OH9A (без последней части с ответами на вопросы)
https://mitchellh.com/writing/ghostty-and-useful-zig-patterns
#блоги
1
Язык Zig (канал)
https://github.com/ziglang/zig/issues/17115#issuecomment-1713507993 https://console.algora.io/bounties/clmeoi6b80006mm0flsx8imjl 5_000 баксов от Wasmer за поддержку WASIX в Zig!
Alright. @kristoff-it and I took a break from working on our other tasks today to address this issue, and in fact we wrote a blog post about it.
As a reminder, the Zig issue tracker is not a platform for free speech, for discussing bug bounties, for discussing other people's reputations, or for archiving Internet history. It is only, exclusively, and for no other purpose than for working on the Zig compiler and related tools. Any content that is not doing that will be removed, and any users who I subjectively predict will create more of such content in the future will be blocked.
Let us have no more discussion of anything in this topic other than WASIX and its technical merits, or lackthereof.
https://ziglang.org/news/bounties-damage-open-source-projects/
https://xn--r1a.website/iv?url=https%3A%2F%2Fziglang.org%2Fnews%2Fbounties-damage-open-source-projects%2F&rhash=587ae0a377701a
https://github.com/ziglang/zig/issues/17115#issuecomment-1720088634
#upstream
Ziglings мигрируют с GitHub на Codeberg:
* старый репозиторий https://github.com/ratfactor/ziglings
* новый репозиторий https://codeberg.org/ziglings/exercises/
* ещё есть https://ziglings.org/, который перенаправляет на ссылку выше.

Анонс на https://github.com/ratfactor/ziglings/issues/360, объяснение причин на https://ratfactor.com/leaving-github (вкратце — новое требование обязать включить 2FA некоторым аккаунтам было последней каплей для автора)
🔥4
https://www.twitch.tv/andrewrok/

> in about 1.5 hours from now I'll go live to do a big merge train. choo choo! all aboard the merge train!! 🚄 🚃 🚃 🚃 🔥

ну вы поняли
#стримы #upstream
Язык Zig (канал)
https://www.twitch.tv/andrewrok/ > in about 1.5 hours from now I'll go live to do a big merge train. choo choo! all aboard the merge train!! 🚄 🚃 🚃 🚃 🔥 ну вы поняли #стримы #upstream
остался 1 час.. бомбите пулл реувестами пока не поздно)))) (шучу, ну и походу они пока что в таком графике будут работать — что-то жирное для инкрементальной компиляции => немного отлагают пулл реквесты)
Дожили???
https://github.com/ZigC-Lang/zigc

ZigC is a C-like language with a lot of modern concepts introduced in Zig language, and getting rid of a lot of seemingly unnecessary features from C/C++ and embarrassing peculiarities from Zig syntax.
In result, ZigC is easier than C++/Rust, faster than Go/Java, safer than C/C++, familiar than Rust/Zig, smaller than Rust/C++, and more machine friendly than C/C++/Rust/Go.

...блабла...

...блабла...

ZigC corrected Zig syntax as follows:
* Back to C like syntax from Pascal-like variable, function declaration.
* JSON like struct iniatialization.
* Array bracket [] for array initialization.
* Simple for loops, removing crapy while/for syntax.
* Semicolon in struct/union, instead of comma.
* Back to switch/case/default.
* Non-null, non-error 'quotation, instead of |capture|.
* Error sets merge A|B, not A||B.
* Array concat + and mult *, not ++ and **.
* anyframe(return_type) not anyframe->return_type.
* Public and static.
* Non-public main.
* ! operator, not try ...
* catch (null), instead of 'orelse'.

В репозитории только примеры кода кстати.
🤨3
Язык Zig (канал)
Дожили??? https://github.com/ZigC-Lang/zigc ZigC is a C-like language with a lot of modern concepts introduced in Zig language, and getting rid of a lot of seemingly unnecessary features from C/C++ and embarrassing peculiarities from Zig syntax. In result…
https://github.com/ZigC-Lang/zigc/blob/102b162a30626d0d7c1885da1acdd44d9e7c125f/15.%20ZigC%20Syntax%20Principle.md

Followings are how ZigC syntax is formulated:
* shoul be most comfortable for C programmers.
should accommodate all modern syntax introduced by Zig, but in more C-like way.
* should take simplist form, comparing among other modern languages.
* should guarrantee zero overhead on Zig, which also guarrantees zero overhead on C.
* may take away unnecessary details from Zig, if possible.
* may compromise rigid rules, if it helps programmer's happyness.
* may slightly sacrifice compile time, if it helps programmer's sanity.
Debugging a Zig Test Failure
https://zinascii.com/2023/debugging-a-zig-test-failure.html
Про исправление ошибки в стандартной библиотеки Zig для платформы Illumos (если точнее, дистрибутив OmniOS). Много разьяснений и мыслей (ну или воды, для кого как) про отладку, DTrace и т.д.

#блоги