jeff571
Re:We looked at how a thousand college students performed in technical...
on Tuesday February 13, 2018 @07:59PM (#16372463)
People who bother to practice for coding interviews (using the same website) and successfully land an interview do similarly well on coding interviews... That's a lot of selection bias.
Re:How Rust Is Tilde’s Competitive Advantage [pdf]
on Tuesday February 06, 2018 @09:58PM (#16321927)
"Training existing Ruby developers to maintain safe C++ code would take too much time."
Wow. Just wow.
Re:Choosing between programming in the kernel or in user space
on Monday January 22, 2018 @01:45PM (#16206765)
Yeah exactly! Just look at DPDK for example.
Re:A FactoryFactoryFactory in Production
on Monday December 18, 2017 @01:48PM (#15954163)
It's in their codebase because they catastrophically over engineered it. Even the largest codebases on earth don't require FactoryFactoryFactory's.
Re:A FactoryFactoryFactory in Production
on Monday December 18, 2017 @01:32PM (#15953964)
I'm sorry but you can't possibly be serious. There is no sane motivation for a *FactoryFactoryFactory class. No problem on earth is complex enough to benefit from that much abstraction.
Re:How to properly use macros in C
on Sunday December 10, 2017 @03:43PM (#15893399)
The article is an okay start, but it wasn't written by an expert. It lists some real pitfalls but doesn't provide commonly accepted solutions. Some examples...
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...
Re:What every systems programmer should know about lockless concurrenc...
on Thursday November 02, 2017 @09:53AM (#15610372)
The lock could still be faster. atomic ops are more expensive than regular opcodes even when there is zero contention. On x86, a lock requires only a single atomic opcode and can be released with a normal write (because of TSO). Since it's uncontended it won't spin at all. Therefore, any alternative lock-free algorithm that uses more than a single atomic op is actually more expensive.
Re:What every systems programmer should know about lockless concurrenc...
on Thursday November 02, 2017 @02:00AM (#15608171)
Keep in mind lockless algorithms are not necessarily more scalable than lock-based algorithms, usually have higher constant overheads, and are significantly easier to get wrong.
However, this post is, in part, about how to implement locks.