Язык Zig (канал)
хотяяя... впринципе норм, просто настройки будут у них разные полюбому, но это можно и самому конфигурировать const MyRootAllocator = switch (builtin.mode) { .Debug => DebugAllocator(.{ .stack_trace_frames = 10 }), .ReleaseSafe, .ReleaseFast => FastAllocator(.{…
ага:
https://github.com/ziglang/zig/commit/05d05083cdaee6afe7e0e2772804e7eeb75afea1
* Добавили новый SmpAllocator для ReleaseFast
* Убрали коммент из WasmAllocator, гле было написано что планируют встроить его в GeneralPurposeAllocator, отмена планов
https://github.com/ziglang/zig/commit/05d05083cdaee6afe7e0e2772804e7eeb75afea1
* Добавили новый SmpAllocator для ReleaseFast
* Убрали коммент из WasmAllocator, гле было написано что планируют встроить его в GeneralPurposeAllocator, отмена планов
GitHub
add std.heap.SmpAllocator · ziglang/zig@05d0508
An allocator intended to be used in -OReleaseFast mode when
multi-threading is enabled.
multi-threading is enabled.
Thanks to a colossal amount of work by Jacob Young, the x86_64 backend of Zig is now passing 101% of the behavior tests compared to the LLVM backend.
Or perhaps put another way, the LLVM backend is passing 99% of the behavior tests compared to the x86_64 backend 😉
Still a few more issues to tackle before it can be made the default, however.
https://mastodon.social/@andrewrk/113971366018364079
#блоги #upstream
Mastodon
Andrew Kelley (@andrewrk@mastodon.social)
Thanks to a colossal amount of work by Jacob Young, the x86_64 backend of Zig is now passing 101% of the behavior tests compared to the LLVM backend.
Or perhaps put another way, the LLVM backend is passing 99% of the behavior tests compared to the x86_64…
Or perhaps put another way, the LLVM backend is passing 99% of the behavior tests compared to the x86_64…
👍9❤3
Язык Zig (канал)
Borrow checker для Zig (очень простой и для фана) Analyzing AIR turned out to be a good decision, and from this project I conclude that Zig AIR is a very good target for many classes of static analysis on Zig code. This CLR analyzer has been instrumented…
ещё один "для фана", с поддержкой async в Zig играется:
https://github.com/devknoll/zig/pull/1
Его версия отличается от последней версии async, она больше похожа на старый async где LLVM coroutines использовались
https://github.com/devknoll/zig/pull/1
Его версия отличается от последней версии async, она больше похожа на старый async где LLVM coroutines использовались
Modernize the old async experiment.
Lowering is done using LLVM's Switched-Resume lowering, which allows Zig to fully manage memory, and avoid dynamic allocations. Similar to the old experiment, it is based on a runtime alloca, allowing calls and callees to be lowered independently.
GitHub
Bring back async by devknoll · Pull Request #1 · devknoll/zig
Modernize the old async experiment.
Lowering is done using LLVM's Switched-Resume lowering, which allows Zig to fully manage memory, and avoid dynamic allocations. Similar to the old experi...
Lowering is done using LLVM's Switched-Resume lowering, which allows Zig to fully manage memory, and avoid dynamic allocations. Similar to the old experi...
Forwarded from Zig reporter
🔥6
Zig reporter
Ziglang News 📰: Good News! 0.14.0 Delayed read
Опять отложили (до 3 марта), зато мб x86_64 backend допилить успеют до момента, когда его можно в Debug сборках по умолчанию использовать (в Github как раз PR лежит, где почти все фичи добили, и остались ток фиксы мискомпиляций как я понял)
#upstream #блоги
#upstream #блоги
❤9
Мини-пример как создать Python расширение на Zig:
https://github.com/BratishkaErik/python-zig-extension-example
https://github.com/BratishkaErik/python-zig-extension-example
GitHub
GitHub - BratishkaErik/python-zig-extension-example: Example on how to build and test Python extension written in Zig
Example on how to build and test Python extension written in Zig - BratishkaErik/python-zig-extension-example
👍3
Ещё одна библиотека для async I/O:
https://github.com/mookums/tardy
Автор использует его в своём zzz фреймворке (для HTTP сервера), он планирует ещё сделать HTTP клиент и пилит PostgreSQL клиент, так что будет своя экосистема что-то типа аналогов aiohttp + asyncpg из Python
#библиотеки
https://github.com/mookums/tardy
Автор использует его в своём zzz фреймворке (для HTTP сервера), он планирует ещё сделать HTTP клиент и пилит PostgreSQL клиент, так что будет своя экосистема что-то типа аналогов aiohttp + asyncpg из Python
#библиотеки
GitHub
GitHub - tardy-org/tardy: An asynchronous runtime for writing applications and services. Supports io_uring, epoll, kqueue, and…
An asynchronous runtime for writing applications and services. Supports io_uring, epoll, kqueue, and poll for I/O. - GitHub - tardy-org/tardy: An asynchronous runtime for writing applications and ...
🔥5👍1🤯1
Язык Zig (канал)
Ещё одна библиотека для async I/O: https://github.com/mookums/tardy Автор использует его в своём zzz фреймворке (для HTTP сервера), он планирует ещё сделать HTTP клиент и пилит PostgreSQL клиент, так что будет своя экосистема что-то типа аналогов aiohttp…
с дискорда:
working on a little something cool to enrich the tardy ecosystem 😊 it handles all I/O through the runtime, preventing the blocking that other libraries cause.
👍3🐳1
Спойлер с Zulip:
I just took a shower and I have an idea for how to get async await, and have them be actually good
🙏7🔥2🤔2🤯2🐳1
Язык Zig (канал)
Релиз 0.14.0, но пока что архивы не сгенерировались
Только-только архивы собрались, теперь release notes ждать (но уже можете с сайта скачать, они в master разделе)
👍6🐳1
Язык Zig (канал)
0.13 релиз! Коммит есть, но на сайте и в GitHub Releases пока нету... #upstream
Выпуск 0.14.0!
https://ziglang.org/download/0.14.0/release-notes.html
#upstream
потом мб наберу на Opennet новость
https://ziglang.org/download/0.14.0/release-notes.html
#upstream
потом мб наберу на Opennet новость
👍10🎉6⚡1🐳1
Язык Zig (канал)
с дискорда: working on a little something cool to enrich the tardy ecosystem 😊 it handles all I/O through the runtime, preventing the blocking that other libraries cause.
GitHub
GitHub - tardy-org/sqlt: A SQL library written in Zig meant for use with the Tardy runtime.
A SQL library written in Zig meant for use with the Tardy runtime. - tardy-org/sqlt
🐳1
This media is not supported in your browser
VIEW IN TELEGRAM
JetBrains что-то мутят с поддержкой Zig в Fleet...
https://plugins.jetbrains.com/plugin/26070-zig
Плагин новый (с декабря), скаичаанийй пока что мало
https://plugins.jetbrains.com/plugin/26070-zig
Плагин новый (с декабря), скаичаанийй пока что мало
👍6🤩2🐳1
Язык Zig (канал)
Спойлер с Zulip: I just took a shower and I have an idea for how to get async await, and have them be actually good
эксперимент с async/await в стандартной библиотеке вместо самого языка:
https://github.com/ziglang/zig/commits/async-await-demo/
https://github.com/ziglang/zig/commits/async-await-demo/
GitHub
Commits · ziglang/zig
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. - Commits · ziglang/zig
👀7👍3
Язык Zig (канал)
эксперимент с async/await в стандартной библиотеке вместо самого языка: https://github.com/ziglang/zig/commits/async-await-demo/
...и низкоуровневые куски в самом языке:
https://github.com/ziglang/zig/issues/23446
т.е. await будут в библиотеке, а suspend/resume в языке, так можно будет другие await библиотеки использовать
https://github.com/ziglang/zig/issues/23446
т.е. await будут в библиотеке, а suspend/resume в языке, так можно будет другие await библиотеки использовать
GitHub
Proposal: stackless coroutines as low-level primitives · Issue #23446 · ziglang/zig
This proposal assumes the existence of #23367. Background At the time of writing, @andrewrk and @jacobly0 are exploring the idea of implementing async/await in userland, based on the new Io interfa...
👍6🙏2🔥1
Язык Zig (канал)
https://www.twitch.tv/andrewrok Стрим, merging pull requests (5 минут и полностью начнется).
аааа, я с самого начала смотрел, а он уже 30 минут идет, сорри стрим уже наяался оказывается