MOMA & the City Under Rain

The San Francisco MOMA

It’s been a catastrophic few weeks of weather in the Bay: almost, kind-of rain. The cloud cover never goes away, and most of the time it feels like it might be so presumptuous as to start to drizzle. A few times it’s even gone as far as to openly rain for a little while, in clear violation of the California weather contract. Winter jackets, toques 1, and scarves are everywhere (although it’s still 10C+).

Having dinner out Sunday night, the restaurant we were in (along with the entirety of the Cole Valley neighborhood) suddenly went black. The power never came back on, and the staff requested payment in cash before closing up shop. Most cities lose power after feet of snow and sheets of ice push an overexerted system passed its limit. In fair-weather San Francisco, we’re done in by a few millimeters of rain.


This is Nanoglyph, an experimental newsletter on software. Its typical format is a few links that I’ve had kicking around from the week, and with the occasional deviation if something more interesting comes up. (If you’re subscribed already – thanks! If you’re viewing it on the web, you can subscribe right here.)


It was an indoor type of weekend, so I visited San Francisco’s MOMA. The exhibit I went to see was a display of space-faring art from the golden age of space 70s space optimism (called Far Out, an appropriate name in multiple senses). Given the quality and quantity of the source material, it had huge potential, and even though it didn’t quite live up to it (the number of included pieces was relatively small), it was still a worthwhile visit. You can get a good feel for the project from NASA’s archive of space colony art.

Toroidal Colonies by Rick Guidice

Many of the exhibits at the MOMA fit the stereotype of modern art perfectly: simple geometric shapes and canvases made up of a solid colour. One tip for visitors who aren’t committed to a full ticket: so far it’s held true that the best piece of art at the MOMA is free to see.

There’s a large format exhibit available free to the public through the entrance off Natoma St. These days, it’s the huge moving display of the people of San Francisco pictured up top. Maybe the closest thing to a Daily Prophet you can get in real life.

Sequences at the MOMA

Previously, the space was used by Sequences – a labyrinth of sorts where you’d go in one end following the wall, seemingly walk in circles for an unlikely amount of time, then somehow get spit out the other end, all while never encountering an intersection or crossing over another tunnel (walking it is really, really cool). It’s since been relocated back to its home at Stanford.


Next generation mainframes

I love that IBM is still making mainframes. For many of us, the mainframe occupies a special place of veneration in our hearts and minds — having never worked with one, we don’t really understand them, but have heard stories over the decades about their prominent role in critical infrastructure like banking and telecommunications. Almost everyone would be better served by a fleet of commodity servers — better scalability, more flexible, better geographic distribution, cheaper — but sometimes you just want a behemoth in a box.

WikiCheap dives into the technical details of the Z15, successor to the Z14. Processors in a mainframe are organized into “drawers” for in-machine redundancy, with each drawer connected to every other drawer by way of an “A-Bus”. Although drawers in the Z15 have two fewer processors compared to the Z14 (from six down to four), they have two more cores (from 10 to 12 cores), and the machine as a whole supports an additional drawer. Clock speed is the same at 5.2 GHz, but L2 and L3 cache capacities have doubled (from 2 to 4 MB and 128 to 256 MB respectively).

Vectorizing SQL execution

Cockroach Labs writes about building a vectorized SQL engine which resulted in a 70x speed up in their microbenchmarks and a 4x speed up in the more general TPC-H benchmark. In a nutshell, the improvements mainly come from (1) rebuilding their datum representation so that Go type conversions are necessary because data is already available in the required type, and (2) making sure that type operations (a multiplication in this example) occur in a tight loop so that the CPU can make better use of pipelining and necessary data packed densely into low-level caches. The latter is why the new engine is considered to be “vectorized”.

The post is incredibly detailed and although nominally about vectorization, it does a great job of demonstrating how to optimize in Go more generally. Write an ideal “speed of light” case to understand the maximum speed up possible, then use a profiler to drill in and remove bottlenecks, starting with the most expensive. This is often possible by using pprof to look at lines at Go code, but occasionally requires dropping into assembly, which the tooling makes easy.

There’s some metacommentary to be made on Go’s adversion to generics. At one point the Cockroach team resorts to using Go templates to generate code suited to each primitive so as to avoid type conversions. It works, but a critical reader will notice that it’s a leaky solution to solve a problem which is entirely Go-induced.

Incentivizing speed

The predominance of Google as a search engine and Chrome as a web browser rightfully has a lot of people worried, but longer term ramifications aside, they’ve got a pretty good track record for helping to foster constructive patterns on the web. Websites that didn’t support encryption and those that weren’t mobile friendly we’re given slight penalties in search results, and that acted as major incentive for owners to fix those problems. (As far as I could tell, brandur.org only finally started outranking its dot com analog owned by a famous Faroese pop singer after he refused to update it with either modern encryption practices or to be mobile-friendly.)

More recently, Chrome is planning to add a slow page indicator which shows a message like “Usually loads slow” to the user on sites which are known to do so. That might just be the fire those site owners need to be lit under them to get the problem fixed.

In the pioneering days of the internet speed was a distant secondary concern compared to feature development, if it even made a list of concerns at all. These days, with internet usage baked into every part of modern life, heavier frontend stacks leading to heavier software bundles, and wider geographic distribution of users, it’s something to get serious about. Luckily for many, it tends to be the type of problem that turns out to return some big wins given even a moderate amount of attention invested.


“Clear Day with a Southern Breeze” (Pink Fuji) by Katsushika Hokusai

I’ll leave you with an article from the 1843 magazine, Hokusai: old man, crazy to paint. It’s a short digest of the work of the Japanese artist Katsushika Hokusai, best known for The Great Wave (or more formally, Under the Wave off Kanagawa).

Hokusai aimed to improve his art with every passing year, and wanted to live beyond the age of 100 to achieve a dominating level of mastery. He was on record as saying that nothing he’d created before of the age of 70 was worthy of notice (both pieces of art depicted here were produced at 71).

Later in his life he started calling himself “Gakyo Rojin”, translating to “Old Man Crazy to Paint”. Having produced what is perhaps the most iconic piece of Japenese art in history, maybe he was onto something, and maybe his was a philosophy that we could all learn from.

“Under the Wave off Kanagawa” (The Great Wave) by Katsushika Hokusai

See you next week.

1 A toque is a warm hat. “Beanie” for American readers.