What to do about racism in speculative media?

So first: if you are the sort of person who is outraged at the idea of Idris Elba playing James Bond because James Bond has to be white, please stop reading. This question is not for you.

The question is:

How should we treat racism in speculative fiction?

Yes, it’s nice to have inclusive casting and to, Rodenberry-style imagine a better future, but it’s probably also bad to ignore a core problem of Western civilization and let it go unexamined.

The only good example of addressing racism comes from a Tenant episode of Dr. Who, where they go back to 17th-centuryish England and Martha Jones, Dr. Who’s black companion, explicitly has to adapt to her assigned lower status as a black woman.

But I also have several bad examples:

  • The multi-ethnic village in the Mandalorian that has existed in harmony with nature for millenia, yet there are a wild variety of phenotypes in a small village of maybe 30 people.

  • All the mixed race FEDRA cities in the Last of Us show. You know those mother fuckers would have been ICE-levels of racist about admitting people into protected zones. [I will note that in the mall episode, an asian character, Kim, strongly approves of a white character while denigrating a black one, so maybe that tracks.]

And then there’s building a non-racist future but somehow wanting to inject contemporary themes of race into it post-hoc. There’s that wildly weird episode of Star Trek: Next Generation where Cisco, the black captain, sees himself as explicitly black (“our people”), an identity that I think would be meaningless in the Star Trek universe. Ethnic identity is formed in opposition to majority culture, and otherwise isn’t that significant. [Not to mention the one black woman on the show shows up and magically becomes his girlfriend.]

So what are your thoughts? Is there a way to introduce and challenge concepts of racism in future fiction? Or would you rather not think about it at all and just give everyone some untroubled media representation?