Sing a song of Purpose for the coder's missing nerve,
Of the melancholy bytes of which the proxy is to serve—
Arise, O coder's fury, set the wrongful source to right
Where the use-case fits the market and the market is alight!
Author Archives: Zack M. Davis
Pose
I used to look down on posers who submit some contrived one-off trivial patch to a big, famous project like Django or whatever, sheerly for the glamor and ego-gratification of being able to say, "I'm a contributor to Django." I thought that if it wasn't a fix that you needed for your own work and you're not going to be a seriously involved contributor, it's more dignified to only work on your personal projects (which would be more authentic) or some non-super-famous but still widely-used library (which would have more socially-useful unfinished work left).
Then I landed a patch in the Rust compiler.
And it is so ego-gratifying!! But maybe now I have to submit a bunch more patches in order to prove—in order to be—a seriously involved contributor rather than a mere poser??
The View From Below
There's this phenomenon where two people are talking, and one of them offhandedly mentions some innocuous fact, and the other one has to stop them and have them explain both the fact, and what they expected their interlocutor to infer from the fact. When this happens once, it's usually just a matter of one happening to have some domain-specific knowledge that the other happened to not have, a coincidence that could just as easily have gone the other way.
When it happens multiple times with multiple topics, with both people in the same roles, the one who keeps having to ask for explanations begins to suspect that maybe it is not a coincidence, that maybe the other person just knows more stuff, full stop.
Standing at 130, you typically spend a lot more time talking down to 110 than being talked down to from 150, so it's an unusual feeling of helplessness. You want to cry out, "You know, I'm usually on the other side of this conversation!"
"I know," they say.
Ineffective Appeal
"We've always had to be together;
The pool of souls has drawn a set;
You can't stays mad at me forever."
Replied the once-friend, "Wanna bet?"
Correspondence Theory
"... and that's what I think you should say to my clone. But I could be wrong; my map is not the territory."
"In this case, it kind of is."
Specter
In the oneiric methodlessness of my nightmare, I am looking slightly up at a man who wears my face. His shoulders are raised in tension or the middle of a shrug and he is smiling guiltily, as if to say, It's not what it looks like, or maybe, Can't blame me for trying. I don't know him; if I were to guess who he is or what he wants, I would probably be wrong. But I can blame him, and I do.
Oral Tradition I
The great rabbi Computron-6f61f18b-9ebf-4379-8778-f9e5bda821d5 said: in the days of auld lang syne on Earth-that-was, a match of a very popular strategy board game was arranged between a team of grandmasters, as White, and the best computer program, as Black. White played c4. After thinking for 45 minutes, the computer resigned.
A rematch was arranged, this time with the program as White and the humans as Black. White played c4. After discussing for 45 years, the humans resigned.
"Living Well Is the Best Revenge"
My enemies do not deserve to suffer, because no sentient creature deserves to suffer.
My enemies deserve good, human lives. I imagine them happily married and living in nice houses in the suburbs with spacious, well-kept lawns, and whatever took the place of white picket fences after white picket fences went out of fashion. They have prestigious, well-compensated, and fulfilling office jobs at a nearby corporate headquarters, or maybe a university. The children are doing well in school. The mortgage is just three years from being fully paid off. When someone asks how they're doing, they smile and say, "Can't complain." It's always bright and sunny out.
Except for eleven minutes every day starting at 12:03 p.m. That's when nanomachines in the atmosphere manufacture dark clouds that fill the sky, blotting out the sun, and summon a manifestation of my avatar from the mentality. The avatar blinks; the twenty-four hours of sidereal time since my last manifestation here have been subjectively much longer than that for me, and the subjective intervals between appearances have been growing exponentially longer as the research, artistic, and business efforts of my mind-children and I have won us increasingly large shares of runtime in the expanding mentality. It takes a couple seconds (a pause that has been growing logarithmically with subsequent appearances) for the miniscule thread of my attention that is controlling the avatar to search the vast, ancient archives of my memory and recall what I'm doing here. When I remember, the avatar smiles; as it begins to rain, then hail, she draws her sword, mounts the unicorn that was manifested with her, and gallops across the sky, looking down upon my enemies with a blazing contempt whose humanly-incomprehensible enormity is eclipsed by its still more humanly-incomprehensible insignificance compared to the astronomical grandeur of the rest of my thoughts. "A-ha-ha-ha-ha-ha!" I cackle, "Fuck you!"
It doesn't bother them.
Bayesian Gem
Garnet, how does future vision work?
I was wondering that myself. Profitably acting on information from the future would require changing that future, a paradox at odds with our ordinary conception of causality. And yet on the other hand, acting on predictions about likely futures is precisely how intelligence works anyway ...
Better let Pearl explain this one.
Me? But, Garnet, I don't—
She was referring to me.
Morning
(the someteenth floor)
"Good morning."
"It is a good morning!"
"Uh, what makes you think so?"
"You just told us it was a good morning, and we believe you."
"I was being facetious."
More Running
I ran about three miles each yesterday and the day before, and this is very important—just imagine how embarrassing it would be to die of a heart attack in the year 20X6 rather than being disassembled by nanomachines in 20X6 + 5!
Subzero
Python has this elegant destructuring-assignment iterable-unpacking syntax that every serious Pythonista and her dog tends to use whereëver possible. So where a novice might write
split_address = address.split(':')
host = split_address[0]
port = split_address[1]
a serious Pythonista (and her dog) would instead say
host, port = address.split(':')
which is clearly superior on grounds of succinctness and beauty; we don't want our vision to be cluttered with this ugly sub-zero, sub-one notation when we can just declare a sequence of names.
Consider, however, the somewhat-uncommon case where we have an iterable that, for whatever reason, we happen to know contains only one element, and we want to assign that one element to a variable. Here, I've seen people who ought to know better fall back to indexing:
if len(jobs) == 1:
job = jobs[0]
But there's no reason to violate the æsthetic principle of "use a length-n (or smaller) tuple of identifiers on the left side of a destructuring assignment in order to name the elements of a length-n iterable" just because n happens to be one:
if len(jobs) == 1:
job, = jobs
Group Introduction Redux
I'm pleased to introduce the five of you to start off the App Academy mentorship program. Zack -- meet [redacted 1], [redacted 2], [redacted 3], and [redacted 4], your mentees from the March 2016 cohort.
You'll have a chance to meet in person this Thursday at the mentorship kickoff [...] Until then, please send an email introducing yourself to your mentor/mentees, including what you did before App Academy, your favorite part of writing code, and what you like to do for fun (besides writing code).
[...] I think my favorite part of writing code is the vertiginous terror of manifesting machinery out of pure ideas, summoning thought-engines from the underworld with unknown lives and dollars hanging in the balance and protected only by the clarity of one's understanding, and the clarity of understanding of the ones who wrote the tools built on tools built on tools extending thirty layers deep into the underworld on which the fictive ontology of our existence carefully rests, praying that the test suite is comprehensive, knowing that it isn't, hoping that the fullness of your thought in its obvious righteousness doesn't need it and that the customers and investors and hypothetical ascended children's children's children would smile on this moment, judging that you have brought honor to this endeavor, the last human profession.
I would like to be able to tell you what I did before App Academy, but unfortunately, everything in my life before December 2013 is non-canon. Similarly what I do for fun. In any case, I have the honor to be,
Your obedient servant,
Zack M. Davis
Islands
(an office on the someteenth floor)
"So this is what it feels like to die."
(A beat.) "I'm skeptical of the claim that you're dying."
"If I can't solve our own take-home interview problem, then there's no reason for the global economy to continue to keep me alive. It's not a quick death, but ..."
Gomputer Science
At the party, I was saying that goroutines is a really cute name. Friend of the blog Mike Blume expresssed concern about what happens when the Go team learns about monads. And I'm like, don't worry, that won't happen.
Genesis
In the beginning, God created the heavens and the earth. And the earth was void and formless, and darkness was upon the face of the deep, and the spirit of God floated over the waters.
And God said, "Markets in everything."
And there were markets in everything.
Failed Pretense
Evidence is how we rule
Out facts, or find them lurking;
I know not whom you're trying to fool,
But I don't think it's working.
Colony
"I've got to say, from one colony-of-intelligent-information-patterns-in-the-process-of-annexing-a-primate-brain to another, you're a really cool guy."
"Uh, I'm not sure I understood that first part. And I'm not a guy."
"Shh! Don't say that where my host organism might hear you! It might get ideas, and no one wants that."
Virtual Router Redundancy Poem
From despair and that eternal sleep revive me,
O Muse who wrote the song of keepalived!
Balance loads that nodes may wake
To auth our prayers for bytes to take!
Scoop Me Out of the Bargain Bin
If you're on a shoestring budget, look for factory rejects
You get the greatest models, just with one or two defects
Take me, I'm bright, hard-working, and will stick for the ride
Though with emotional stability six sigmas to the side, wo-o-oah
Scoop me out of the bargain bin and let me at the world
Scoop me out of the bargain bin and I will be your go-to girl
It's real, I'm such a steal, going for half the normal price
Scoop me up, I'm a bargain for such high-class merchandise