This week
- Hidden benefits of undefined behavior I was reviewing some code at work, and something jumped at me when reading some arithmetic: static inline int64_t int32ToDecimal9(int32_t i) { return i * 1000000000; } If you’ve had the good fortune of dealing with C or C++ for extended...
- Unix time, calendar time, time comparison, arithmetic, rounding, and marshaling....
2 months ago
- Rewriting a word counting program five times until it's 494x faster....
about 1 year ago
- Imagine you have a workload where all your threads need to do a serialized operation. With Cosmo, if you're looking at htop, then it's going to appear like only one core is active, whereas glibc and musl libc will fill up your entire CPU meter. That's bad news if you're running...
about 3 years ago
- Translating Rob Pike's simple and elegant C regex matcher to Go....
over 4 years ago
- An explanation of how to implement a simple hash table data structure, with code and examples in the C programming language....
about 5 years ago
- So I was writing a debugger. You know the sort of thing: breakpoints, stepping, checking the value of variables. It was going wonderfully until I tried to debug my debugger with my debugger. main was just... gone. It would run, but trying to set a breakpoint on it crashed the...
about 6 years ago
- Despite the click-bait title I hope you'll find this post generally illuminating, or at the very least a bit of fun! This article makes no claims that Haskell is "better" than C, nor does it make claims about the respective value of either language, or either implementation....
about 9 years ago
- Making C more flexible, with the help of x86_64 calling conventions: Type Punning Functions in C...
Rows per page