jeff571 | 8 years ago | on: We looked at how a thousand college students performed in technical interviews
jeff571's comments
jeff571 | 8 years ago | on: How Rust Is Tildeās Competitive Advantage [pdf]
Wow. Just wow.
jeff571 | 8 years ago | on: Choosing between programming in the kernel or in user space
jeff571 | 8 years ago | on: A FactoryFactoryFactory in Production
jeff571 | 8 years ago | on: A FactoryFactoryFactory in Production
jeff571 | 8 years ago | on: How to properly use macros in C
multiple lines: wrap in do { } while (0) - can use a multiline macro like a function call, terminated with ; or ({foo; bar;}) - multiple lines evaluate to 'bar'...
Function calls: - in general anything with side effects could be harmful if evaluated more than once. - But possible to write MIN()/MAX() with single evaluation of 'a' and 'b'. #define MAX(a, b) \ ({typeof(a) _a = (a); typeof(b) _b = (b); _a > _b ? _a : _b;})
And other important things like stringify, variadics, etc...
jeff571 | 8 years ago | on: What every systems programmer should know about lockless concurrency [pdf]
jeff571 | 8 years ago | on: What every systems programmer should know about lockless concurrency [pdf]
However, this post is, in part, about how to implement locks.