Live data from Hacker News

Zig 0.5.0 Release Notes

ziglang.org

11–20 of 80 posts

Re: Zig 0.5.0 Release Notes

#11
post #8

Looks like its still lacking in network support: https://github.com/ziglang/zig/issues/2007 I wonder though, does it already have socket support? that could be a stopgap for me. Edit, looks like it doesnt have sockets either: https://github.com/ziglang/zig/issues/1271 Edit 2, looks like it does: https://github.com/ziglang/zig/blob/5026db1d/lib/std/net.zig... https://github.com/ziglang/zig/blob/5026db1d/lib/std/os.zig…

You can use any c libraries networking or socket implementations in zig but I think thats as far as it goes at the moment.

Re: Zig 0.5.0 Release Notes

#12
I might be alone with this thought: Zig seemed really appealing in the beginning, but now I dislike it more and more with each release. It does not seem to keep the simplicity of C at all, it has lots of peculiarities, and it is becoming more and more bloated. I would consider it a C++ replacement at this point, not a C replacement due to its increasing complexity. One of Zig's philosophy was simplicity[1], but I do not think it applies now.

[1] https://github.com/ziglang/zig/wiki/Why-Zig-When-There-is-Al...

Re: Zig 0.5.0 Release Notes

#13
post #7

Zig looks like a really interesting language. I've been keeping my eye on it, waiting excitedly for the 1.x milestone. Out of curiosity, what's the state of the world regarding Zig's stdlib? While the base language docs seem like they're in a pretty good state, the stdlib is still largely undocumented. Is this because it's unstable? Or is the lack of docs there due to lack of time/resources? Would love to get some cl…

https://github.com/ziglang/zig/wiki/FAQ#where-is-the-documen...

Re: Zig 0.5.0 Release Notes

#14
post #7

Zig looks like a really interesting language. I've been keeping my eye on it, waiting excitedly for the 1.x milestone. Out of curiosity, what's the state of the world regarding Zig's stdlib? While the base language docs seem like they're in a pretty good state, the stdlib is still largely undocumented. Is this because it's unstable? Or is the lack of docs there due to lack of time/resources? Would love to get some cl…

https://github.com/ziglang/zig/wiki/FAQ#where-is-the-documen...

Yeah, I always check that. The part that says "There is no stdlib documentation yet, but it is planned for the next release" links to a 2015 github issue. That's why I was wondering if it's still a priority or if there were still high level concerns about stability/curation/etc preventing docs from being written.

Re: Zig 0.5.0 Release Notes

#15
post #8

Looks like its still lacking in network support: https://github.com/ziglang/zig/issues/2007 I wonder though, does it already have socket support? that could be a stopgap for me. Edit, looks like it doesnt have sockets either: https://github.com/ziglang/zig/issues/1271 Edit 2, looks like it does: https://github.com/ziglang/zig/blob/5026db1d/lib/std/net.zig... https://github.com/ziglang/zig/blob/5026db1d/lib/std/os.zig…

You can use any c libraries networking or socket implementations in zig but I think thats as far as it goes at the moment.

zig's C-interoperability is second to none and using libcurl works great for networking.

example: https://github.com/donpdonp/zootdeck/blob/master/src/net.zig

Re: Zig 0.5.0 Release Notes

#16
post #8

Looks like its still lacking in network support: https://github.com/ziglang/zig/issues/2007 I wonder though, does it already have socket support? that could be a stopgap for me. Edit, looks like it doesnt have sockets either: https://github.com/ziglang/zig/issues/1271 Edit 2, looks like it does: https://github.com/ziglang/zig/blob/5026db1d/lib/std/net.zig... https://github.com/ziglang/zig/blob/5026db1d/lib/std/os.zig…

You can use any c libraries networking or socket implementations in zig but I think thats as far as it goes at the moment.

Can you though? I cant get cURL to work:

https://github.com/ziglang/zig/issues/988

Re: Zig 0.5.0 Release Notes

#17
post #14

Earlier quoted context omitted.

https://github.com/ziglang/zig/wiki/FAQ#where-is-the-documen...

Yeah, I always check that. The part that says "There is no stdlib documentation yet, but it is planned for the next release" links to a 2015 github issue. That's why I was wondering if it's still a priority or if there were still high level concerns about stability/curation/etc preventing docs from being written.

It's an unwillingness to implement documentation generation twice. Why do it in the c++ compiler when the goal is to become self-hosted?

I think there's a good answer to this which is, "because people really, really need documentation." So I am kicking around ideas of how this can be done without too much duplicate effort.

Re: Zig 0.5.0 Release Notes

#18

I might be alone with this thought: Zig seemed really appealing in the beginning, but now I dislike it more and more with each release. It does not seem to keep the simplicity of C at all, it has lots of peculiarities, and it is becoming more and more bloated. I would consider it a C++ replacement at this point, not a C replacement due to its increasing complexity. One of Zig's philosophy was simplicity[1], but I do…

Can you give examples of the peculiarities? I write cpp all day and zig is a nice change for me because of how simple it is to me

Re: Zig 0.5.0 Release Notes

#19

I might be alone with this thought: Zig seemed really appealing in the beginning, but now I dislike it more and more with each release. It does not seem to keep the simplicity of C at all, it has lots of peculiarities, and it is becoming more and more bloated. I would consider it a C++ replacement at this point, not a C replacement due to its increasing complexity. One of Zig's philosophy was simplicity[1], but I do…

It's actually become simpler and slimmer, with fewer peculiarities!

Re: Zig 0.5.0 Release Notes

#20

I might be alone with this thought: Zig seemed really appealing in the beginning, but now I dislike it more and more with each release. It does not seem to keep the simplicity of C at all, it has lots of peculiarities, and it is becoming more and more bloated. I would consider it a C++ replacement at this point, not a C replacement due to its increasing complexity. One of Zig's philosophy was simplicity[1], but I do…

It's actually become simpler and slimmer, with fewer peculiarities!

Could you follow up with some examples? Seems to contradict the parent but neither comment provides examples.
Post reply on HN