←back to thread

Open-source Zig book

(www.zigbook.net)
692 points rudedogg | 1 comments | | HN request time: 0.201s | source
Show context
shuraman7 ◴[] No.45948508[source]
It's really hard to believe this isn't AI generated, but today I was trying to use the HTTP server from std after the 0.15 changes, couldn't figure out how it's supposed to work until I've searched repos in Github. LLM's couldn't figure it out as well, they were stuck in a loop of changing/breaking things even further until they arrived at the solution of using the deprecated way. so I guess this is actually handwritten which is amazing because it looks like the best resource I've seen up until now for Zig
replies(2): >>45948572 #>>45948933 #
blks ◴[] No.45948933[source]
> It's really hard to believe this isn't AI generated

Case of a person who is relying on LLMs so much he cannot imagine doing something big by themselves.

replies(1): >>45948985 #
shuraman7 ◴[] No.45948985[source]
it's not only the size - it was pushed all at once, anonymously, using text that highly resembles that of an AI. I still think that some of the text is AI generated. perhaps not the code, but the wording of the text just reeks of AI
replies(2): >>45949190 #>>45950261 #
BlackjackCF ◴[] No.45949190[source]
Can you provide some examples where the text reeks of AI?
replies(3): >>45949233 #>>45950095 #>>45950142 #
xeonmc ◴[] No.45950142[source]
https://www.zigbook.net/chapters/45__text-formatting-and-uni...

The repetitiveness of the shell commands (and using zig build-exe instead of zig run when the samples consist of short snippets), the filler bullet points and section organization that fail to convey any actual conceptual structure. And ultimately throughout the book the general style of thought processes lacks any of the zig community’s cultural anachronisms.

If you take a look at the repository you’ll also notice baffling tech choices not justified by the author that runs counter against the zig ethos.

(Edit: the build system chapter is an even worse offender in meaningless cognitively-cluttering headings and flowcharts, it’s almost certainly entirely hallucinated, there is just an absurd degree of unziglikeness everywhere: https://www.zigbook.net/chapters/26__build-system-advanced-t... -- What’s with the completely irrelevant flowchart of building the zig compliler? What even is the point of module-graph.txt? And icing on the cake in the “Vendoring vs Registry Dependencies” section.)

replies(1): >>45952518 #
1. cowsandmilk ◴[] No.45952518[source]
The repetitiveness suggests copying and pasting, not an LLM. I actually find LLMs unlikely to do this.