Язык Zig (канал)
https://news.ycombinator.com/item?id=47336650 > Not at all, if the team needs 30 more years they should take it. Yes, I understand that is the opinion in the Zig community. As an outsider, it seems odd to me to pick a language that I constantly need to maintain.…
> — Ни в коем случае. Если команде нужно еще 30 лет — пусть берут.
Да, я понимаю, что в сообществе Zig это норма. Но мне как человеку со стороны кажется странным выбирать язык, код на котором мне придется постоянно «чинить» и допиливать.
>> — Однако перспективы Zig 1.0 туманны, судя по форумам: самый оптимистичный прогноз на релиз, что я слышал — 2029 год.
> — Забавно, что вы видите это в мрачном свете, тогда как большинство считает это самым захватывающим событием в системном программировании прямо сейчас.
Вы меня не так поняли. Я говорил исключительно о шансах увидеть версию 1.0 в обозримом будущем.
> — Мне кажется, ваш комментарий написан с долей предвзятости (bad faith). Все крупные проекты на Zig говорят, что процесс обновления никогда не стоит во главе угла. Просто почитайте комментарии на HN или в других ветках — люди постоянно об этом спрашивают, и мейнтейнеры всегда отвечают.
Возможно, вы не слишком внимательно прочли мои слова. Это как раз та самая «защитная реакция» сообщества Zig, которая и заставила меня написать этот пост.
ВНУТРИ сообщества Zig считается нормальным, что обновления ломают код. Следовательно, это чистой воды **ошибка выжившего**: люди, использующие Zig в больших проектах, не считают это проблемой просто ПОТОМУ ЧТО ЕСЛИ БЫ ОНИ СЧИТАЛИ ЭТО ПРОБЛЕМОЙ, ОНИ БЫ НЕ ИСПОЛЬЗОВАЛИ ZIG.
Считают ли программисты «в массе своей» это проблемой — вопрос открытый, так как Zig еще не дорос до стадии общего принятия (когда на языке пишут потому, что *надо*, а не потому, что очень *хочется*).
Однако НЕВЕРНО утверждать, что отсутствие версии 1.0 дает карт-бланш на агрессивную поломку старого кода без внятных путей миграции (deprecation paths). К примеру, в Odin заменили старый модуль `os` на новый `os2`. Об этом объявили за полгода, и было вложено много сил, чтобы облегчить жизнь разработчикам: https://odin-lang.org/news/moving-towards-a-new-core-os/
В случае с C3 ломающие изменения случаются лишь раз в год, при этом стандартная библиотека проходит через долгий процесс устаревания функций перед их окончательным удалением.
Я хотел подчеркнуть, насколько это разные подходы. У зрелых языков правила еще строже, но ни C3, ни Odin еще не вышли в 1.0, и тем не менее они дорожат стабильностью, а их сообщества привыкают ожидать этого по умолчанию.
Так что поймите: когда вы говорите «это никогда не является основной проблемой», это просто классическая ошибка выжившего.
odin-lang.org
Moving Towards a New "core:os"
The rationale and transition period to moving to the new “core:os”
👍1
https://github.com/botirk38/turboquant
A Zig implementation of Google's TurboQuant vector compression library based on the paper "TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate".
#библиотеки
A Zig implementation of Google's TurboQuant vector compression library based on the paper "TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate".
#библиотеки
GitHub
GitHub - botirk38/turboquant: Library for Google's Turboquant Algorithm
Library for Google's Turboquant Algorithm. Contribute to botirk38/turboquant development by creating an account on GitHub.
⚡5
Forwarded from mak
Codeberg.org
llvm: simplifications, refactors, and make incremental work
Don't worry, this branch isn't as big as the diff makes it look! I moved several thousand lines from `src/codegen/llvm.zig` into a new file which made the diff artificially large. The first commit is basically just moving things (and removing some dead code).…
👍3
mak
llvm: simplifications, refactors, and make incremental work by mlugg
[…] I was able to make incremental compilation sort of work on the LLVM backend. It is now passing all of the incremental tests, so I have enabled them all for x86_64-linux-llvm.
I have also removed the warning which the compiler printed when using -fincremental in combination with the LLVM backend.
I have not tested this support extensively! It is possible that in practice, there are bugs when using -fincremental with the LLVM backend. If anyone encounters any, please do open an issue.
mak
zsf link
0.17 может выйти намного быстрее, как было с 0.12 -> 0.13 (тогда было за 47 дней)
https://ziglang.org/download/0.13.0/release-notes.html#LLVM-18
https://ziglang.org/download/0.13.0/release-notes.html#LLVM-18
This release of Zig upgrades to LLVM 18.1.7.
This was the primary motivation for tagging the 0.13.0 release.
✍3🤔1
Язык Zig (канал)
Photo
Иногда правда вот такое выдает.
Надо бы попробовать на следующей новости с ним перевести, может лучше, чем Google Translate/Yandex Translate/DeepL/Gemini/Kagi Translate получится...
Надо бы попробовать на следующей новости с ним перевести, может лучше, чем Google Translate/Yandex Translate/DeepL/Gemini/Kagi Translate получится...
Introducing Flint
https://github.com/zoeesilcock/flint/
Компоненты для создания собственного игрового движка.
https://ziggit.dev/t/flint-building-blocks-for-making-bespoke-game-engines/14802
#библиотеки
https://github.com/zoeesilcock/flint/
Компоненты для создания собственного игрового движка.
https://ziggit.dev/t/flint-building-blocks-for-making-bespoke-game-engines/14802
#библиотеки
GitHub
GitHub - zoeesilcock/flint: Building blocks for the game engine your game actually needs.
Building blocks for the game engine your game actually needs. - zoeesilcock/flint
👍1
Forwarded from Андрей Краевский
Андрей Краевский
https://codeberg.org/ziglang/www.ziglang.org/src/branch/release-0.16.0
Уже пишут Release notes для 0.16.0
🔥5
https://codeberg.org/ziglang/zig/issues/31421#issuecomment-12842415
Небольшой сюрприз с размером бинарника
Небольшой сюрприз с размером бинарника
Codeberg.org
unused std.Io functions are not optimized out leading to executable bloat
### Zig Version
0.16.0-dev.2682+02142a54d
### Steps to Reproduce and Observed Behavior
I am using the Linux x86_64 versions of the compilers listed at [https://ziglang.org/download/](https://ziglang.org/download/).
The file that I am compiling is simply…
0.16.0-dev.2682+02142a54d
### Steps to Reproduce and Observed Behavior
I am using the Linux x86_64 versions of the compilers listed at [https://ziglang.org/download/](https://ziglang.org/download/).
The file that I am compiling is simply…
😢1
Релиз 0.16.0
#upstream
This release features 8 months of work: changes from 244 different contributors, spread among 1183 commits.
Perhaps most notably, this release debuts I/O as an Interface, but don't sleep on the Language Changes or enhancements to the Compiler, Build System, Linker, Fuzzer, and Toolchain which are also included in this release.
#upstream
🔥12🎉2
Artifacts: versioned storage that speaks Git (раздел Under the hood)
Zig в Cloudfare:
Zig в Cloudfare:
What we did need, however, was a Git server implementation that could run on Cloudflare Workers. It needed to be small, as complete as possible, extensible (notes, LFS), and efficient. So we built one in Zig, and compiled it to Wasm.
The Cloudflare Blog
Artifacts: versioned storage that speaks Git
Give your agents, developers, and automations a home for code and data. We’ve just launched Artifacts: Git-compatible versioned storage built for agents. Create tens of millions of repos, fork from any remote, and hand off a URL to any Git client.
🔥7👍2