Jens Gustedt

gustedt.gitlabpages.inria.fr · Personal blog · on HN since 2020

Jens Gustedt, a computer scientist at INRIA, writes about the C language and is the author of the book Modern C.

What HN saysCommenters repeatedly recommend his free book Modern C as a better, current alternative to K&R, though one notes some of his views are controversial.
17HN people shared it
12linked it in comments
5stories submitted
230story points
1 year agolast shared
2020people per year2026

Most-shared posts

  1. 1
    Modern C
    12 people · 147 points · first shared 2021 · 22 comments on HN
  2. 2
    Defer Reference Implementation for C
    2 people · 77 points · first shared 2020 · 59 comments on HN
  3. 3
    C23 Implications for C Libraries
    2 people · 2 points · first shared 2022 · discussion on HN
  4. 4
    EĿlipsis, a Language Independent Preprocessor
    1 people · 4 points · first shared 2025 · 1 comments on HN

What HN people wrote when they linked it

fileeditview · 2022-12-23
Came also here to recommend this book. You can obtain it for free at the authors site: https://gustedt.gitlabpages.inria.fr/modern-c/ If you like it you could buy the print version. There are some things he writes that are a bit controversial but generally I think it is very thorough. Sometimes it felt a bit dry to read to me.
chromatin · 2022-10-08
As some other posters do, I recommend "Modern C" by Jens Gusted. You can read it for free here: https://gustedt.gitlabpages.inria.fr/modern-c/ And if you like it, I encourage you to purchase a copy here: https://www.manning.com/books/modern-c
jamal-kumar · 2022-07-20
Has anyone actually even tried the K&R book in the past couple of decades and not run into issues like the assumption of unbuffered shell output? You get like one or two chapters in and things are already behaving outside of how they did when that book was written in the 1980s. It's a classic, yes, but I don't recommend it to anyone outside of people writing code in C89 for vintage systems... Yet the amount of suggestions I see from people who haven't actually learned C from scratch since the 1990s to read that particular title is high enough that I can't do anything but scratch my head over it. Tons has changed over thirty plus years. If you're looking for something up to date I'd recommend this: https://gustedt.gitlabpages.inria.fr/modern-c/
spekcular · 2021-12-18
It's outdated in many ways. You might try instead "Modern C" by Jen Gustedt, which is free online [0]. (This recommendation assumes previous programming experience.) [0] https://gustedt.gitlabpages.inria.fr/modern-c/
ThrowawayR2 · 2021-10-22
C and C++ have noticeable differences, despite a common origin, and should be treated as different languages. For C, many people recommend Gustedt's "Modern C" which is available in print but has a free ebook version (https://gustedt.gitlabpages.inria.fr/modern-c/). For C++, Stroustrup's "A Tour of C++" seems to be well liked.
stefanos82 · 2025-07-16
ndiddy · 2024-05-21
The link isn't working for me, I think this is the same article as the one OP posted? https://gustedt.gitlabpages.inria.fr/c23-library/
chandlore · 2023-06-22
I found Modern C[1][2] to have more practical advice and much more detail than this book. [1] https://gustedt.gitlabpages.inria.fr/modern-c/ [2] https://news.ycombinator.com/item?id=21006995
_448 · 2023-04-18
There is one free book for modern C https://gustedt.gitlabpages.inria.fr/modern-c Did not check whether it covers security issues.
nikki93 · 2020-09-30
Seems like `defer_if` is meant for things like the `errdefer` case: https://gustedt.gitlabpages.inria.fr/defer/#org4ae1e19 There's no implicit "error for this stackframe" stuff in C so it needs to be given a condition I guess.

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close