Voyager 40 years into its mission

Fascinating post about Voyager.

Voyager’s spindly limbed, Transit-van-sized machines have been travelling at around 37,000mph for almost 38 years. When they were launched, wooden-framed Morris 1000 Traveller cars had only recently stopped being produced by British Leyland in Oxford. The Voyagers’ on-board computers are early 1970s models that were advanced then but are puny now – an iPhone’s computer is some 200,000 times faster and has about 250,000 times more memory than Voyager’s hardware.

The secret of its durability is down to the engineers involved:

“The robustness is unique,” she says. “If you talk to the older engineers, they’ll say: ‘Well, we were told to make a four-year mission, but we realised if you just used this higher-rated component, it would last twice as long.’ So they did that. They just didn’t tell anybody. The early engineers were very conscious of trying to make this last as long as possible and, quite frankly, being not as forthcoming with information about the types of parts they were using.”

Leave a comment

Filed under Technology

Book Review: The Lost Symbol, Dan Brown

20150312-150712.jpgI really enjoyed this Robert Langdon thriller from Dan Brown. The mystical/dark arts side of the book harks back to Dennis Wheatley and if that isn’t your genre it’s necessary to suspend dis-belief – but it’s a good book even despite that.

In this latest adventure, Robert Langdon is involved in the world of Free-Masonry. As ever, he’s called on to use his knowledge of the arts and symbology to solve a number of puzzles. In this book, though, I found Langdon a more sympathetic character – half the time, he didn’t have a clue what was going on and this time he was singled out for abuse as much as the other victims.

20150312-151507.jpg

1 Comment

Filed under Book Review

Video: Herb Sutter Back to the Basics at Cpp Con 2014

Herb Sutter’s Back to the Basics video is hardly an introduction to C++ as the name suggests. Rather, it clarifies his default choices when faced with some basic tasks like parameter passing, in the light of modern C++ techniques.

Don’t pass owning choices down the call stack – use non-owning raw pointers and references when you don’t need ownership transfer down the call stack, e.g. when callee parameter’s lifetime entirely nested within the called method. If the called method doesn’t participate in ownership, it should be agnostic to the lifetime of the object, whether on the stack, the heap, global, shared_ptr or unique_ptr.
image

Another reason to use auto is performance – it guarantees no implicit conversion because there’s no explicit declared type.
20150326-120815.jpg

Reviewing parameter passing choices, established rules of thumb still apply, they just got better.
20150326-121118.jpg
This is especially true for pass-by-value, which experts considered to be the new default choice for a while for moveable types, but is now only recommended for constructors that wish to retain a copy.

There was a bonus slide on returning multiple values using std::tie, which I’ve been doing for a while.
image

Finally, it seems that there’s a new term for Universal References – “Forwarding References”. I agree that this states the intention of T&& parameters better that Scott Meyer’s original name, although my eBook of Effective Modern C++ still uses the old name.

Leave a comment

Filed under C++, Programming, Video

Video: Designing a Beautiful REST API

This video gives a neat introduction into REST API design and some of the consideration s/pitfalls in different approaches.

Leave a comment

Filed under Programming, Technology

Tech Book: Seven Databases in Seven Weeks

Seven Databases in Seven Weeks – a guide to modern databases and the nosql movement
I picked this book to learn about NOSQL which seems to be a current buzzword. I have experience writing SQL-based applications with Watcom and SQL Server, but the new database back-end choices are impressive and have neat ideas that can be generalised for other applications (e.g. resilience).

Leave a comment

Filed under Tech Book

Tech Book: Paradox, Jim Al-Khalili

paradox

Paradox – The Nine Greatest Enigmas in Science – Jim Al-Khalili
I’m enjoying the mixture of history and pop science – Al-Khalili explains physics as well as anyone.
FiveStars

Leave a comment

Filed under Tech Book

Tech Book: Clean Code, Robert Martin


Clean Code – A Handbook of Agile Software Craftmanship
This book was recommended by a colleague. I agree with nearly all of it so far, but I’m intending to keep the “m_” prefix on my member variables. Would have been five stars if the examples were C++.
Four stars

Leave a comment

Filed under Tech Book

Tech Book: High Frequency Trading, Michael Durbin

All About High-Frequency TradingAll About High-Frequency Trading (Michael Durbin)
This is subtitled “A detailed primer on today’s most sophisticated and controversial trading technique”. For me, it really delivers on that promise with decent coverage of the subject from a high-level and even some detail on basic trading strategies as well as a stab as system design.

Five stars

Leave a comment

Filed under Tech Book

Tech Book: Linux Kernel Development, Robert Love

LinuxKernelDevelopmentLinux Kernel Development (Robert Love)
I picked up this book at the ACCU 2012 conference from their Charity Book stall (for a small donation). This is the 2005 version, so slightly out of date. I’m finding the mix of low-level detail (down to names of data types and methods) in amongst high-level theory (memory management, process scheduling) hard – but there’s certainly plenty of useful detail.

ThreeStars

Leave a comment

Filed under Tech Book

Tech Book: A Tour of C++, Bjarne Stroustrup

A Tour of C++ This recent book was recommended by Herb Sutter at CppCon as a slim summary of all that C++ developers should be expected to know. It’s a good read, sprinkled liberally with example code to illustrate the techniques that make up modern C++. Having originally learn C++98, then spent a lot of time reading and trying our C++11 techniques, it’s interesting to see how the language looks when presented as a whole. Also, the book covers some C++14 additions.

The points I particularly found interesting were:

  • override – use this to mark virtual methods that are declared in the base class and have an implementation in the derived class (avoids declaring a new virtual method if the signature is wrong)
  • explicit – single argument constructors should by default be marked as explicit to avoid unexpected implicit conversions, unless there’s a reason not to
  • delete – when defining a base class, it’s good practice to ‘delete’ the default copy and move operations, given that the default implementations will not know how to handle derived class members
  • regex – the book covers the standard library as well as the language. A welcome addition is std::regex, and the chapter in this book is an excellent introduction
  • vector initialisation – uniform initialisation of vectors of a struct can still use initialiser lists, even if the struct members have different types e.g. string/int
  • vector::at – this method returns the same value as operator[] (subscript), but performs bounds-checking, which doesn’t happen with operator[]

Four Stars

Leave a comment

Filed under C++, Tech Book