The Little Book of C

https://little-book-of.github.io/c/books/en-US/book.html

Comments

smusamashahMar 26, 2026, 10:39 PM
I wonder how many hallucinated wrong facts are in there. It looked like a good resource until I learned its LLM generated. https://news.ycombinator.com/item?id=45479268
lelanthranMar 27, 2026, 7:29 AM
What's the base rate nowadays for hallucinations? 10%? 15%.

It's unlikely that a large volume of text will be generated at the base rate (errors compound), so the number might be higher than we expect.

robvirenMar 26, 2026, 10:43 PM
I wish someone spoon fed me how to add path for C compilers in Windows back in the day. We lose a good 90% of people to installing C from ever learning C. Feel like godbolt or an online compiler might be a reasonable starting place these days. C is amazing but can be so punishing early on compared to stupid opening up any text editor on earth and writing an HTML file. Not advocating for more JS learning but it's hard to beat the getting started on that.
1718627440Mar 27, 2026, 9:30 AM
Which is really stupid, given that is no more complicated then opening any text editor and then starting the compiler with that file. You can just double-click the file and select open with the compiler and it would work.
anthkMar 26, 2026, 11:02 PM
Most Windows users just used Codeblocks C/C++ -or anything similar- and setup everything for them.
i_am_proteusMar 26, 2026, 9:33 PM
Another very fine online reference for someone new to C is Beej's Guide to C Programming: https://beej.us/guide/bgc/

(Here is a reference to K&R, the standard first reference to C, because I am obligated to make such a reference.)

MomsAVoxellMar 26, 2026, 10:43 PM
I always find, whenever I loan Peter Van der Lindens’ “Deep C Secrets: Expert C Programming” book to a fellow colleague, I never get it back. For a while I had 10 or so spare copies to hand out as treats, but now I just refer everyone to this PDF:

https://progforperf.github.io/Expert_C_Programming.pdf

If you’re a C programmer, old or new, and haven’t encountered this book: Stop What You Are Doing And Go Read It! It’s amazing.

pascahousutMar 26, 2026, 9:43 PM
And the K&R reference is useful too. It's a small book about a small language that does not have many features and maps to very basic concepts on hardware that really only does very basic things.
melonFellaMar 26, 2026, 10:11 PM
It's so cool! Do you have a similiar resource about c++?
JSR_FDEDMar 27, 2026, 12:19 AM
The author is right about C leading to better understanding of computers, OSes and other languages.

For me a breakthrough moment was when I saw my C code interleaved with the generated assembly. Registers, calling conventions, calling OS functions…all laid bare!

user982Mar 26, 2026, 9:40 PM
cwnythMar 26, 2026, 9:48 PM
And it's well worth reading this earlier discussion, too.
fsckboyMar 26, 2026, 10:25 PM
I wonder why that previous submission was "flagged"?
toleranceMar 26, 2026, 10:38 PM
The HN of 5 months ago was apparently less receptive to anything made involving LLMs than they are today.
tom_Mar 27, 2026, 1:02 AM
Another option might be that Nth pass LLM output is not as good as (N+5 months)th pass LLM output. At some point before the amount of effort involved reaches that required to do it oneself, the output will reach an acceptable quality level... or so you'd hope, if any of this business is to make any sense.
toleranceMar 27, 2026, 2:56 AM
I think I follow where you’re coming from but, it doesn’t seem that this project has been updated since October 2025.
androiddrewMar 26, 2026, 10:33 PM
Wish they had this for zig
agrishinMar 26, 2026, 11:12 PM
The fact that it's AI generated is simultaneously thrilling and frightening. Especially considering that some AI Agents might be trained on that.
threethirtytwoMar 26, 2026, 9:45 PM
Ai is getting really good. I can’t tell the difference anymore.
watashiatoMar 26, 2026, 11:04 PM
I can (it's really obvious here) and wish I couldn't. Every time I run into something I might wanna read, but it turns out to be LLM "assisted" writing after I've already invested some time, it feels like I was tricked into eating cardboard.

And when I bring up that this should be clearly marked, preferably up front, it's often taken as a personal slight.

I realize this is a me problem to some extend, I shouldn't feel strongly about this, but I do.

majorchordMar 27, 2026, 2:32 PM
> I can

You can guess, but there is no single objective test that is 100% accurate.

girvoMar 26, 2026, 10:10 PM
There are some very small tells, like the constant "rule of threes" that AI loves to follow, but you're right that this is much harder to tell than it used to be.