There were many people who supported Mao in the 60s and 70s, mainly because the terrors of the Cultural Revolution and the failure of the Great Leap Forward were not really known in the West.
China was a closed society. Academics didn't even travel there. That's what they mean when they say Nixon "opened up" China in 1972. Prior to that, people only knew what the Chinese government told them about the country.
Earth and the Federation was communism. Admittedly an idealist version of it, came about because it was voted in by enlightened voters. But even then the Bell Riots showed that it was capitalism that caused conditions to arise in which the oppressed rose up against the failures of capitalism, and finally end it.
Not sure if you specifically meant something about Mao, but at least be aware of this. It's the most basic theory of communism that capitalism fails, turns into barbarism, and the working class have no option but to revolt to resolve the crisis.
Star trek doesn't really have a working class though, they achieved Marx's earlier hypothesised state of the deprecation of manual labor (in the technical sense). Interestingly, most of the philosophy is around how to get to Star Trek, where Star Trek itself is kind of the biggest thought experiment we have for what we would do once we're there.
Marx later evolved to believe only a revolution would destroy capitalism, and that's what Mao focused on, the getting there. Through violence.
Mao took that to heart, and succeeded, despite his best efforts, in ultimately setting the stage for a China that's more capitalist than it's ever been.
That's kind of the magic of star trek. Theres a violent past, a billion deaths, and it isn't a new political system or a different economy that changes everything, it was a newfound hope that things could be better if people were better, and they worked together to make that happen.
I think younger Marx would have loved Star Trek. I'm not sure about older Marx or Mao.
Yeah I mean specifically that Mao killed millions of people through a combination of ineptitude and taking the lessons from the wars he fought in into government. The Federation is built on principles that run counter to Maoism in important respects like allowing differences of opinion and anti-authoritarianism.
The U.S.S. Enterprise NCC-1701 comes across a lost Earth colony during a survey beyond Federation space; a few generations after its establishment, a group of religious zealots take over the operations of the colony, creating a feudal society in which power is held by a select few "holy" families and the vast majority of colonists are little more than slaves. How would Kirk and crew handle this situation?
Well I don't think the federation government would be idiotic enough to try and make every farmer into an industrialist by forcing them to meltdown their own tools in the hopes of creating mechanised farming equipment only to end up with piles of unusable pig-iron slag, and thus contributing to another famine.
...And yet, the Enterprise is armed. If power does not come from the ability to effectively use violence, but from some other means, then why would the Federation arm it's flagship?
Devil's advocate, but parts of the Trek universe have shown that there are non- or quasi-sentient creatures capable of endangering starships like the Enterprise, in addition to the usual spacefaring hazards like asteroid belts and debris fields, and the potential to encounter, for lack of a better term, space pirates. It makes sense to arm the ship for a number of reasons not necessarily related to the power of coercion via the threat of violence. The Enterprise's weapons are also frequently outclassed by other ships of similar size designed for combat. It feels more akin to packing bear spray or a noisemaker to scare off wildlife, and the bear spray gets used to drive off a robber.
That said, the threat of violence against a better-armed foe in order to prevent combat is a trope the shows rely on frequently, so you have a point.
Aside from an episode of Strange New Worlds (and possible in Wrath of Khan, depending on your perspective), space pirates aren't brought up as a risk to the Federation starships, presumably because they usually aren't. Shields alone should be sufficient for debris and asteroids, since shields appear to stop physical objects as well as certain forms of energy (obvs. not certain bands of light though, or whatever bands their sensors use). Non- and quasi-sentient species shouldn't pose any risk to a starship at all (aside from possibly omniscient comets, thank you Stanislaw Lem). The weapons on a starship are appropriate to direct against planetary settlements, bases, and other starships.
Fundamentally, I believe Mao was correct on this; the ability to use violence effectively is the lowest common denominator for all power. Everything else is a veneer of civility intended to disguise the violence that is inherent to all forms of coercive rule.
Mao Zedong; his quote was "Political power flows out of the barrel of a gun."
The quote is not a moral statement or a call to action, but a scientific analysis of Historical Materialism: the Chinese civil war was not fought with ballots or debates, it was fought with guns, on both sides.
Ultimately, the people with the guns hold all political power in society.
That's wrong in the context of the Chinese civil war though. Mao and the CPC didn't win because they had more guns or a more powerful army. In fact, the KMT almost wiped them out several times.
According to their own lore, they were more inspirational to the local people, who supported them in return. Mao specifically said "The guerrilla must move amongst the people as a fish swims in the sea."