News for hackers. Stuff that matters.
Re:62 chapter open-source Zig book by rudedogg on Monday November 17, 2025 @05:42AM (#45952436)
I submitted this and unfortunately it is likely AI generated. The authors github history suggests it at the very least, along with seemingly misunderstanding a reference to a Zig language feature (labeled blocks - https://zig.guide/language-basics/labelled-blocks/) in the project issues (https://github.com/zigbook/zigbook/issues/4).

I’m not sure how much value is to be had here, and it’s unfortunate the author wasn’t honest about how it was created.

I wish I wouldn’t have submitted this so quickly but I was excited about the new resource and the chapters I dug into looked good and accurate.

I worry about whether this will be maintained, if there are hallucinations, and if it’s worth investing time into.

Re:62 chapter open-source Zig book by bool3max on Monday November 17, 2025 @06:35AM (#45952728)
We really are in the trenches. How is this garbage #1 on the front page of *HN* right now?

Even if it was totally legitimate, the "landing page" (its design) and the headline ("Learning Zig is not just about adding a language to your resume. It is about fundamentally changing how you think about software."?????) should discredit it immediately.

Re:62 chapter open-source Zig book by spacechild1 on Monday November 17, 2025 @06:58AM (#45952849)
Yes, this should immediately set off all BS alarms.
Re:62 chapter open-source Zig book by frakt0x90 on Monday November 17, 2025 @09:49AM (#45954061)
I imagine a lot of people didn't even click. They see free Zig materials and upvote.
Re:62 chapter open-source Zig book by nurettin on Monday November 17, 2025 @02:51PM (#45957480)
When was the front page of HN that impressive anyways? It has always been latest fad and the first to comment "the right thing to say" gets rewarded with fake internet points.
Re:62 chapter open-source Zig book by johnfn on Monday November 17, 2025 @07:03PM (#45959906)
I made a comment about it obviously being AI generated, and my comment[1] was quickly downvoted, and there were comments explaining how I was obviously incorrect ("Clearly your perception of what is AI generated is wrong."). My comment was pushed under many comments saying the book was a fantastic resource. Extremely strange.

https://news.ycombinator.com/item?id=45948608

Re:62 chapter open-source Zig book by cryptocod3 on Monday November 17, 2025 @06:10AM (#45952581)
> if there are hallucinations

Plenty. I assumed that the code examples had been cleaned up manually, so instead I looked at a few random "Caveats, alternatives, edge cases" sections. These contain errors typically made by LLMs, such as suggesting to use features that doesn't exist (std.mem.terminated), are non-public (argvToScriptCommandLineWindows) or removed (std.BoundedArray). These sections also surfaces irrelevant stdlib and compiler implementation details.

Re:62 chapter open-source Zig book by PaulRobinson on Monday November 17, 2025 @06:38AM (#45952750)
This looks like more data towards the "LLMs were involved" side of the argument, but as my other comment pointed out, that might not be an issue.

We're used to errata and fixing up stuff produced by humans, so if we can fix this resource, it might actually be valuable and more useful than anything that existed before it. Maybe.

One of my things with AI is that if we assume it is there to replace humans, we are always going to find it disappointing. If we use it as a tool to augment, we might find it very useful.

A colleague used to describe it (long before GenAI, when we were talking about technology automation more generally) as following: "we're not trying to build a super intelligent killer robot to replace Deidre in accounts. Deidre knows things. We just want to give her better tools".

So, it seems like this needs some editing, but it still has value if we want it to have value. I'd rather this was fixed than thrown away (I'm biased, I want to learn systems programming in zig and want a good resource to do so), and yes the author should have been more upfront about it, and asked for reviewers, but we have it now. What to do?

Re:62 chapter open-source Zig book by necklesspen on Monday November 17, 2025 @07:00AM (#45952863)
There's a difference between the author being more upfront about it and straight-up lying on multiple locations that zero AI is involved. It's stated on the landing page, documentation and GitHub - and there might be more locations I havent' seen.

Personally, I would want no involvement in a project where the maintainer is this manipulative and I would find it a tragedy if any people contributed to their project.

Re:62 chapter open-source Zig book by spacechild1 on Monday November 17, 2025 @06:57AM (#45952843)
> and yes the author should have been more upfront about it

They should not have lied about. That's not someone I would want to trust and support. There's probably a good reason why they decided to stay anonymous.

Re:62 chapter open-source Zig book by nsagent on Monday November 17, 2025 @07:39AM (#45953055)
I literally just came across this resource a couple of days ago and was going to go through it this week as a way to get up to speed on Zig. Glad this popped up on HN so I can avoid the AI hallucinations steering me off track.
Re:62 chapter open-source Zig book by ayoisaiah on Monday November 17, 2025 @07:56AM (#45953161)
I also submitted it to Reddit before realizing it largely was AI generated
Re:62 chapter open-source Zig book by lenkite on Monday November 17, 2025 @06:37AM (#45952742)
Re:62 chapter open-source Zig book by aleksi on Tuesday November 18, 2025 @01:00AM (#45961859)
Aaaand it's gone!
Re:62 chapter open-source Zig book by summerborn on Tuesday November 18, 2025 @01:01AM (#45961862)
Apakah Tokopedia punya wa

Tokopedia menyediakan layanan melalui nomor WhatsApp resmi untuk bantuan dan layanan pelanggan, dengan nomor seperti 0855 3015 777 untuk Tokopedia Care dan untuk Tokopedia Seller, Layanan ini membantu pengguna dengan pertanyaan atau masalah terkait transaksi dan penggunaan platform.

Re:62 chapter open-source Zig book by summerborn on Tuesday November 18, 2025 @01:01AM (#45961863)
Berapa nomor wa tokopedia Anda bisa menghubungi layanan Whatsapp resmi Tokopedia melalui, (WA)+62 855-3015-777 Layanan ini tersedia untuk membantu Anda dengan pertanyaan, keluhan, atau bantuan lain terkait pengalaman berbelanja di Tokopedia.
Re:62 chapter open-source Zig book by summerborn on Tuesday November 18, 2025 @01:00AM (#45961861)
Berapa wa tokopedia Anda bisa menghubungi layanan Whatsapp resmi Tokopedia melalui, (WA)+62 855-3015-777 Layanan ini tersedia untuk membantu Anda dengan pertanyaan, keluhan, atau bantuan lain terkait pengalaman berbelanja di Tokopedia.
Re:62 chapter open-source Zig book by summerborn on Tuesday November 18, 2025 @01:02AM (#45961867)
Apakah Tokopedia punya wa Tokopedia punya nomor WhatsApp aktif Berikut nomor Tokopedia +62 855-3015-777 Jika ada masalah Terkait akun Tokopedia bisa menghubungi nomor
Re:62 chapter open-source Zig book by summerborn on Tuesday November 18, 2025 @01:01AM (#45961866)
Cara hubungi wa tokopedia Tokopedia punya nomor WhatsApp aktif Berikut nomor Tokopedia +62 855-3015-777 Jika ada masalah Terkait akun Tokopedia bisa menghubungi nomor
Re:62 chapter open-source Zig book by kordlessagain on Tuesday November 18, 2025 @10:36AM (#45967626)
> The Zigbook intentionally contains no AI-generated content—it is hand-written, carefully curated, and continuously updated to reflect the latest language features and best practices.

From the readme.

Re:62 chapter open-source Zig book by qouteall on Monday November 17, 2025 @07:28AM (#45953014)
AI is really great at creating superficial signals. And most people just judge things by superficial signal.
Re:62 chapter open-source Zig book by CraftingLinks on Monday November 17, 2025 @07:02AM (#45952869)
I looked into that project issue your referencing. There is absolutely zero mentioning of zig labeled blocks in that exchange. There is no misunderstanding or confusion whatsoever.
Re:62 chapter open-source Zig book by jasonjmcghee on Monday November 17, 2025 @09:37AM (#45953954)
It's a formatting bug with zig labeled blocks and the response was a screenshot of code without one, saying (paraphrasing) lgtm it must be on your end.

See the first screenshot in the exchange with newlines breaking up the label and block - and maybe this for proper formatting https://zig.guide/language-basics/labelled-blocks/

Re:62 chapter open-source Zig book by Wowfunhappy on Monday November 17, 2025 @06:06AM (#45952561)
Are you sure? Right on https://www.zigbook.net/chapters/00__zigbook_introduction it says:

> The Zigbook intentionally contains no AI-generated content—it is hand-written, carefully curated, and continuously updated to reflect the latest language features and best practices.

The author could of course be lying. But why would you use AI and then very explicitly call out that you’re not using AI?

Re:62 chapter open-source Zig book by rudedogg on Monday November 17, 2025 @06:24AM (#45952661)
> Are you sure?

There are too many things off about the origin and author to not be suspicious of it. I’m not sure what the motivation was, but it seems likely. I do think they used the Zig source code heavily, and put together a pipeline of some sort feeding relevant context into the LLM, or maybe just codex or w/e instructed to read in the source.

It seems like it had to take quite a bit of effort to make, and is interesting on its own. And I would trust it more if I knew how it was made (LLMs or not).

As another suspicious data point see this issue by the author: https://github.com/microsoft/vscode/issues/272725

Edit: https://news.ycombinator.com/item?id=45952581 found some concrete issues

Re:62 chapter open-source Zig book by UpsideDownRide on Monday November 17, 2025 @06:14AM (#45952613)
Because AI content is at minimum controversial nowadays. And if you are ok with lying about authorship then It is not further down the pole to embelish the lie a bit more
Re:62 chapter open-source Zig book by PaulRobinson on Monday November 17, 2025 @06:25AM (#45952667)
I'd love it if we can stop the "Oh, this might be AI, so it's probably crap" thing that has taken over HN recently.

1. There is no evidence this is AI generated. The author claims it wasn't, and on the specific issue you cite, he explains why he's struggling with understanding it, even if the answer is "obvious" to most people here.

2. Even if it were AI generated, that does not automatically make it worthless. In fact, this looks pretty decent as a resource. Producing learning material is one of the few areas we can likely be confident that AI can add value, if the tools are used carefully - it's a lot better at that than producing working software, because synthesising knowledge seen elsewhere and moving it into a new relatable paradigm (which is what LLMs do, and excel at), is the job of teaching.

3. If it's maintained or not is neither here nor there - can it provide value to somebody right now, today? If yes, it's worth sharing today. It might not be in 6 months.

4. If there are hallucinations, we'll figure them out and prove the claim it is AI generated one way or another, and decide the overall value. If there is one hallucination per paragraph, it's a problem. If it's one every 5 chapters, it might be, but probably isn't. If it's one in 62 chapters, it's beating the error rate of human writers quite some way.

Yes, the GitHub history looks "off", but maybe they didn't want to develop in public and just wanted to get a clean v1.0 out there. Maybe it was all AI generated and they're hiding. I'm not sure it matters, to be honest.

But I do find it grating that every time somebody even suspects an LLM was involved, there is a rush of upvotes for "calling it out". This isn't rational thinking. It's not using data to make decisions, its not logical to assume all LLM-assisted writing is slop (even if some of it is), and it's actually not helpful in this case to somebody who is keen to learn zig to decide if this resource is useful or not: there are many programming tutorials written by human experts that are utterly useless, this might be a lot better.

Re:62 chapter open-source Zig book by xeonmc on Monday November 17, 2025 @07:17AM (#45952953)

    That didn't happen.
    And if it did, it wasn't that bad.
    And if it was, that's not a big deal.
    And if it is, that's not my fault.
    And if it was, I didn't mean it.
    And if I did, you deserved it.
Re:62 chapter open-source Zig book by toinewx on Monday November 17, 2025 @06:38AM (#45952747)
> 1. There is no evidence this is AI generated. The author claims it wasn't, and on the specific issue you cite, he explains why he's struggling with understanding it, even if the answer is "obvious" to most people here.

There is, actually, You may copy the introduction to Pangram and it will say 100% AI generated.

Re:62 chapter open-source Zig book by PaulRobinson on Monday November 17, 2025 @06:41AM (#45952762)
That's not evidence, at least not evidence that would stand up to a peer review if the author were to refute it.
Re:62 chapter open-source Zig book by tpoacher on Monday November 17, 2025 @06:52AM (#45952819)
It's not proof but it's definitely evidence.
Re:62 chapter open-source Zig book by toinewx on Monday November 17, 2025 @06:44AM (#45952778)
When I give my own writings to Pangram, it says 100% human.
Re:62 chapter open-source Zig book by keybored on Monday November 17, 2025 @05:27PM (#45959117)
What’s the evidence that it is human-generated? Oh I see. If it is AI generated then you still have to judge it by its merit, manually. (Or can I get an AI to do it for me?) And if they lied about it being human-authored? Well what if the author refutes that accusation? (Maybe using AI? But why judge them if they use AI to refute the claim? After all we must judge its on its own merit (repeats forever))
Re:62 chapter open-source Zig book by zwnow on Monday November 17, 2025 @06:49AM (#45952800)
> 2. Even if it were AI generated, that does not automatically make it worthless.

It does make it automatically worthless if the author claims it's hand made. How am I supposed to trust this author if they just lie about things upfront? What worth does learning material have if it's written by a liar? How can I be sure the author isn't just lying with lots of information throughout the book?

Re:62 chapter open-source Zig book by ecshafer on Monday November 17, 2025 @08:51AM (#45953533)
That github exchange is hilarious and bizarre. It's very obviously people talking to not people.
Re:62 chapter open-source Zig book by nabbed on Monday November 17, 2025 @05:53PM (#45959350)
The exchange on https://github.com/zigbook/zigbook/issues/4? If so, your botdar is better than mine. While the project owner doesn't understand the issue at first, they seem to get it in the end. The exchange looks sort of normal to me, but then I guess I am doomed to be fooled regularly in our new regime.

Some text in the book itself is odd, but I'll be a guinea pig and try to learn zig from this book and see how far I get.

Re:62 chapter open-source Zig book by ecshafer on Monday November 17, 2025 @08:40PM (#45960445)
The exchanges look totally like a robot to me. It looks to be deleted now. But the first response that responded to the bug report with how many systems its tested on seems weird and robot like. Then the screenshot that the "person" has to be told to scroll down, that is very ai like.
Re:62 chapter open-source Zig book by MatthiasPortzel on Monday November 17, 2025 @09:07AM (#45953660)
I seem to remember seeing this a week or two ago, and it was very obviously AI generated. (For those unfamiliar with Zig, AI is awful at generating Zig code: small sample dataset and the language updates faster than the models.) Reading it today I had a hard time spotting issues. So I think the author put a fair amount of work into cleaning up hallucinations and fixing inaccuracies.
Re:62 chapter open-source Zig book by MatthiasPortzel on Monday November 17, 2025 @07:07PM (#45959928)
I checked my search history and I was thinking of a different website (zig toolbox, not linking intentionally, because it's purely AI slop).
Re:62 chapter open-source Zig book by insane_dreamer on Monday November 17, 2025 @01:38PM (#45956501)
Ok, but even if it's AI generated and won't be maintained or contains errors, I'm not sure that warrants it being _flagged_ on HN.
Re:62 chapter open-source Zig book by metalliqaz on Tuesday November 18, 2025 @12:19PM (#45969184)
That issue has been deleted. In addition, the author has tagged other issues with labels that are not appropriate for the mission of being a core zig learning resource:

https://github.com/zigbook/zigbook/issues/25

"AI ALLEGATION" and "RE**ED COMPLAINT"

Re:62 chapter open-source Zig book by metalliqaz on Tuesday November 18, 2025 @12:26PM (#45969279)
'zigbook' also seems to be using other accounts as sock puppets: 'zigglang' and 'zig-vm'