from zig-gamedev discrod server:
https://github.com/Srekel/tides-of-revival
И мотивация:
https://github.com/Srekel/tides-of-revival
hey, not sure if you have heard or not but we've decided to move the next version of Tides from Zig to Jai. Our current release should happen in January I hope, or maybe if I cram it in before the end of the year (mostly a matter of how much polish I want to give it). I can still maintain zflecs, at least for a while (we'll be using flecs in the future as well and I have an interest in keeping tabs on making sure there are no weird language-spanning binding issues 🙂 )
We are still on Zig 0.14.1 though and an older version of zflecs, so I'm not able to actually update zflecs or test PRs anymore, such as this one.
https://github.com/zig-gamedev/zflecs/pull/31
We are using a number of libraries from zig-gamedev so hopefully the Tides repo will remain a useful "how do I actually use zaudio in practice" reference for a good while 🙂
И мотивация:
and we have basically come to the realization that Zig isn't great for game development. I mean it's definitely better than C and C++ in various ways, but also not in other ways. At the start it looked like it was going to be more suited for gamedev but it has aligned more with lowlevel/systems programming. So maybe fine for lower level engine programming or libraries, but less so for the more artistic and iterative parts of game development. And now there are two C++ replacement languages that are basically designed for game development - Odin and Jai - and of those Jai speaks more to us. So long term we think it's a choice that will bring us more speed and more joy.
GitHub
GitHub - Srekel/tides-of-revival
Contribute to Srekel/tides-of-revival development by creating an account on GitHub.
❤1
GitHub
RFC: Improved State Machine Codegen by folkertdev · Pull Request #3720 · rust-lang/rfcs
View all comments
Rendered
This RFC adds loop match:
a loop and match can be fused into a loop match <scrutinee> { /* ... */ }
a loop match can be targeted by a continue <valu...
Rendered
This RFC adds loop match:
a loop and match can be fused into a loop match <scrutinee> { /* ... */ }
a loop match can be targeted by a continue <valu...
RFC: Improved State Machine Codegen
Не знал, но в Rust тоже могут добавить
Не знал, но в Rust тоже могут добавить
labeled switch:Prior art
This idea is taken fairly directly from zig.
👍1🤔1👀1😨1
refAllDeclsRecursive удалён (после стольких лет нелюбви от Эндрю)
https://codeberg.org/ziglang/zig/commit/790d28d6cd9029805af857d56645a6ce191bfe91
#upstream
https://codeberg.org/ziglang/zig/commit/790d28d6cd9029805af857d56645a6ce191bfe91
#upstream
🫡3👨💻1
Furthermore, when this work is combined with the recent std.Io changes, there is potential for users to seamlessly control how libc performs I/O - for example forcing all calls toreadandwriteto participate in an io_uring event loop, even though that code was not written with such use case in mind. Or, resource leak detection could be enabled for third-party C code. For now this is only a vaporware idea which has not been experimented with, but the idea intrigues me.
https://ziglang.org/devlog/2026/#2026-01-31
#upstream
👍3
Язык Zig (канал)
Furthermore, when this work is combined with the recent std.Io changes, there is potential for users to seamlessly control how libc performs I/O - for example forcing all calls to read and write to participate in an io_uring event loop, even though that code…
The immediate goal is to replace all the C code we bundle from musl, wasi-libc, and MinGW-w64 with Zig code. So if you cross-compile for those libcs with static linking, you get Zig's libc which is API/ABI-compatible. In the future, it's entirely possible that we could expand the scope of Zig's libc to also be API/ABI-compatible with the statically-linked libcs from FreeBSD, NetBSD, etc. (We don't currently bundle the static C code for those.)
https://lobste.rs/s/pfhei9/zig_libc#c_pl9sub
👍4🔥1
Forwarded from Zig reporter
❤2🤔1
👍12