Hacker GitHub

← All repos

codr7/hacktical-c

View on GitHub ↗ ★ 1,134 C

A practical hacker's guide to the C programming language.

22 mentions on Hacker News by 3 people: 1 story, 21 comments · first 2025-03-19 · latest 2026-01-15

Mentions per year 22 mentions · busiest year 2025 (20)
20082026
  1. …started on interpreters: https://github.com/codr7/shi And perhaps this for those leaning towards C: https://github.com/codr7/hacktical-c
    comment by codr7 · 2026-01-15 · in Crafting Interpreters
  2. ...at what it does, couldn't agree more. https://github.com/codr7/hacktical-c
    comment by codr7 · 2026-01-06 · in C Is Best (2025)
  3. No. You don't mess around with the language like that. This is how you do it: https://github.com/codr7/hacktical-c/tree/main/vector
    comment by codr7 · 2025-11-15 · in How to write generics in C
  4. …of a style guide to C a while ago, which attempts to transfer ideas like this one more by example: https://github.com/codr7/hacktical-c
  5. https://github.com/codr7/hacktical-c/blob/1406322cde3c46aab8...
  6. I've been working this problem from different angles for a while now: https://github.com/codr7/shi-c https://github.com/codr7/hacktical-c
    comment by codr7 · 2025-08-05 · in Build Your Own Lisp
  7. …implementation isn't as safe as alternatives in other languages, but plays well on C's strengths. https://github.com/codr7/hacktical-c/tree/main/vector
    comment by codr7 · 2025-07-26 · in Generic Containers in C: Vec
  8. Looks overly complicated to me. This is an alternative I wrote for my C book: https://github.com/codr7/hacktical-c/tree/main/task
    comment by codr7 · 2025-07-13 · in Hacking Coroutines into C
  9. I did a simple hack for doing the same thing from inside a C program for my book: https://github.com/codr7/hacktical-c/tree/main/dynamic
  10. …interpreters these days. But I did spent an awful lot of time in C lately while writing this book: https://github.com/codr7/hacktical-c
    comment by codr7 · 2025-06-03 · in Ask HN: Who is using C?
  11. …working on a book for a while now to try and share some of the ideas I've picked up over the years: https://github.com/codr7/hacktical-c
    comment by codr7 · 2025-05-10 · in Prolog's Eternal September (2017)
  12. A practical hacker's guide to the C programming language: https://github.com/codr7/hacktical-c Also learning to deal with having very little to no money atm.
  13. The more, the merrier, here is another one I've been working on lately: https://github.com/codr7/hacktical-c
  14. This approach is also common in C: https://github.com/codr7/hacktical-c/tree/main/list One pretty big advantage is you get some help from the compiler making sure you mean what you say. As opposed to just blindly casting items and assuming…
  15. Not super uncommon in C land, I learned the technique from the Linux kernel. https://github.com/codr7/hacktical-c/tree/main/list Haven't come across another language (besides Zig maybe) low level enough for it to make sense. I've tried in…
  16. …to splice them during preprocessing using \ followed by a new line, the actual code has these: from https://github.com/codr7/hacktical-c/blob/main/macro/macro.h #define hc_align(base, size) ({ \ __auto_type _base = base; \ __auto_type…
  17. ▲ 218
    Hacktical C: practical hacker's guide to the C programming language
    story by signa11 · 2025-04-14 · 182 comments
  18. …allocators, a free list is just another kind of allocator that may be plugged in at any point. https://github.com/codr7/hacktical-c/tree/main/malloc1 https://github.com/codr7/hacktical-c/tree/main/malloc2
  19. A book? https://github.com/codr7/hacktical-c/tree/main
  20. Here's another guide to C, from a slightly different angle, that I've been working on for a while: https://github.com/codr7/hacktical-c
    comment by codr7 · 2025-03-25 · in Beej's Guide to C Programming [pdf]
  21. …forever, as long as you have access to cleanup attributes and nested functions it's no big deal. https://github.com/codr7/hacktical-c/tree/main/macro
  22. …is how I do proper generic vectors in C, no template tricks needed and no pointer chasing involved: https://github.com/codr7/hacktical-c/tree/main/vector The problem was always pretending C is something it's not, that never works well in…
    comment by codr7 · 2025-03-19 · in Implementing Generic Types in C