log.nikhil.io

The Foreigner · 2017 · IMDb · C

Ireland. Liam. Mick. Belfast. Mary. IRA. Patrick. Belfast. Liam Hennessy. Sean. Sinn Féin. “You should try a real whiskey. Two Jamesons, Single Malt.” Belfast. Belfast.

Also Jackie Chan. But watch for Orla Brady 🇮🇪

The Unborn

“The unborn” are a convenient group of people to advocate for. They never make demands of you; they are morally uncomplicated, unlike the incarcerated, addicted, or the chronically poor; they don’t resent your condescension or complain that you are not politically correct; unlike widows, they don’t ask you to question patriarchy; unlike orphans, they don’t need money, education, or childcare; unlike aliens, they don’t bring all that racial, cultural, and religious baggage that you dislike; they allow you to feel good about yourself without any work at creating or maintaining relationships; and when they are born, you can forget about them, because they cease to be unborn. It’s almost as if, by being born, they have died to you. You can love the unborn and advocate for them without substantially challenging your own wealth, power, or privilege, without re-imagining social structures, apologizing, or making reparations to anyone. They are, in short, the perfect people to love if you want to claim you love Jesus but actually dislike people who breathe.

Prisoners? Immigrants? The sick? The poor? Widows? Orphans? All the groups that are specifically mentioned in the Bible? They all get thrown under the bus for the unborn.

Dave Barnhardt, Methodist pastor

and

They’re all in favor of the unborn. They will do anything for the unborn. But once you’re born, you’re on your own. Pro-life conservatives are obsessed with the fetus from conception to nine months. After that, they don’t want to know about you. They don’t want to hear from you. No nothing. No neonatal care, no day care, no head start, no school lunch, no food stamps, no welfare, no nothing. If you’re preborn, you’re fine; if you’re preschool, you’re fucked.

– George Carlin, Back in Town

21 Bridges · 2019 · IMDb · C+

About as predictable as it gets. Chadwick Boseman is excellent.

Functions, Monoids, Functors, Monads

Started with this blog post about why one would need a monad (from a typing standpoint.) Then watched “What the 𝒇 is a Monad” which made a lot of things clear. Then watched this excellent, excellent talk on Lambda Calculus (with JS and Haskell code!) by Gabriel Lebec.

Finished with a quick practical, toy example by @mpjme and this Scala horror-show (to me.)

Mondegreen

A mondegreen /ˈmɒndɪɡriːn/ is a mishearing or misinterpretation of a phrase as a result of near-homophony, in a way that gives it a new meaning. Mondegreens are most often created by a person listening to a poem or a song; the listener, being unable to clearly hear a lyric, substitutes words that sound similar and make some kind of sense.

Never been able to follow the lyrics to most songs and have done this for as long as I can remember. Things can be misheard but there are intentional mondegreens as well:

A similar effect was created in Hindi in the 2011 Bollywood movie Delhi Belly in the song “Bhaag D.K. Bose”. While “D.K. Bose” appears to be a person’s name, it is sung repeatedly in the chorus to form the deliberate mondegreen “bhosadi ke” (Hindi: भोसडी के), a Hindi expletive.

Root of Evil: The True Story of the Hodel Family and the Black Dahlia

I couldn’t finish this gripping yet harrowing podcast about the Black Dahlia murder and, whether or not he was complicit, an absolute monster of a human being.

Once Upon a Time… in Hollywood · 2019 · IMDb · A

Saw with PLG. Plan on doing things around the house to the soundtrack. When they’re handing him his second Oscar, Leonardo DiCaprio should just maintain silence, stare at the glitterati, play the trailer scene, and walk away 💯 🙏 🙌

There Will Be Blood · 2007 · IMDb · A+

Finally saw this with PLG. Daniel Day-Lewis’ best performance IMO. Astounding, really.

Mr. Day-Lewis’s outsize performance, with its footnote references to Huston and strange, contorted Kabuki-like grimaces, occasionally breaks the skin of the film’s surface like a dangerous undertow. The actor seems to have invaded Plainview’s every atom, filling an otherwise empty vessel with so much rage and purpose you wait for him to blow. It’s a thrilling performance, among the greatest I’ve seen, purposefully alienating and brilliantly located at the juncture between cinematic realism and theatrical spectacle.

– Manohla Dargis “An American Primitive, Forged in a Crucible of Blood and Oil

Paul Dano is great as an ageless vampire-pastor 😑 The excellent soundtrack was written by Jonny Greenwood (!) and features works by Arvo Pärt and Brahms.

Nine Pints of The Law

by Lawson Wood (more work here.)

I first saw this when I was about 10 and tried my first jigsaw puzzle with my little sister. We were quite mesmerized by the painting. We found the puzzle too difficult and lost the pieces. 26 years later, I found a complete puzzle on eBay and can’t wait to put it together with her 😃

Googling revealed that a certain David Lewis recreated the painting with real officers of the Royston Police Station in Hertfordshire in 1990.

Image via Herts Past Policing

A Year of Jackshit

2019 in review, by way of Mr. Lovenstein’s comics.

And why not just twist the knife?

