Category Archives: History

Nietzsche at DefCon19

Friedrich Nietzsche will be showing up in two presentations at DEFCON this year. Last month I offered a translation of his Aphorism 146 from Jenseits von Gut und Böse (1886):

He who fights with monsters must see to it that he does not thereby become a monster. And if you look for long into an abyss the abyss also looks into you.

Not everyone agrees on the translation, obviously. Here are the talk titles.

  • “Whoever Fights Monsters…” Confronting Aaron Barr, Anonymous, and Ourselves
  • Staring into the Abyss: The Dark Side of Crime-fighting, Security, and Professional Intelligence

The philosopher argued that it takes courage and strength to live authentically, to find a path to follow of ones own choosing rather than follow the groups and organizations that offer an “escape”.

He exaggerated his case to make a point but it still seems to have survived. Will be interesting to see if the presenters try to reconcile his harsh critiques of patriotism and regulation, or even his critique of the environment in which they are presenting.

Software Transaction Memory Risks

Output stream has a detailed and entertaining review of handling concurrency with software transaction memory (STM).

Suppose I have a small bank with only two accounts, and all that can happen at this bank is money can be transferred from one account to the other. A “correct” program…[is] when a single thread is performing the transfers, but when multiple threads are performing the transfers, bad things happen.

Imagine standing in a queue in England before WWII. Everyone would fight and pick their way to the teller in order to get service. Any group approaching a crowd in size would get so wildly out of control even the French and Italians complained about barbaric behavior of the English. During the hard times of war, however, the orderly queue was introduced with much propaganda to prevent inefficient riots and fights over scarce resources.

English orderly queuing behavior evolved into a common rule still present today, enforced by others waiting their turn. What happens if people decide to abandon the rule? The old race conditions, incorrect sync, and deadlock would return, as explained in a presentation by Brian Goetz.

STM, instead of trying to enforce concurrency controls offers an isolation boundary for transactions, like moving transactions from an open teller queue into a private office at a bank. Transactions are behind a closed door instead of subject to interruption and blocking.

STM is an alternative to lock-based synchronization. In essence it places a guard around a specified memory location (in our example we’ve placed it around the “accounts” map). The guard is called a Ref. You can only gain access to the memory location by initiating a transaction with an atomic block. Once inside the atomic block, you can gain access to the data in the memory location through the Ref and make modifications. Modifications are isolated, so changes can only be seen within the scope of the atomic block. When the transaction ends, an attempt is made to update the memory location atomically. However, it may be that another thread has committed a transaction before the attempt. If this is the case, the logic inside of an atomic block is retried until an update can be made.

Of course the boundary also has rules to reduce risk for STM. Once inside, bad things can still happen from dependencies, races and interruptions:

  • disallow side-effects
  • disallow changes
  • use independent business logic

The End of the Economist

I admit I used to be a huge fan of the Economist. There were days when I would sit in the library and pore over editions from the early 1940s and marvel at the lengths they would go to offer analysis without bias. If you ever have a chance to do it I recommend it highly. It was spooky to see how accurate their writers were in predicting the future.

Things have changed a lot for them in the past twenty years let alone over sixty. I find their writing less compelling and less informed as time goes on, as if they are looking at the world through a shrinking scope. They seem to just be lazily writing their opinion, without any bother to research or read the data available. Take the recent article “Coming Full Circle“, for example.

They make a fair point about the impact of big media and industrialization in the West, but they also give a lopsided history of print and social networks from a pseudo-Western lens:

Until the early 19th century there was no technology for disseminating news to large numbers of people in a short space of time. It travelled as people chatted in marketplaces and taverns or exchanged letters with their friends. This phenomenon can be traced back to Roman times, when members of the elite kept each other informed with a torrent of letters, transcriptions of speeches and copies of the acta diurna, the official gazette that was posted in the forum each day. News travelled along social networks because there was no other conduit.
[…]
In early 1518 Martin Luther’s writings spread around Germany in two weeks as they were carried from one town to the next. As Luther and his supporters argued with his opponents over the following decade, more than 6m religious pamphlets were sold in Germany.

Uh, ok, a timeline from the Romans to the Germans?

That does not sound like a proper student of British education. Perhaps it is an American writer, unfamiliar with the Schoyen collection in London. I mean how ironic and strange for a British publication to glorify the technology of the Romans and the Germans!

Moreover, they completely miss the obvious fact that the Song (960-1279) dynasty China was widely distributing inexpensive printed books made with movable type. This, of course, was possible due to block printing used previously during the Tang (618-906) dynasty when printing cloth shifted to making Buddhist scrolls.

How do these fit the Economist’s “there was no technology” claim for information dissemination until the 19th century? Perhaps they are using a very specific and narrow definition of “dissemination” and a very specific and narrow definition of “short space of time”? Yes, Twitter did not exist until Twitter existed. Great analysis of “little distinction between producers and consumers of information” — social media.

The Economist missed a great opportunity to reference the “Diamond Sutra” (“stolen” by the British), which was printed on the 11th May 868 AD according to the British Library and starts with the words

“Reverently made for universal free distribution…”

They also missed the opportunity to explain the rapid transition in technology from elite use to common, such as the period soon after Empress Shotuku of Japan in 764 AD printed a million scrolls of the Hyakumanto Darani and distributed them to celebrate the suppression of Rebellion led by Emi no Oshikatsu.

I guess I also could go on and bring up pre-historic fire/smoke non-elite communication systems (that influenced Bronze Age relics still evident in Ireland and England), or birds like the Pigeon Post, or the hydraulic semaphore system used in Britain by Francis Whishaw in the 1800s, not to mention the talking drum…but I guess for the time being I’ll just have to seek other sources of news to find an informed and introspective analysis.

2011 BSidesLV: A Cloud Odyssey

I will be presenting at the 2011 BSidesLasVegas conference:

“2011: A Cloud Odyssey”

When: August 3 or 4, 2011
Where: The Artisan Hotel, 1501 West Sahara Avenue, Las Vegas, NV 89102
Cost: Free (as always!)

Are you ready to fly into the clouds? This presentation takes the audience on a humorous review of technology and progress since the 1968 American epic science-fiction film by Stanley Kubrick and Arthur C. Clarke. It explores a philosophical evolution as it relates to technology and proposes some surprising new answers to four classic questions about managing risk:

  1. What defines human nature
  2. How can technology change #1
  3. Does automation reduce total risk
  4. Fact, fiction or philosophy: superuser

2011 a cloud odyssey

This is the next installment in my series of 1960s-film themed presentations. The last one (“Dr. Stuxlove”) was at BSidesSF 2011.

Copy of Presentation: 2011acloudodyssey.75dpi.PDF