The Problem With Threads

Multithreaded (concurrent) programming is a valuable tool in my toolbox. I don’t hesitate to use it when I need it. I can’t imagine getting by without it.* So the SQLite project got my attention when they said, “Threads are evil. Avoid them.” They referred me to a very interesting paper by Edward A. Lee of… Continue reading The Problem With Threads

Published
Categorized as Software

Rvalue References

Here’s a new C++ feature: rvalue references. An rvalue reference behaves just like an lvalue reference except that it can bind to a temporary (an rvalue), whereas you can not bind a (non const) lvalue reference to an rvalue. A& a_ref3 = A(); // Error! A&& a_ref4 = A(); // Ok Question: Why on Earth… Continue reading Rvalue References

Published
Categorized as Software