Process and Tooling

I thought using loops was cheating, so I programmed my own using samples. I then thought using samples was cheating, so I recorded real drums. I then thought that programming it was cheating, so I learned to play drums for real. I then thought using bought drums was cheating, so I learned to make my own. I then thought using premade skins was cheating, so I killed a goat and skinned it. I then thought that that was cheating too, so I grew my own goat from a baby goat. I also think that is cheating, but I’m not sure where to go from here. I haven’t made any music lately, what with the goat farming and all.

I’ve made this mistake all too often, especially when trying to learn something new.

Things that quote kinda reminds me of:

The Happiest Little Human

I’ll consider myself dead on the inside until I’m this ecstatic after sipping mushroom soup.

White Statues

Vox on the history of plain-white Roman statues and how historians attempt plaster reconstructions with the original colors. Like this one:

Bad Genius · 2017 · IMDb · A-

Slow start but gets pretty exciting towards the end. I couldn’t wait for Lynn to rid herself of her parasitic friends (especially the cloying Grace, played to perfection by Eisaya Hosuwan.) Cheating on standardized tests is big business in India and China. The Atlantic has a relatively recent article on the phenomenon.

The usual commentary on class and meritocracy. Lots of love for Boston University.

Halvor Lines

Saw these trucks on the interstate the other day and feel in love with the logo 😍 Designed by a buncha nice Minnesotans at Swim Creative.

Dank Typefaces

Was looking try something other than my beloved Operator Mono and came across Dank Mono which claims to be a “rather special coding font.” I love it. Looks like the cooler twin of Inconsolata. I remain quite tickled by how many of my co-workers find the italic variants of monospaced fonts ‘disturbing’ when they look at my screen.

Richard Serra on Art

Q: Why make art? What do you find by doing it? What does it get you?

Serra: I always wanted an alternative existence. And by that I mean I wanted to do something where I could study my own sentiments and experiences. And I found that I can do that in relation to making things and making art in particular. And I did that since I was a kid it was a place I always could go to that I could concentrate and deal with the problems that I thought were of interest to me. And if I was clear enough about what it was that I was probing, and stayed with the premise of I was probing, it was possible that it could also be clear to someone else, and it was important that it not be something that somebody else has done.

I think one of the things art does is that it asks you to perceive what it is on its own level […] I think works of art engage, possibly, an ‘internal memory bank’ that isn’t linear and it can make you see the outside reality in that way also.

That’s from a recording at the SF MoMA. I first heard of him after moving to Des Moines and seeing his “Five Plate Pentagon” at our beautiful sculpture park.

Image Source: DSM Public Art Foundation

Home

So, here you are

too foreign for home

too foreign for here.

Never enough for both.

Ijeoma Umebinyuo, Questions for Ada

and

Home is not where you are born; home is where all your attempts to escape cease.

Naguib Mahfouz

The Irishman · 2019 · IMDb · A

The last 15 minutes are the best depiction of old age, loneliness, and isolation I’ve ever seen committed to film. Two masters at their very best.

I love all the memes about its length but (a) the pacing was brilliant and (b) I am someone who grew up watching 200-minute family-values extravaganzas and can take it. Still:

Need to read up more on the de-aging process they used in the film.

The AppleTV Remote Sucks

Dec 9 It’s so bad a Swiss company made a much saner substitute that sells for ~$20.


Nov 16 Looks like you can use the old remote with the new AppleTV.


I’m annoyed every time I have to use the infernal thing.

  • It tries (poorly) to be something other than a damn TV remote1.
  • There’s no way to tell which end is up.
  • There’s no accidental tap detection when you pick it up.
  • It’s way too small.
  • It’s way too slippery.
  • I use Siri to skip forward and backward because the edge clicks are unmemorable and dysfunctional.

I use the iPhone app when I can and, while I can’t stand the terribly implemented inertial scroll, still find it better than the hardware.

Inertial scrolling does in fact exist on the Siri remote, but the effect is muted. The on-screen movement doesn’t accurately reflect your swiping — scrolling is staggered and it often stops abruptly, when you don’t intend to stop. This makes aspects of navigation, like manual search or entering your email address or password, extremely cumbersome.

– Dave Smith, “My biggest problem with the new Apple TV remote

See also: Steve Brykman of ArsTechnica’s thoughts on “the nightmare horrorshow” that’s the remote.

  1. “You’re basically getting a giant iPad game that you have to play with a tiny remote” 

State, Coupling, Complexity, & Code

Dependencies (coupling) is an important concern to address, but it’s only 1 of 4 criteria that I consider and it’s not the most important one. I try to optimize my code around reducing state, coupling, complexity and code, in that order.

I’m willing to add increased coupling if it makes my code more stateless.

I’m willing to make it more complex if it reduces coupling.

And I’m willing to duplicate code if it makes the code less complex.

Only if it doesn’t increase state, coupling or complexity do I dedup code.

The reason I put stateless code as the highest priority is it’s the easiest to reason about. Stateless logic functions the same whether run normally, in parallel or distributed. It’s the easiest to test, since it requires very little setup code. And it’s the easiest to scale up, since you just run another copy of it. Once you introduce state, your life gets significantly harder.

