Earlier quoted context omitted.
wow, what a list! all of these are statically analyzable using a slightly hacked zig compiler and a library! https://github.com/ityonemo/clr (Btw: you can't null pointer dereference in zig without using the navigation operator which will panic on null; you can't misalign a pointer unless you use @alignCast which will also create a panic)
I can also analyse C and C++ code for such issues, while keeping using a mature languages ecosystem.
Zig – io_uring and Grand Central Dispatch std.Io implementations landed
301–310 of 315 posts
Re: Zig – io_uring and Grand Central Dispatch std.Io implementations landed
#302Earlier quoted context omitted.
> why both Mitchell Hashimoto (creator of Ghostty etc.) and Richard Feldman (of Elm fame, creator of Roc-lang) Both undoubtedly are talented programmers, but you overestimate impact and importance of these project. GitHub stars and HN posts are not very good indicator of what happens in the real world
I'm not sure why your comment is being downvoted, but it's spot on. Rust has definitely gained some ground while they're hardly any relevant products using Zig.
I mean, less is true, but “hardly” is doing a lot of work there
Re: Zig – io_uring and Grand Central Dispatch std.Io implementations landed
#303Earlier quoted context omitted.
Apologies, but your information is either outdated from lack of experience with the latest frontier models, or you don't realize the fact that 99.9% of the work you do is not novel in all capacities. Have you only used Copilot, or something? Because that's what it sounds like. Since the performance of the latest models (Opus 4.6 max-effort, gpt-5.3-Codex) is nothing short of astonishing. Real-world example: Claude is…
I’ve been making a project in zig 0.16 with Claude as a learning experiment. It’s a fairly non trivial project (BitTorrent compliant p2p downloader for model weights on top of huggingface xet) - whenever it doesn’t know the syntax or makes errors, it literally reads the standard library code to understand and fix it. The project works too!
that’s why it sounds to me like these people commenting haven’t even used these models yet.
Re: Zig – io_uring and Grand Central Dispatch std.Io implementations landed
#304Earlier quoted context omitted.
I can also analyse C and C++ code for such issues, while keeping using a mature languages ecosystem.
If you can statically analyze c for memory safety, why did pazlo bother building fil-C?
Re: Zig – io_uring and Grand Central Dispatch std.Io implementations landed
#305Earlier quoted context omitted.
If you can statically analyze c for memory safety, why did pazlo bother building fil-C?
Where did I wrote that static analysis was enough on its own?
Re: Zig – io_uring and Grand Central Dispatch std.Io implementations landed
#306It's interesting to see this land while Rust support of io_uring in a mainstream library is lagging. And not for lack of trying, its just difficult to design a safe (zero-cost) idiomatic Rust abstraction over io_uring's completion based IO.
Doesn't look like this is done either, > They are now available to tinker with, by constructing one’s application using std.Io.Evented. They should be considered experimental because there is important followup work to be done before they can be used reliably and robustly:
Re: Zig – io_uring and Grand Central Dispatch std.Io implementations landed
#307I don't want to be the negative guy, but this is news about two unfinished implementations. There is a lot of work needed for this to be considered done. For example, no networking in the GCD version yet. And as these are being implemented, the interface stops being an interface, the vtable keeps growing, and it's just the current snapshot of what's needed by the std implementations.
I think another way of thinking about this interface is: it’s kind of like an abstraction over Linux system calls and ntdll. It’s naturally gonna have a kind of subset of all the useful calls, with some wrapping. I don’t see anything wrong with this, it’s kind of how Windows forces developers to use DLL to access syscalls (the syscall numbers can change) which IMO is a good architectural decision.
Re: Zig – io_uring and Grand Central Dispatch std.Io implementations landed
#308Earlier quoted context omitted.
Where did I wrote that static analysis was enough on its own?
Can you phrase that as a direct answer to my question? Trying to learn something here. Appreciate it!
Some of those tools are static, others are dynamic, some require a special build, others are hybrid, others exist on all modern IDEs.
So it can be a mix of lint, clang tidy, VS analysis, Clion, ASan, USBsan, hardned runtimes, contracts (Frama-C), PVS, PurifyPlus, Insure++,....
Re: Zig – io_uring and Grand Central Dispatch std.Io implementations landed
#309Contrary to the neggies, I am positive in Zigs effort to iterate & improve. Right now there is no language that is good at io-uring. There are ok offerings, but nothing really has modern async joy that works with uring. Whoever hammers out a good solution here is going to have a massive leg up. Rust is amazing in so many ways but it has been quite a brutal road to trying to support io-uring ok, and efforts are still…
It’s surprising to me how much people seem to want async in low level languages. Async is very nice in Go, but the reason I reach for a language like Zig is to explicitly control those things. I’m happily writing a Zig project right now using libxev as my io_uring abstraction.
Re: Zig – io_uring and Grand Central Dispatch std.Io implementations landed
#310Earlier quoted context omitted.
These languages have origin in a different era, without Reddit, Twitter or HN to spam about them, do we cannot really compare adoption rates.
You can go into Usenet archives, and ads on digital copies from Byte, Computer Shopper, Dr. Dobbs, PC Techniques, The C Users Journal, The C/C++ Users Journal, Your Sinclair, Amiga Format, MicroHobby, Micromania, SoloProgamadores, Spooler,... And see which compiler toolchains had more ads, articles submissions, or source code listings.
What's the conversion ratio of 1 article in Dr.Dobbs to YT video or Twitter post by a dev-celebrity?