193
136
vmception
> # We must protect the builtin elite to not be affected by the revolution

> if inspect.isclass(c) and c.__name__ not in dir(__builtins__):

A true comrade that safeguards the unity and sanctity of the state!

jaza
We pretend to run, and they pretend to allocate us CPU and memory.
js8
When I was younger, I became a communist - I rejected the notion of a class, in favor of everything having a type. People often misunderstand communism, they think that abolishing classes means that all objects have to have equal value, and this gives programmer very little freedom. This is wrong; communism just means that we treat the types equally.

However, we failed to build a truly classless programming language. There seem to be, quite naturally, different kinds of types.

And even some of the most ambitious communist languages, like Haskell, have also embraced type classes! Although this compromise is not an entirely bad thing, since a type can select what type class it belongs to, instead of being assigned one at birth.

I also admit that capitalist languages (the ones with classes) have been hugely successful. But communist (classless) programming language proponents claim that lot of the proclaimed productivity of capitalist languages is just an illusion, and also that many programmers lack the awareness that they, in fact, do not need classes. Often, there is nothing to lose than the call chains!

On the other hand, one cannot easily dismiss arguments about totalitarian nature of communist languages - they openly embrace total functions, and they try to very strictly control input and output. Some claim that lazy evaluation by default might be another reason for their low productivity.

smitty1e
Paraphrasing Trotsky: "You may not be interested in the dunderlectic, but the dunderlectic is interested in you."
danielodievich
Are some classes more equal than others?
pdonis
Is it just me, or does this not even install correctly with pip install .?
xpressvideoz
After reading the initial section I thought this would hook up `isinstance` or something and make all class comparisons equal. But it turned out to be equalizing the instances of the classes. But still, I enjoyed the joke.
tehjoker
Technically a single class is the same as classless society. The single class denotes the resolution of class conflict with the dissolution of the concepts of upper and lower classes. I think it's fine.
yellowapple
Communism is not just classless, but also stateless. Therefore, Python cannot be communist, because it is not a purely functional language.
einpoklum
I like how the author recognizes the significance of Unions to fomenting the Communist Revolution:

https://github.com/jokteur/python_communism/blob/main/src/co...

323
Not real communism (GitHub issue)

https://github.com/jokteur/python_communism/issues/4

betwixthewires
Those notes... I love it.
sbassi
Equal to which class? If I have MyClass1 and MyClass2 with different body, after revolution, MyClass1 will be like MyClass2 or MyClass2 like MyClass1?
ngcc_hk
Classless in a communist country you are joking …

Read Animal farm. Told us abolishment of class is fake new and pr spin in the communist revolution. Actually the communist keep themselves as the superclass. Pig … strangely there are even upper class called human there.

—- divided line we call this —-

For IT, practically javascript is really classless as its class is just protocol in disguise…

jjk166
2008: cool you can import antigravity

2022: cool you can import communism

jakobov
Hilarious
cptnapalm
So, no rich text?
Gentil
> Clone this git, pip install . where the git has been cloned, and you will have access to communism.

This cracked me up. If only it was this easy, lol!

robertlagrant
This is the first software implementation I would describe as "not doing enough to promote resource starvation".
marczellm
bigyellow
germandiago
lol!
rplayxr
Why has the truth about communism been censored in a thread about a communism-critical, satirical repo. Discussion is allowed, as long as the ugly parts aren't mentioned.
yakshaving_jgt
Hilarious. Now do one about the Holocaust.