I think the reason that novice programmers optimize around code reduction is that it’s the easiest of the 4 to spot. The other 3 are much more subtle and subjective and so will require greater experience to spot. But learning those priorities, in that order, has made me a significantly better developer.

crun1r on HackerNews (emphasis and formatting mine.)

❣️


Jan 12 On “incidental duplication”:

I’ve usually heard this phenomenon called “incidental duplication,” and it’s something I find myself teaching junior engineers about quite often. There are a lot of situations where 3-5 lines of many methods follow basically the same pattern, and it can be aggravating to look at. “Don’t repeat yourself!” Right?

So you try to extract that boilerplate into a method, and it’s fine until the very next change. Then you need to start passing options and configuration into your helper method… and before long your helper method is extremely difficult to reason about, because it’s actually handling a dozen cases that are superficially similar but full of important differences in the details.

I encourage my devs to follow a rule of thumb: don’t extract repetitive code right away, try and build the feature you’re working on with the duplication in place first. Let the code go through a few evolutions and waves of change. Then one of two things are likely to happen:

  1. you find that the code doesn’t look so repetitive anymore, or,
  2. you hit a bug where you needed to make the same change to the boilerplate in six places and you missed one.

In scenario 1, you can sigh and say “yeah it turned out to be incidental duplication, it’s not bothering me anymore.” In scenario 2, it’s probably time for a careful refactoring to pull out the bits that have proven to be identical (and, importantly, must be identical across all of the instances of the code).

burlesona on HackerNews (emphasis and formatting mine.)

Hubble Ultra-Deep Field

One of my favorite things in the world.

Located southwest of Orion in the southern-hemisphere constellation Fornax, the rectangular image is 2.4 arcminutes to an edge, or 3.4 arcminutes diagonally. This is approximately one tenth of the angular diameter of a full moon viewed from Earth (which is less than 34 arcminutes), smaller than 1 sq. mm piece of paper held at 1 meter away, and equal to roughly one twenty-six-millionth of the total area of the sky. The image is oriented so that the upper left corner points toward north (−46.4°) on the celestial sphere.

Wikipedia (emphasis mine)

Here’s all that in video form

The best screensaver in the world using red-shift data

And a very high-resolution image (> 60MB). Wallpapers are available.

Our shit is so, so, so tiny.

There are over 100 billion galaxies in the universe. Simply saying that number doesn’t really mean much to us because it doesn’t provide any context. Our brains have no way to accurately put that in any meaningful perspective. When we look at this image, however, and think about the context of how it was made and really understand what it means, we instantly gain the perspective and cannot help, but be forever changed by it.

We pointed the most powerful telescope ever built by human beings at absolutely nothing for no other reason than because we were curious, and discovered that we occupy a very tiny place in the heavens.

Deep Astronomy

Not so sure about “instantly” gaining perspective but the rest about wonder and curiosity and our insignificant place the heavens still stand.

Comrade Hoff

Loving these Moebius-like works by Ali Hoff (prints are available.) Imagined it being a short animated series like Aeon Flux 😍

AppleTV, AppleTV, AppleTV

I absolutely love Dustin Curtis’ splendid explanation of “AppleTV” branding that’s making making the rounds on HN. For posterity, I stole this handy color-coded transcription off Michael Tsai’s blog.

See also: The intractably stupid AppleTV Remote.

A Vickrey Auction

When you end up paying the price you bid (“first price”), you have a strong incentive to lie about how much you’re willing to pay. Suppose there’s an item for sale that you’d be happy paying up to $1,000 for if necessary, but of course you’d rather pay less. In a first-price auction, if you bid $1,000 and you lose. Well, someone else was willing to pay more than you were willing to, so that’s OK, but if you win, you know that nobody else offered that price and you’d be slapping yourself for not going for $950 and saving a little. Or, who knows, maybe there are really few buyers and you later discover that the second person was only valuing the item at $600? Damn, you could have walked away with it for $610!

[. . .]

In a second-price auction, there’s no reason for you to do that. You can simply say exactly the maximum price you are willing to pay, and there’s never any advantage for you in saying anything else:

  • You don’t want to post a higher bid since you might be forced to pay it, and you don’t want to do that.
  • You don’t want to post a lower bid since you might lose the item for no good reason at all.
  • You’ll end up paying exactly what it takes to win the item: one dollar or one cent more than the next person’s maximum bid.

So, a second-price mechanism encourages everyone to bid truthfully, and the item ships to the person who really values it at the highest price. It’s the best outcome for the seller and as good an outcome for everyone else as they could wish for.

Incidentally, note that this is exactly what happens in ordinary public auctions (“going once, going twice… sold!!”) Everyone walks in with an idea of how much they’re willing to pay, and they keep bidding one dollar more than the current price until they hit their max—but they’re never forced to reveal their max and what they end up paying is just one dollar (or penny, or whatever) more than the second-highest bidder.

– Alon Amit on Quora (emphasis mine.)

Quite a bit of Game Theory stuff on Wikipedia as well.