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
Язык Zig (канал)
Artifacts: versioned storage that speaks Git (раздел Under the hood) 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)…
Why did we use Zig? Three reasons:
1. The entire git protocol engine is written in pure Zig (no libc), compiled to a ~100KB WASM binary (with room for optimization!). It implements SHA-1, zlib inflate/deflate, delta encoding/decoding, pack parsing, and the full git smart HTTP protocol — all from scratch, with zero external dependencies other than the standard library.
2. Zig gives us manual control over memory allocation which is important in constrained environments like Durable Objects. The Zig Build System lets us easily share code between the WASM runtime (production) and native builds (testing against libgit2 for correctness verification).
3. The WASM module communicates with the JS host via a thin callback interface: 11 host-imported functions for storage operations (host_get_object, host_put_object, etc.) and one for streaming output (host_emit_bytes). The WASM side is fully testable in isolation.
Under the hood, Artifacts also uses R2 (for snapshots) and KV (for tracking auth tokens):
❤5👍3