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
20082026
-
…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 -
...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) -
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 -
…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
comment by codr7 · 2025-10-11 · in Love C, hate C: Web framework memory problems -
https://github.com/codr7/hacktical-c/blob/1406322cde3c46aab8...
comment by codr7 · 2025-08-14 · in Kodak has no plans to cease, go out of business, or file for bankruptcy -
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 -
…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 -
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 -
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
comment by codr7 · 2025-06-08 · in Binfmtc – binfmt_misc C scripting interface -
…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? -
…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) -
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.
comment by codr7 · 2025-04-27 · in Ask HN: What are you working on? (April 2025) -
The more, the merrier, here is another one I've been working on lately: https://github.com/codr7/hacktical-c
comment by codr7 · 2025-04-27 · in Open-source interactive C tutorial in the browser -
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…
comment by codr7 · 2025-04-16 · in Zig's new LinkedList API (it's time to learn fieldParentPtr) -
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…
comment by codr7 · 2025-04-16 · in Zig's new LinkedList API (it's time to learn fieldParentPtr) -
…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…
comment by gthompson512 · 2025-04-14 · in Hacktical C: practical hacker's guide to the C programming language -
…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
comment by codr7 · 2025-04-13 · in Mistakes and cool things to do with arena allocators -
A book? https://github.com/codr7/hacktical-c/tree/main
comment by codr7 · 2025-04-12 · in Ask HN: How do you monetize personal code if it's not an "app"? -
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] -
…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
comment by codr7 · 2025-03-19 · in The Defer Technical Specification: It Is Time -
…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