5. The Art of Risk Management (2017) (www.bcg.com)

Managing risk involves more than complex financial models and formal systems. Here are ten basic principles that should govern the art of risk management.

6. C++: Freestanding Standard Library (www.sandordargo.com)

In some earlier articles, we used the term freestanding. We said that a freestanding implementation is one that operates without the support of a hosted operating system. Think embedded systems, OS kernels, or bare-metal environments where heap allocation, system calls, and exception support are typically unavailable. The C++ standard defines a minimal subset of the language and library that must work in such constrained environments. But I wanted to go slightly deeper, because the term doesn’t come up much in everyday C++ — at least not until you start reading the standard more carefully or until you need to use such an implementation.

9. The best seat in town (www.torched.la)

It's a public bathroom, yes, but it's really a piece of infrastructure that unlocks access to the city

13. Deterministic Primality Testing for Limited Bit Width (www.jeremykun.com)

Problem: Determine if a 32-bit number is prime (deterministically)
Solution: (in C++)
// Bases to test. Using the first 4 prime bases makes the test deterministic // for all 32-bit integers. See https://oeis.org/A014233. int64_t bases[] = {2, 3, 5, 7}; inline int countTrailingZeros(uint64_t n) { if (n == 0) return 64; return __builtin_ctzll(n); } int64_t modularExponentiation(int64_t base, int64_t exponent, int64_t modulus) { int64_t res = 1; int64_t b = base % modulus; int64_t e = exponent; while (e > 0) { if (e & 1) { // Doesn

20. Show HN: Do All the Things (www.doallthethings.app)

The ultimate bucket list — 7,000+ bucket list ideas and things to do before you die. Find inspiration, track your progress, and share your bucket list with friends.

23. War on Raze (gist.github.com)

WAR ON RAZE. GitHub Gist: instantly share code, notes, and snippets.

Article Details

Browse by Date

Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open