The Little Book of C (little-book-of.github.io)

by ghostrss 23 comments 69 points
Read article View on HN

23 comments

[−] smusamashah 50d ago
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
[−] lelanthran 50d ago
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.

[−] robviren 50d ago
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.
[−] 1718627440 50d ago
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.
[−] Breza 39d ago
I still had trouble setting up C on my home PC when I was a teenager. I read The C Programming Language and really enjoyed it but couldn't figure out how to get the code to run at home. I went to the local community college and took an intro class that used C++ then I took AP Comp Sci using Java and left the C family behind.
[−] anthk 50d ago
Most Windows users just used Codeblocks C/C++ -or anything similar- and setup everything for them.
[−] user982 50d ago
[−] cwnyth 50d ago
And it's well worth reading this earlier discussion, too.
[−] fsckboy 50d ago
I wonder why that previous submission was "flagged"?
[−] tolerance 50d ago
The HN of 5 months ago was apparently less receptive to anything made involving LLMs than they are today.
[−] tom_ 50d ago
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.
[−] i_am_proteus 50d ago
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.)

[−] JSR_FDED 50d ago
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!

[−] agrishin 50d ago
The fact that it's AI generated is simultaneously thrilling and frightening. Especially considering that some AI Agents might be trained on that.
[−] androiddrew 50d ago
Wish they had this for zig
[−] threethirtytwo 50d ago
Ai is getting really good. I can’t tell the difference anymore.