Hello

Brad Dominy


Google executive frustrated by Java, C++ complexity

A lot has changed in computers over the last 20 years, with amazing increases in speed and capacity; however, an area that has not changed nearly as rapidly is with the languages developers use to write programs. Some of this is understandable, as people do not want to lose their current code base and start over from scratch with something new and unproven, but Google's Rob Pike speaking at the O'Reilly Open Source Conference made a case for why the industry needs to break free from those restraints and adopt new languages to create better software much more quickly. Check it out.

Plantar fasciitis

So, it turns out I have a heel spur, or plantar fasciitis. I have been dealing with a sore foot for a couple of months and finally got around to setting up an appointment. They did a very good job and I am now spending the next couple of weeks stretching and wearing a funny boot to help relieve the strain.

X-ray of my right foot

If this does not work, I move on to a MRI and then a shot of cortisone which should be a lot of fun.

Modernizer 1.5 Available

A new version of Modernizer, a JavaScript library that helps with adding new web technologies to sites while handling older browsers gracefully, is available with lots of cool improvements. It works by detecting browser capabilities and then letting you define css code to take advantage of a certain feature or alternative code if it is missing. Check it out!

Flash Crash Analysis

On May 6, 2010, the US Stock Market saw a 1000 point drop followed by a huge recovery in only a few minutes. There were many theories put forward at the time as to what caused the flash crash, but a company called Nanex, a provider of a high-performance, real-time streaming datafeed for all of the major exchanges, did an in depth analysis and their conclusion was that it was caused by a design error at the NYSE.

From Analysis of the "Flash Crash"

In summary, quotes from NYSE began to queue, but because they were time stamped after exiting the queue, the delay was undetectable to systems processing those quotes. On 05/06/2010 the delay was enough to cause the NYSE bid to be just slightly higher than the lowest offer price from competing exchanges, but small enough that is was difficult to detect. This caused sell order flow to route to NYSE -- thus removing any buying power that existed on other exchanges. When these sell orders arrived at NYSE, the actual bid price was lower because new lower quotes were still waiting to exit a queue for dissemination.

This situation led to orders executing against whatever buy orders existed in the NYSE designated market maker (DMM) order book. When an order is executed, the trade is reported to a different system (CTS) than quotes (CQS). Since trade report traffic is much smaller than quote traffic, there is rarely any queueing or delay.

Because many of the stocks involved were high capitalization bellwether stocks and represented a wide range of industries, and because quotes and trades from the NYSE are given higher credibility in many HFT systems, when the results of these trades were published a few milliseconds later, the HFT systems detected the sudden price drop and automatically went short, betting on capturing the developing downward momentum. This caused a short term feed-back loop to develop and panic ensued.

Another interesting tidbit is that they detected what they termed, "Quote Stuffing", were 1000s of quotes per second were being generated for certain stocks from a particular exchange. They surmised that it may have been a form of HFT warfare, where one HFT system generates these quotes so that all of the competing HFT systems will spend precious milliseconds processing them, giving the instigator an edge. They predict that if this behavior is not prevented, soon every HFT system will be using this tactic and pretty much meltdown the whole system. Incredible.

The analysis is at http://www.nanex.net/20100506/FlashCrashAnalysis_Intro.html.

WWDC for everyone

Apple has made all of the 2010 WWDC session videos available for download for anyone who has registered as an Apple developer. This means they are essentially free! The major focus for WWDC was the new iOS 4 and with iPhone 4s starting to show up in people's hands, the time is right to be learning about these new features and to be updating your apps.

iOS 4 Game Center goes live for developers

Just like XBOX Live or Playstation Network, this service will make adding social gaming much easier for apps developed on the iPhone or iPad. The following is from appleinsider.com:

Game Center is Apple's new social gaming network for the iOS platform, which allows users to login to an account, invite friends to play games, find other users to join into multiplayer games, track achievements within games, and compare scores in leader board listings.

In addition to the new Game Center app, iOS 4 includes a series of GameKit APIs for developers that enable them to add Game Center support to their apps.


About me

Brad Dominy

Brad Dominy is a Cocoa developer and computer guy living in San Francisco, CA with his wife, Mary, and his daughter, Saya.

This site is a place to post thoughts and showcase some of Brad's work.

Read more about Brad, or .

Other connections