Tuesday, December 11, 2012

Ada Lovelace and Note G...

Christian Hansen has the last of his series on Babbage's Analytical Engine posted.  I've enjoyed his series; I'm sorry to see the end of it.  In this post, he nicely explains Lovelace's proposed program for computing the Bernoulli series – and he debug's her program (which, alas, was never able to be actually run on Babbage's Analytical Engine, because it was never actually completed)...

What Career Paths Do Majors in “X” Take?

Here's a nicely done interactive infographic that lets you explore this interesting question.  You can also explore the inverse: what majors end up in a given career?

What it shows for computer science majors is fascinating, and a bit of a surprise for me: they end up in all sorts of careers, with far less than a majority ending up in technology.  On the other hand, it shows that people in technology careers may have majored in just about anything (or, like me, nothing at all!), with jibes with my own experience quite well...

If Google Was Around in the '60s...

...what might it have looked like?  Here's a very cool interactive animation that old fogeys like me and the young 'uns will both enjoy – though most likely for very different reasons...


A Little Fact Checking...

This article caught my eye this morning.  It claims that there's a new market for point-to-point microwave links based on the fact that they're significantly faster than fiber optic connections.  By faster they mean latency (how long a message takes to get from sender to receiver), not bandwidth (how fast the content of a message takes to transmit).  The customer in this market is the high frequency trading world (aka “algorithmic trading”).

The need for low latency amongst high frequency traders makes perfect sense.  Once an electronic order arrives at an exchange, the actual trade can happen in less than a millisecond.  But does a microwave link actually have a significantly lower latency than a fiber optic link?

The article cites two factors that make microwave links faster:
  1. The speed of light in air is about 300,000 km/sec, but in fiber is about 200,000 km/sec.
  2. The route of microwave links tends to be more direct than fiber routes, which usually follow the right-of-way alongside railroads or highways.
The first reason is simple physics.  The second is true, but less certain.  There are also a couple of factors left out of this equation: both microwave links and fiber optic links require signal repeaters along long routes, but microwave links require them at smaller intervals – and each signal repeater introduces a small delay.

So let's do some math on the big market cited by the article: connections for traders in Chicago who are trading on a New York exchange.  The direct distance between Chicago and New York is about 1,150 kilometers.  Here's our math for each approach.

Fiber optic:
  distance = 1,150 x 1.3 (routing length factor) = 1,495 km
  latency = 1,495 / 200,000 = 7.45 ms
  repeaters = 2 (every 500 km) @ 0.2 ms = 0.4 ms
  total latency = 7.85 ms

Microwave
  distance = 1,150 x 1.05 (routing length factor) = 1,207 km
  latency = 1,207 / 300,000 = 4.03 ms
  repeaters = 4 (every 250 km) @ 0.2 ms = 0.6 ms
  total latency = 4.63 ms

Microwave beats fiber by 3.22 ms, one way - over three times the trading latency.  Yup, that's significant.

But there's one way to make this much, much lower latency, which the article doesn't mention at all – and it's the most common way by far: locate the high frequency trading servers physically nearby the exchange servers.  The electronic exchanges all offer (very expensive!) rack space in or near their datacenters for exactly this purpose...